Safe Haskell | Safe-Infered |
---|
This contains functions for copying to and from files
- copyFile :: String -> String -> IO ()
- copyFileWE :: String -> String -> IO (WithError ())
- copyStringToFile :: String -> FilePath -> IO ()
- copyStringToFileCheck :: String -> FilePath -> IO (WithError ())
- copyFileToString :: FilePath -> IO String
- copyFileToStringCheck :: FilePath -> IO (WithError String)
- copyICStringLenToFile :: ICStringLen -> FilePath -> IO ()
- copyFileToICStringLenCheck :: FilePath -> IO (WithError ICStringLen)
- copyCStringLenToFile :: CStringLen -> FilePath -> IO ()
- copyFileToCStringLen :: FilePath -> IO CStringLen
- copyFileToICStringLen :: FilePath -> IO ICStringLen
Documentation
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
copyICStringLenToFile :: ICStringLen -> FilePath -> IO ()Source
copyCStringLenToFile :: CStringLen -> FilePath -> IO ()Source