Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 qualified Data.ByteString.Lazy.Char8 as LBS8 import qualified Effectful.FileSystem.IO.ByteString.Lazy as ELBS
Synopsis
- readFile :: FileSystem :> es => FilePath -> Eff es ByteString
- writeFile :: FileSystem :> es => FilePath -> ByteString -> Eff es ()
- appendFile :: FileSystem :> es => FilePath -> ByteString -> Eff es ()
- hGetContents :: FileSystem :> es => Handle -> Eff es ByteString
- hGet :: FileSystem :> es => Handle -> Int -> Eff es ByteString
- hGetNonBlocking :: FileSystem :> es => Handle -> Int -> Eff es ByteString
- hPut :: FileSystem :> es => Handle -> ByteString -> Eff es ()
- hPutNonBlocking :: FileSystem :> es => Handle -> ByteString -> Eff es ByteString
- hPutStr :: FileSystem :> es => Handle -> ByteString -> Eff es ()
- hPutStrLn :: FileSystem :> es => Handle -> ByteString -> Eff es ()
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
hGetContents :: FileSystem :> es => Handle -> Eff es ByteString Source #
Lifted hGetContents
.
hGet :: FileSystem :> es => Handle -> Int -> Eff es ByteString Source #
Lifted hGet
.
hGetNonBlocking :: FileSystem :> es => Handle -> Int -> Eff es ByteString Source #
Lifted hGetNonBlocking
.
hPut :: FileSystem :> es => Handle -> ByteString -> Eff es () Source #
Lifted hPut
.
hPutNonBlocking :: FileSystem :> es => Handle -> ByteString -> Eff es ByteString Source #
Lifted hPutNonBlocking
.
hPutStr :: FileSystem :> es => Handle -> ByteString -> Eff es () Source #
Lifted hPutStr
.
hPutStrLn :: FileSystem :> es => Handle -> ByteString -> Eff es () Source #
Lifted hPutStrLn
.