filepath-2.0.0.2: Library for manipulating FilePaths in a cross platform way.
Safe HaskellNone
LanguageHaskell2010

System.AbstractFilePath.Encoding

Documentation

ucs2le :: TextEncoding Source #

mkUcs2le :: CodingFailureMode -> TextEncoding Source #

ucs2le_DF :: CodingFailureMode -> IO (TextDecoder ()) Source #

ucs2le_EF :: CodingFailureMode -> IO (TextEncoder ()) Source #

ucs2le_decode :: DecodeBuffer Source #

ucs2le_encode :: EncodeBuffer Source #

decodeWith :: TextEncoding -> ShortByteString -> Either EncodingException String Source #

encodeWith :: TextEncoding -> String -> Either EncodingException ShortByteString Source #

data EncodingException Source #

Constructors

EncodingError String (Maybe Word8)

Could not decode a byte sequence because it was invalid under the given encoding, or ran out of input in mid-decode.

Instances

Instances details
Eq EncodingException Source # 
Instance details

Defined in System.AbstractFilePath.Encoding

Show EncodingException Source # 
Instance details

Defined in System.AbstractFilePath.Encoding

Methods

showsPrec :: Int -> EncodingException -> ShowS

show :: EncodingException -> String

showList :: [EncodingException] -> ShowS

NFData EncodingException Source # 
Instance details

Defined in System.AbstractFilePath.Encoding

Methods

rnf :: EncodingException -> ()

Exception EncodingException Source # 
Instance details

Defined in System.AbstractFilePath.Encoding

Methods

toException :: EncodingException -> SomeException

fromException :: SomeException -> Maybe EncodingException

displayException :: EncodingException -> String