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

Effectful.Console.ByteString.Lazy

Description

Lifted functions from Data.ByteString.Lazy.Char8 that are related to standard streams. 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.Char8 (ByteString)
import qualified Data.ByteString.Lazy.Char8 as LBS8
import Effectful.Console.ByteString.Lazy (Console)
import qualified Effectful.Console.ByteString.Lazy as Console
Synopsis

Effect

data Console :: Effect Source #

An effect for reading from/writing to stdin, stdout or stderr.

Instances

Instances details
type DispatchOf Console Source # 
Instance details

Defined in Effectful.Console.Effect

data StaticRep Console Source # 
Instance details

Defined in Effectful.Console.Effect

Handlers

runConsole :: IOE :> es => Eff (Console : es) a -> Eff es a Source #

Run the Console effect.

Operations

putStr :: Console :> es => ByteString -> Eff es () Source #

Lifted putStr.

putStrLn :: Console :> es => ByteString -> Eff es () Source #

Lifted putStrLn.

interact :: Console :> es => (ByteString -> ByteString) -> Eff es () Source #

Lifted interact.