forked from AJChapman/formatting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
formatting.cabal
104 lines (97 loc) · 3.57 KB
/
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
cabal-version: 2.2
name: formatting
version: 7.2.0
synopsis: Combinator-based type-safe formatting (like printf() or FORMAT)
description: Combinator-based type-safe formatting (like printf() or FORMAT), modelled from the HoleyMonoids package.
.
See the README at <https://github.com/AJChapman/formatting#readme> for more info.
homepage: https://github.com/AJChapman/formatting#readme
bug-reports: https://github.com/AJChapman/formatting/issues
license: BSD-3-Clause
license-file: LICENSE
author: Chris Done, Shachaf Ben-Kiki, Martijn van Steenbergen, Mike Meyer, Bryan O'Sullivan, Alex Chapman
maintainer: [email protected]
copyright: 2020 Alex Chapman, 2013 Chris Done, Shachaf Ben-Kiki, Martijn van Steenbergen, Mike Meyer, 2011 MailRank, Inc.
category: Text
build-type: Simple
extra-source-files: CHANGELOG.md
README.md
tested-with: GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.2
common deps
build-depends:
base >= 4.11 && < 5,
text >= 0.11.0.8
-- 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
flag no-double-conversion
description: Avoid 'double-conversion' dependency, which is large and uses C code
manual: False
default: False
library
import: deps
hs-source-dirs: src
build-depends:
clock >= 0.4,
old-locale,
scientific >= 0.3.0.0,
time >= 1.5,
transformers,
if !impl(ghcjs) && !flag(no-double-conversion)
build-depends:
double-conversion ^>= 2.0.2.0,
exposed-modules:
Formatting
Formatting.Formatters
Formatting.ShortFormatters
Formatting.Combinators
Formatting.Examples
Formatting.Time
Formatting.Clock
Formatting.Internal
Formatting.Internal.Raw
Formatting.Buildable
Formatting.FromBuilder
other-modules:
Data.Text.Format.Functions
Data.Text.Format.Types
Data.Text.Format
test-suite formatting-test
import: deps
build-depends: formatting, hspec, scientific, time
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
benchmark bench
import: deps
type: exitcode-stdio-1.0
hs-source-dirs: bench
main-is: bench.hs
build-depends: formatting, criterion, QuickCheck
ghc-options: -O2
source-repository head
type: git
location: http://github.com/AJChapman/formatting