@hackage co-log-core0.3.2.7
Composable Contravariant Comonadic Logging Library
Installation
Tested Compilers
Dependencies (1)
Dependents (33)
@hackage/hs-opentelemetry-instrumentation-co-log, @hackage/futhark, @hackage/inferno-lsp, @hackage/dhall-lsp-server, @hackage/morley-client, @hackage/hls-plugin-api, Show all…
co-log-core

co-log-core is a lightweight package that provides core types and functions to
work with the @LogAction@ data type which is both simple and powerful.
How to use
co-log-core is compatible with the following GHC
versions - supported versions
In order to start using co-log-core in your project, you
will need to set it up with these steps:
-
Add the dependency on
co-log-corein your project's.cabalfile. For this, you should modify thebuild-dependssection according to the below section:build-depends: base ^>= LATEST_SUPPORTED_BASE , co-log-core ^>= LATEST_VERSION -
To use this package, refer to the below example.
module Main (main) where import Prelude hiding (log) import Colog.Core (LogAction, logStringStdout, (<&)) app :: LogAction IO String -> IO () app log = do log <& "Starting app..." log <& "Finishing app..." main :: IO () main = app logStringStdout