-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathco-log-polysemy-formatting.cabal
79 lines (74 loc) · 3.33 KB
/
co-log-polysemy-formatting.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
cabal-version: 2.4
name: co-log-polysemy-formatting
version: 0.1.1.0
synopsis: A Polysemy logging effect for high quality (unstructured) logs.
description: co-log-polysemy-formatting builds on the co-log-polysemy package, adding terminal colours, log severity, timestamps, callers, thread ids, and a flexible log format with good defaults. It also allows you to use the formatting library for formatting your log messages.
homepage: https://github.com/AJChapman/co-log-polysemy-formatting#readme
bug-reports: https://github.com/AJChapman/co-log-polysemy-formatting/issues
license: BSD-3-Clause
license-file: LICENSE
author: Alex Chapman
maintainer: [email protected]
copyright: 2020 Alex Chapman
category: Logging
extra-source-files: CHANGELOG.md
README.md
extra-doc-files: example/output.png
tested-with: GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.1
common deps
build-depends: base >= 4.11.0.0 && < 5
, co-log ^>= 0.4.0.1
, co-log-core ^>= 0.2.1.1
, co-log-polysemy ^>= 0.0.1.1
, formatting ^>= 7.1.0
, polysemy >= 1.3.0.0 && < 1.6
-- Warnings list list taken from
-- https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3
-- Enable all warnings with -Weverything, then disable the ones we
-- don’t care about
default-language: Haskell2010
ghc-options: -Weverything
-Wno-all-missed-specialisations
-Wno-implicit-prelude
-Wno-missed-specialisations
-Wno-missing-exported-signatures
-Wno-missing-import-lists
-Wno-missing-local-signatures
-Wno-monomorphism-restriction
-Wno-missing-deriving-strategies
-Wno-safe
-Wno-unsafe
-fprint-potential-instances
if impl(ghc >= 8.10)
ghc-options: -Wno-prepositive-qualified-module
-Wno-missing-safe-haskell-mode
library
import: deps
hs-source-dirs: src
default-language: Haskell2010
build-depends: ansi-terminal ^>= 0.10.3
, text >= 0.11.0.8 && < 1.3
, time >= 1.8.0.2 && < 1.10
exposed-modules: Colog.Polysemy.Formatting
Colog.Polysemy.Formatting.Color
Colog.Polysemy.Formatting.LogEnv
Colog.Polysemy.Formatting.Render
Colog.Polysemy.Formatting.ThreadTimeMessage
Colog.Polysemy.Formatting.WithLog
executable example
import: deps
main-is: Main.hs
hs-source-dirs: example
default-language: Haskell2010
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N
-fplugin=Polysemy.Plugin
build-depends: co-log-polysemy-formatting
, polysemy-plugin ^>= 0.2.4.0
source-repository head
type: git
location: https://github.com/AJChapman/co-log-polysemy-formatting