relude-0.3.0: Custom prelude from Kowainik

Copyright(c) 2018 Kowainik
LicenseMIT
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Relude.File

Contents

Description

Functions to work with files for Text, LText, ByteString and LByteString types.

Synopsis

Text

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

Lifted version of readFile.

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

Lifted version of writeFile.

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

Lifted version of appendFile.

Lazy Text

readFileLText :: MonadIO m => FilePath -> m LText Source #

Lifted version of readFile.

writeFileLText :: MonadIO m => FilePath -> LText -> m () Source #

Lifted version of writeFile.

appendFileLText :: MonadIO m => FilePath -> LText -> m () Source #

Lifted version of appendFile.

ByteString

readFileBS :: MonadIO m => FilePath -> m ByteString Source #

Lifted version of readFile.

writeFileBS :: MonadIO m => FilePath -> ByteString -> m () Source #

Lifted version of writeFile.

appendFileBS :: MonadIO m => FilePath -> ByteString -> m () Source #

Lifted version of appendFile.

Lazy ByteString

readFileLBS :: MonadIO m => FilePath -> m LByteString Source #

Lifted version of readFile.

writeFileLBS :: MonadIO m => FilePath -> LByteString -> m () Source #

Lifted version of writeFile.

appendFileLBS :: MonadIO m => FilePath -> LByteString -> m () Source #

Lifted version of appendFile.