MPL-2.0 licensed by Dmitrii Kovanikov
Maintained by Kowainik
This version can be pinned in stack with:co-log-polysemy-0.0.1.5@sha256:8a931a3e7752a146b5750ac609946af3a1d8d4926083eceb79a1f16f77c249c0,4004

Module documentation for 0.0.1.5

Used by 1 package in nightly-2024-11-11(full list with versions):

co-log-polysemy

Co-logo

GitHub CI Hackage MPL-2.0 license

co-log-polysemy package is a implementation of the co-log-core logging based on the polysemy extensible effects library.

How to use

co-log-polysemy is compatible with the following GHC versions - supported versions

In order to start using co-log-polysemy in your project, you will need to set it up with these easy steps:

  1. Add the dependency on co-log-polysemy in your project’s .cabal file. For this, you should modify the build-depends section according to the below section:

    build-depends: base ^>= LATEST_SUPPORTED_BASE
                 , co-log-core ^>= LATEST_VERSION
                 , polysemy ^>= LATEST_VERSION
    
  2. To use this package, refer to the below example

    module Main (main) where
    
    import Prelude hiding (log)
    
    import Polysemy (Member, Sem, runM)
    
    import Colog.Core.IO (logStringStdout)
    import Colog.Polysemy (Log, log, runLogAction)
    
    
    example :: Member (Log String) r => Sem r ()
    example = do
         log @String "First message..."
         log @String "Second message..."
    
    main :: IO ()
    main = runM $ runLogAction @IO logStringStdout example
    

Changes

Changelog

co-log-polysemy uses PVP Versioning. The changelog is available on GitHub.

0.0.1.5 - Jun 8, 2024

What’s Changed

Full Changelog: https://github.com/co-log/co-log-polysemy/compare/v0.0.1.4...v0.0.1.5

0.0.1.4 — Oct 20, 2023

What’s Changed

  • update README.md by @udaycruise2903 in #6
  • modified ‘build-depends’ section in README.md by @udaycruise2903 in #7
  • GA(deps): Bump actions/checkout from 2 to 3 by @dependabot in #9
  • GA(deps): Bump actions/cache from 2 to 3 by @dependabot in #10
  • GA(deps): Bump haskell/actions from 1 to 2 by @dependabot in #12
  • Support GHC 9.2. by @alaendle in #14
  • GA(deps): Bump actions/checkout from 3 to 4 by @dependabot in #19
  • GHC 9.6 by @alaendle in #17
  • Support ghc-9.8 by @alaendle in #20
  • Publish to hackage directly from GitHub by @alaendle in #21

New Contributors

  • @udaycruise2903 made their first contribution in #6
  • @dependabot made their first contribution in #9
  • @alaendle made their first contribution in #14

Full Changelog: https://github.com/co-log/co-log-polysemy/compare/v0.0.1.3...v0.0.1.4

0.0.1.3 — Nov 2, 2021

  • #223: Support GHC-9.0.1.
  • Allow polysemy-1.6.0.0.
  • Bump up lower bound for co-log-core to 0.3.0.0.

0.0.1.2 — Apr 18, 2020

  • #186: Support GHC-8.10.1.

0.0.1.1 — Feb 17, 2020

0.0.1.0 — Jan 19, 2020

  • #121: Add LogAction and interpreter that works directly with the Sem monad. (by @chshersh)
  • #148: Support GHC-8.8.2. (by @chshersh)
  • Bump up polysemy to the latest version. (by @Avi-D-coder)

0.0.0.0 — May 5, 2019

  • Initially created.