Copyright | (c) 2018 Kowainik |
---|---|
License | MIT |
Maintainer | Kowainik <xrom.xkov@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Functions to work with files for Text
, LText
, ByteString
and LByteString
types.
Synopsis
- readFileText :: MonadIO m => FilePath -> m Text
- writeFileText :: MonadIO m => FilePath -> Text -> m ()
- appendFileText :: MonadIO m => FilePath -> Text -> m ()
- readFileLText :: MonadIO m => FilePath -> m LText
- writeFileLText :: MonadIO m => FilePath -> LText -> m ()
- appendFileLText :: MonadIO m => FilePath -> LText -> m ()
- readFileBS :: MonadIO m => FilePath -> m ByteString
- writeFileBS :: MonadIO m => FilePath -> ByteString -> m ()
- appendFileBS :: MonadIO m => FilePath -> ByteString -> m ()
- readFileLBS :: MonadIO m => FilePath -> m LByteString
- writeFileLBS :: MonadIO m => FilePath -> LByteString -> m ()
- appendFileLBS :: MonadIO m => FilePath -> LByteString -> m ()
Text
appendFileText :: MonadIO m => FilePath -> Text -> m () Source #
Lifted version of appendFile
.
Lazy Text
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
.