iostring-0.0.0.0: A class of strings that can be involved in IO.

Safe HaskellNone
LanguageHaskell2010

Data.IOString

Synopsis

Documentation

class IOString s Source #

Minimal complete definition

iosWriteFile, iosReadFile, iosAppendFile, iosPutStr, iosPutStrLn

writeFile :: (IOString s, MonadIO m) => Path Abs File -> s -> m () Source #

appendFile :: (IOString s, MonadIO m) => Path Abs File -> s -> m () Source #

putStr :: (IOString s, MonadIO m) => s -> m () Source #

putStrLn :: (IOString s, MonadIO m) => s -> m () Source #

type FilePath = String #

File and directory names are values of type String, whose precise meaning is operating system dependent. Files can be opened, yielding a handle which can then be used to operate on the contents of that file.