Skip to content

Commit

Permalink
Deprecate System.Posix.IO.fdRead
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell authored and Bodigrim committed Jul 17, 2022
1 parent 5fd5305 commit 1cb1352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions System/Posix/IO.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ createFileAt :: Maybe Fd -- ^ Optional directory file descriptor
createFileAt fdMay name mode
= openFdAt fdMay name WriteOnly defaultFileFlags{ trunc=True, creat=(Just mode) }

{-# DEPRECATED fdRead "This function is scheduled to be dropped in favor of 'System.Posix.IO.ByteString.fdRead', because decoding e.g. UTF-8 streams partially is unsafe." #-} -- deprecated in 2.8.0.0
-- | Read data from an 'Fd' and convert it to a 'String' using the locale encoding.
-- Throws an exception if this is an invalid descriptor, or EOF has been
-- reached.
Expand Down
1 change: 1 addition & 0 deletions tests/Posix014.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -Wno-deprecations #-}
-- !! Basic pipe usage
module Main (main) where

Expand Down

0 comments on commit 1cb1352

Please sign in to comment.