Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Auxiliary functions for working with values of type ByteString
.
Synopsis
Safe I/O
safeReadFile :: FilePath -> IO (Either String ByteString) Source #
Safely read a file into a lazy ByteString
, returning a Left
error
message if the file cannot be opened.
Error messages
strByteStringFileNotFound :: FilePath -> String Source #
File-not-found message.
strByteStringCannotOpenFile :: FilePath -> String Source #
Cannot-open-file message.