¤ writeFileF

File system access

Types

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

Description

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

Input

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

Output

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.