relude-0.3.0: Custom prelude from Kowainik

Copyright(c) 2016 Stephen Diehl
(c) 20016-2018 Serokell
(c) 2018 Kowainik
LicenseMIT
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Relude.Lifted.File

Description

Lifted versions of functions working with files and common IO.

Synopsis

Documentation

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

Lifted version of readFile.

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

Lifted version of writeFile.

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

Lifted version of appendFile.

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

Lifted version of openFile.

hClose :: MonadIO m => Handle -> m () Source #

Lifted version of hClose.