universum-1.2.0: Custom prelude used in Serokell

Safe HaskellSafe
LanguageHaskell2010

Universum.Lifted.File

Description

Lifted versions of functions working with files and common IO. All functions are specialized to Text.

Synopsis

Documentation

appendFile :: MonadIO m => FilePath -> Text -> m () Source #

Lifted version of appendFile.

getContents :: MonadIO m => m Text Source #

Lifted version of getContents.

getLine :: MonadIO m => m Text Source #

Lifted version of getLine.

interact :: MonadIO m => (Text -> Text) -> m () Source #

Lifted version of interact.

openFile :: MonadIO m => FilePath -> IOMode -> m Handle Source #

Lifted version of openFile.

readFile :: MonadIO m => FilePath -> m Text Source #

Lifted version of readFile.

writeFile :: MonadIO m => FilePath -> Text -> m () Source #

Lifted version of writeFile.