forked from winterland1989/monad-log
-
Notifications
You must be signed in to change notification settings - Fork 0
/
monad-log.cabal
61 lines (57 loc) · 2.32 KB
/
monad-log.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: monad-log
version: 0.1.1.0
synopsis: A simple and fast logging monad
description:
This package provide a mtl style `MonadLog` class and a concrete monad transformer `LogT`, the main difference between this package and monad-logger are:
.
* Base monad has to be an instance of `MonadIO`.
.
* Parametrized logging environment for extensibility.
.
* Basic logging environment type(`Label`,`Loc`,`NameSpace`,`ThreadId`) are included, and you can easily make your own.
.
* JSON logging built-in.
.
* default to fast-logger backend, with good stdout and file support.
.
If you are an application author, you can use `LogT` transformer, it's just a specialized reader monad to inject `Logger env`.
.
If you are a library author, you should do following two things:
.
* make your monad stack an instance of 'MonadLog', usually you can do this by embedding `Logger env` into your monad's reader part.
.
* provide a default formatter, and API to run with customized formatter.
license: MIT
license-file: LICENSE
author: winterland1989
maintainer: winterland1989@gmail.com
-- copyright:
category: Development
build-type: Simple
extra-source-files: CHANGELOG.md README.md
cabal-version: >=1.10
library
ghc-options: -Wall
exposed-modules: Control.Monad.Log
, Control.Monad.Log.Label
, Control.Monad.Log.LogLoc
, Control.Monad.Log.NameSpace
, Control.Monad.Log.LogThreadId
-- other-modules:
-- other-extensions:
build-depends: base >=4.6 && <5
, fast-logger >=2.4.5 && <2.5
, monad-control >=0.3 && <1.1
, lifted-base
, exceptions >=0.6 && <0.9
, bytestring
, text
, text-show
, transformers >=0.2
, aeson >= 0.4 && <0.12
, template-haskell
-- hs-source-dirs:
default-language: Haskell2010
source-repository head
type: git
location: https://github.com/winterland1989/monad-log