effectful
Safe HaskellSafe-Inferred
LanguageHaskell2010

Effectful.FileSystem.IO.ByteString.Lazy

Description

Lifted Data.ByteString.Lazy.Char8. Like the original module, you probably want to import this module qualified to avoid name clashes with the functions provided by Prelude, e.g.:

import Data.ByteString.Lazy (ByteString)
import Data.ByteString.Lazy.Char8 qualified as LBS8
import Effectful.FileSystem.IO.ByteString.Lazy qualified as ELBS
Synopsis

Files

readFile :: FileSystem :> es => FilePath -> Eff es ByteString Source #

Lifted readFile.

writeFile :: FileSystem :> es => FilePath -> ByteString -> Eff es () Source #

Lifted writeFile.

appendFile :: FileSystem :> es => FilePath -> ByteString -> Eff es () Source #

Lifted appendFile.

I/O with Handles

hGet :: FileSystem :> es => Handle -> Int -> Eff es ByteString Source #

Lifted hGet.

hPut :: FileSystem :> es => Handle -> ByteString -> Eff es () Source #

Lifted hPut.

hPutStr :: FileSystem :> es => Handle -> ByteString -> Eff es () Source #

Lifted hPutStr.

hPutStrLn :: FileSystem :> es => Handle -> ByteString -> Eff es () Source #

Lifted hPutStrLn.