ogma-extra-1.0.7: Ogma: Helper tool to interoperate between Copilot and other languages.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.ByteString.Extra

Description

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.