effectful-2.5.0.0: An easy to use, performant extensible effects library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Effectful.FileSystem.IO.ByteString

Description

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

Introducing and eliminating ByteStrings

Files

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.