-
Notifications
You must be signed in to change notification settings - Fork 7
/
jrec.cabal
108 lines (101 loc) · 2.3 KB
/
jrec.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
105
106
107
108
cabal-version: 2.4
name: jrec
version: 0.1.0.1
synopsis: anonymous records for busy people
-- description:
bug-reports: https://github.com/juspay/jrec/issues
license: BSD-3-Clause
license-file: LICENSE
author: Artyom Kazak
maintainer: artyom.kazak@juspay.in
-- copyright:
-- category:
build-type: Simple
extra-source-files:
CHANGELOG.md
README.md
flag with-aeson
description: Enable Aeson instances
-- don't let the solver fiddle with the flag
manual: True
-- with instances by default
default: True
flag with-generics
description: Enable GHC.Generics instances
-- don't let the solver fiddle with the flag
manual: True
-- with instances by default
default: True
-- A common stanza to share with tests, so that ghcid (bin/test) will reload
-- instantly when the library sources change (without us having to restart it).
common library-common
default-language: Haskell2010
build-depends:
aeson
, base >=4.13 && <4.17
, constraints
, deepseq
, generic-data
, generic-lens
, generic-optics
, ghc-prim
, optics-core
, lens
, mtl
, text
default-extensions:
BlockArguments
DataKinds
DeriveGeneric
DerivingStrategies
DuplicateRecordFields
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
InstanceSigs
KindSignatures
LambdaCase
MultiParamTypeClasses
OverloadedLabels
OverloadedStrings
PatternSynonyms
RankNTypes
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeFamilies
TypeOperators
UndecidableInstances
UnicodeSyntax
ViewPatterns
ConstraintKinds
PackageImports
library
import: library-common
hs-source-dirs: src
exposed-modules:
JRec
JRec.Internal
other-modules:
JRec.Tuple
JRec.Field
if flag(with-aeson)
cpp-options: -DWITH_AESON
if flag(with-generics)
cpp-options: -DWITH_GENERICS
test-suite jrec-test
import: library-common
type: exitcode-stdio-1.0
hs-source-dirs: test, src
main-is: Spec.hs
cpp-options: -DWITH_AESON -DWITH_GENERICS
other-modules:
JRecShouldNotTypecheckSpec
JRecSpec
build-depends:
base,
hspec,
QuickCheck,
lens,
should-not-typecheck