uni-posixutil- Posix utilities for the uniform workbench

Safe HaskellSafe-Infered



This contains functions for copying to and from files



copyStringToFileCheck :: String -> FilePath -> IO (WithError ())Source

Write to a file, catching certain errors. (At the moment this is not very helpful, returning messages like "system error").

copyFileToString :: FilePath -> IO StringSource

Reads in a file to a String. NB - differs from readFile in that this is done instantly, so we don't have to worry about semi-closed handles hanging around.

copyFileToStringCheck :: FilePath -> IO (WithError String)Source

Read in a file, catching certain errors