forked from informatikr/aeson-pretty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aeson-pretty.cabal
87 lines (77 loc) · 2.56 KB
/
aeson-pretty.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
cabal-version: 2.0
name: aeson-pretty
version: 0.9.0
license: BSD3
license-file: LICENSE
category: Text, Web, JSON, Pretty Printer
copyright: Copyright 2011 Falko Peters
author: Falko Peters <[email protected]>
maintainer: Martijn Bastiaan <[email protected]>
stability: experimental
homepage: http://github.com/informatikr/aeson-pretty
bug-reports: http://github.com/informatikr/aeson-pretty/issues
build-type: Simple
synopsis: JSON pretty-printing library and command-line tool.
description:
A JSON pretty-printing library compatible with aeson as well as
a command-line tool to improve readabilty of streams of JSON data.
.
The /library/ provides the function "encodePretty". It is a drop-in
replacement for aeson's "encode" function, producing JSON-ByteStrings for
human readers.
.
The /command-line tool/ reads JSON from stdin and writes prettified JSON
to stdout. It also offers a complementary "compact"-mode, essentially the
opposite of pretty-printing. If you specify @-flib-only@ like this
.
> cabal install -flib-only aeson-pretty
.
the command-line tool will NOT be installed.
extra-source-files:
README.markdown
CHANGELOG.markdown
flag lib-only
description: Only build/install the library, NOT the command-line tool.
default: False
library
exposed-modules:
Data.Aeson.Encode.Pretty
build-depends:
aeson ^>=1.1 || ^>=1.2 || ^>=1.3 || ^>=1.4 || ^>=1.5 || ^>=2.0 || ^>=2.1 || ^>=2.2,
aeson-extra >= 0.5.1,
base >= 4.5,
base-compat >= 0.9,
bytestring >= 0.9,
mono-traversable >= 1.0.15,
recursion-schemes >= 5.2.2,
scientific >= 0.3,
vector >= 0.9,
text >= 0.11,
unordered-containers >= 0.2.14.0
if !impl(ghc >= 8.0)
build-depends:
semigroups >= 0.18.2
ghc-options: -Wall
default-language: Haskell2010
executable aeson-pretty
hs-source-dirs: cli-tool
main-is: Main.hs
other-modules: Paths_aeson_pretty
autogen-modules: Paths_aeson_pretty
if flag(lib-only)
buildable: False
else
build-depends:
aeson >= 0.6,
aeson-pretty,
attoparsec >= 0.10,
attoparsec-aeson,
base == 4.*,
bytestring >= 0.9,
cmdargs >= 0.7
ghc-options: -Wall
ghc-prof-options: -auto-all
default-language: Haskell2010
source-repository head
type: git
location: http://github.com/informatikr/aeson-pretty