Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- data Console :: Effect
- runConsole :: IOE :> es => Eff (Console : es) a -> Eff es a
- getContents :: Console :> es => Eff es ByteString
- putStr :: Console :> es => ByteString -> Eff es ()
- putStrLn :: Console :> es => ByteString -> Eff es ()
- interact :: Console :> es => (ByteString -> ByteString) -> Eff es ()
Effect
data Console :: Effect Source #
Instances
type DispatchOf Console Source # | |
Defined in Effectful.Console.Effect | |
data StaticRep Console Source # | |
Defined in Effectful.Console.Effect |
Handlers
Operations
getContents :: Console :> es => Eff es ByteString Source #
Lifted getContents
.
interact :: Console :> es => (ByteString -> ByteString) -> Eff es () Source #
Lifted interact
.