polysemy-log-di: polysemy-log interpreter for di

[ library, logging ] [ Propose Tags ] [ Report a vulnerability ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.2.0.1, 0.2.1.0, 0.2.2.0, 0.2.2.1, 0.2.2.2, 0.2.2.3, 0.2.2.4, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.4.0.0, 0.4.1.0, 0.4.2.0, 0.4.3.0, 0.5.0.0, 0.6.0.0, 0.6.0.1, 0.7.0.0, 0.7.1.0, 0.7.2.0, 0.8.0.0, 0.9.0.0, 0.10.0.0, 0.10.0.1, 0.11.0.0 (info)
Change log Changelog.md
Dependencies base (>=4 && <5), di-polysemy (>=0.2.0.0 && <0.3), polysemy (>=1.3 && <1.5), polysemy-log, polysemy-time (>=0.1.1.0 && <0.2), relude (>=0.5 && <0.8), string-interpolate (>=0.2.1), text, 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 2021-03-28T22:31:29Z
Distributions
Downloads 3185 total (62 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for polysemy-log-di-0.2.0.0

[back to package description]

About

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: