-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathprettyprinter-ansi-terminal.cabal
More file actions
99 lines (89 loc) · 3.37 KB
/
prettyprinter-ansi-terminal.cabal
File metadata and controls
99 lines (89 loc) · 3.37 KB
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
name: prettyprinter-ansi-terminal
version: 1.1.4
cabal-version: >= 1.10
category: User Interfaces, Text
synopsis: ANSI terminal backend for the »prettyprinter« package.
description: See README.md
license: BSD2
license-file: LICENSE.md
extra-source-files: README.md
, misc/version-compatibility-macros.h
, CHANGELOG.md
author: David Luposchainsky
maintainer: Simon Jakobi <simon.jakobi@gmail.com>, David Luposchainsky <dluposchainsky at google>
bug-reports: http://github.com/quchen/prettyprinter/issues
homepage: http://github.com/quchen/prettyprinter
build-type: Simple
tested-with: GHC==9.12.2, GHC==9.10.3, GHC==9.8.4, GHC==9.6.7, GHC==9.4.8, GHC==9.2.8, GHC==9.0.2, GHC==8.10.7, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2
source-repository head
type: git
location: https://github.com/quchen/prettyprinter
flag text
description: While it's a core value of @prettyprinter@ packages to use @Text@, there are rare
circumstances (mostly when @prettyprinter@ arises as a dependency of
test suites of packages like @bytestring@ or @text@ themselves) when
this is inconvenient. In this case one can disable this flag, so that
@prettyprinter-ansi-terminal@ fallbacks to @String@.
default: True
manual: True
library
exposed-modules: Data.Text.Prettyprint.Doc.Render.Terminal
, Data.Text.Prettyprint.Doc.Render.Terminal.Internal
, Prettyprinter.Render.Terminal
, Prettyprinter.Render.Terminal.Internal
ghc-options: -Wall -O2
hs-source-dirs: src
include-dirs: misc
default-language: Haskell2010
other-extensions:
CPP
, OverloadedStrings
build-depends:
base >= 4.9 && < 5
, ansi-terminal >= 0.4.0
, prettyprinter >= 1.7.0
if flag(text)
build-depends: text >= 1.2
else
-- A fake text package, emulating the same API, but backed by String
hs-source-dirs: src-text
other-modules:
Data.Text
, Data.Text.IO
, Data.Text.Lazy
, Data.Text.Lazy.Builder
if impl(ghc >= 8.0)
ghc-options: -Wcompat
if !impl(ghc >= 8.0) && !impl(mhs)
build-depends: semigroups >= 0.1
test-suite doctest
type: exitcode-stdio-1.0
hs-source-dirs: test/Doctest
main-is: Main.hs
build-depends:
base >= 4.9 && < 5
, doctest >= 0.9
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010
if impl (ghc < 7.10)
buildable: False
-- Doctest cannot search folders in old versions it seems :-(
benchmark large-output
build-depends:
base >= 4.9 && < 5
, base-compat >=0.9.3 && <0.15
, containers
, deepseq
, tasty-bench >= 0.2
, prettyprinter
, prettyprinter-ansi-terminal
, QuickCheck >= 2.8
, text
hs-source-dirs: bench
main-is: LargeOutput.hs
ghc-options: -O2 -rtsopts -Wall
default-language: Haskell2010
type: exitcode-stdio-1.0
-- For GHC.Generics
if !impl(ghc >= 7.6)
build-depends: ghc-prim