polysemy-log-di: Di Adapters for Polysemy-Log

[ library, logging ] [ Propose Tags ]

See https://hackage.haskell.org/package/polysemy-log-di/docs/Polysemy-Log-Di.html

[Skip to Readme]
Versions [RSS] [faq],,,,,,,,,,,,,,,
Change log changelog.md
Dependencies base (==4.*), di-polysemy (>=, polysemy (>=1.5), polysemy-conc (>=, polysemy-log, polysemy-time (>= [details]
License BSD-2-Clause-Patent
Copyright 2021 Torsten Schmits
Author Torsten Schmits
Maintainer tek@tryp.io
Category Logging
Home page https://github.com/tek/polysemy-log#readme
Bug tracker https://github.com/tek/polysemy-log/issues
Source repo head: git clone https://github.com/tek/polysemy-log
Uploaded by tek at 2022-01-22T00:34:26Z
Distributions NixOS:
Downloads 1282 total (19 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees


Readme for polysemy-log-di-

[back to package description]


The di adapter for polysemy-log.

import Polysemy.Log
import Polysemy.Log.Di

prog :: Member Log r => Sem r ()
prog = do
  Log.debug "debugging"
  Log.error "failing"

interpretLogDi prog :: Sem [Di.Di Severity path (LogEntry LogMessage), Embed IO] ()
interpretLogStdout prog :: Sem '[Embed IO] ()

For more documentation, please consult Hackage: