Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Lifted Data.ByteString. 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 (ByteString) import Data.ByteString qualified as BS import Effectful.FileSystem.IO.ByteString qualified as EBS
Synopsis
- fromFilePath :: FileSystem :> es => FilePath -> Eff es ByteString
- toFilePath :: FileSystem :> es => ByteString -> Eff es FilePath
- readFile :: FileSystem :> es => FilePath -> Eff es ByteString
- writeFile :: FileSystem :> es => FilePath -> ByteString -> Eff es ()
- appendFile :: FileSystem :> es => FilePath -> ByteString -> Eff es ()
- hGetLine :: FileSystem :> es => Handle -> Eff es ByteString
- hGetContents :: FileSystem :> es => Handle -> Eff es ByteString
- hGet :: FileSystem :> es => Handle -> Int -> Eff es ByteString
- hGetSome :: 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 ()
Introducing and eliminating ByteStrings
fromFilePath :: FileSystem :> es => FilePath -> Eff es ByteString Source #
Lifted fromFilePath
.
toFilePath :: FileSystem :> es => ByteString -> Eff es FilePath Source #
Lifted toFilePath
.
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
hGetLine :: FileSystem :> es => Handle -> Eff es ByteString Source #
Lifted hGetLine
.
hGetContents :: FileSystem :> es => Handle -> Eff es ByteString Source #
Lifted hGetContents
.
hGet :: FileSystem :> es => Handle -> Int -> Eff es ByteString Source #
Lifted hGet
.
hGetSome :: FileSystem :> es => Handle -> Int -> Eff es ByteString Source #
Lifted hGetSome
.
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
.