¤ writeFileF

File system access


writeFileF :: F (String, String) (String, IOError  ())


writeFileF is a fudget for writing files. It accepts pairs of file name and new contents as input, and outputs the contents.


Path name of a file, paired with the data to be written to the file.


Pair of the path name and either Right (), if the write operation was successful, or Left err, if an error occurred. The error type is IOError as defined for dialogue IO in Haskell 1.2.

See Also

Reading files: readFileF, readDirF.

Performing other Haskell 1.2 IO operations: haskellIOF et al.