relude-0.2.0: Custom prelude from Kowainik

Copyright(c) 2016 Stephen Diehl
(c) 20016-2018 Serokell
(c) 2018 Kowainik
LicenseMIT
MaintainerKowainik <xrom.xkov@gmail.com>
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.