Safe Haskell | None |
---|---|
Language | Haskell2010 |
Text IO using the UTF8 character encoding.
Documentation
data ReadException Source #
A kind of exception that can be thrown by readTextFile
and
readFile
.
Instances
Exception ReadException Source # | |
Defined in Agda.Utils.IO.UTF8 | |
Show ReadException Source # | |
Defined in Agda.Utils.IO.UTF8 showsPrec :: Int -> ReadException -> ShowS # show :: ReadException -> String # showList :: [ReadException] -> ShowS # |
readTextFile :: FilePath -> IO Text Source #
Reads a UTF8-encoded text file and converts many character sequences which may be interpreted as line or paragraph separators into 'n'.
If the file cannot be decoded, then a ReadException
is raised.
readFile :: FilePath -> IO String Source #
Reads a UTF8-encoded text file and converts many character sequences which may be interpreted as line or paragraph separators into 'n'.
If the file cannot be decoded, then a ReadException
is raised.