diff options
Diffstat (limited to 'libraries/base/GHC/IO/Encoding/Failure.hs')
-rw-r--r-- | libraries/base/GHC/IO/Encoding/Failure.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libraries/base/GHC/IO/Encoding/Failure.hs b/libraries/base/GHC/IO/Encoding/Failure.hs index 3f9360d731..c8d29f4d50 100644 --- a/libraries/base/GHC/IO/Encoding/Failure.hs +++ b/libraries/base/GHC/IO/Encoding/Failure.hs @@ -34,8 +34,8 @@ import GHC.Real ( fromIntegral ) --import System.Posix.Internals --- | The 'CodingFailureMode' is used to construct 'TextEncoding's, and --- specifies how they handle illegal sequences. +-- | The 'CodingFailureMode' is used to construct 'System.IO.TextEncoding's, +-- and specifies how they handle illegal sequences. data CodingFailureMode = ErrorOnCodingFailure -- ^ Throw an error when an illegal sequence is encountered @@ -48,7 +48,8 @@ data CodingFailureMode | RoundtripFailure -- ^ Use the private-use escape mechanism to attempt to allow -- illegal sequences to be roundtripped. - deriving (Show) + deriving ( Show -- ^ @since 4.4.0.0 + ) -- This will only work properly for those encodings which are -- strict supersets of ASCII in the sense that valid ASCII data -- is also valid in that encoding. This is not true for |