Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data Capability
- log :: Has Capability e => Text -> Effectful e ()
- err :: Has Capability e => Text -> Effectful e ()
- debug :: Has Capability e => Text -> Effectful e ()
- stdOut :: Capability
- mute :: Capability
Documentation
data Capability Source #
Capability for our context to be able to log from any place where it is available:
foo :: Has Logging.Capability e => Effectful e () foo = do log "Something happened :(" ...
log :: Has Capability e => Text -> Effectful e () Source #
Logs a text message using the available logger
err :: Has Capability e => Text -> Effectful e () Source #
Logs an error message using the available logger
debug :: Has Capability e => Text -> Effectful e () Source #
Logs a debug message using the available logger
stdOut :: Capability Source #
Creates a logger that just prints things to STDOUT
mute :: Capability Source #
Creates a logger that does literally nothing