relude-0.1.0: Custom prelude from Kowainik

Safe HaskellSafe
LanguageHaskell2010

Relude.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.

getLine :: MonadIO m => m Text Source #

Lifted version of getLine.

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.