-
Notifications
You must be signed in to change notification settings - Fork 1
/
json5hs.cabal
66 lines (54 loc) · 1.71 KB
/
json5hs.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
name: json5hs
version: 0.1.3.1
synopsis: Serialising to and from JSON5
description:
The JSON5 Data Interchange Format (JSON5) is a superset of JSON
that aims to alleviate some of the limitations of JSON by expanding
its syntax to include some productions from ECMAScript 5.1.
.
This library provides a parser and pretty printer for converting
between Haskell values and JSON5.
category: Web, Text, JSON5
license: BSD3
license-file: LICENSE
author: Yang X. Nan
maintainer: yxnan@pm.me
Copyright: 2019 Yang X. Nan
cabal-version: >= 1.10
build-type: Simple
source-repository head
type: git
location: https://github.com/typowritter/json5hs.git
flag split-base
default: True
description: Use the new split base package.
flag pretty
default: True
description: Add support for using pretty printing combinators.
flag generic
default: True
description: Add support for generic encoder.
flag mapdict
default: False
description: Encode Haskell maps as JSON dicts
library
exposed-modules: Text.JSON5,
Text.JSON5.Types,
Text.JSON5.String
ghc-options: -Wall -O2
default-language: Haskell2010
if flag(split-base)
if flag(generic)
build-depends: base >=4 && <5, syb >= 0.3.3
exposed-modules: Text.JSON5.Generic
Cpp-Options: -DBASE_4
else
build-depends: base >= 3
build-depends: array, containers, bytestring, mtl, text
if flag(pretty)
build-depends: pretty
exposed-modules: Text.JSON5.Pretty
else
build-depends: base < 3
if flag(mapdict)
cpp-options: -DMAP_AS_DICT