@@ -1,11 +1,11 @@
1−cabal-version: >=1.10
1+cabal-version: 2.4
3version: 0.1.0.0
3version: 0.1.0.0
4synopsis: anonymous records for busy people
4synopsis: anonymous records for busy people
6-- description:
6-- description:
7−-- bug-reports:
7+bug-reports: https://github.com/juspay/jrec/issues
8−license: BSD3
8+license: BSD-3-Clause
9license-file: LICENSE
9license-file: LICENSE
10author: Artyom Kazak
10author: Artyom Kazak
11maintainer: artyom.kazak@juspay.in
11maintainer: artyom.kazak@juspay.in
@@ -17,44 +17,10 @@ extra-source-files:
17 CHANGELOG.md
17 CHANGELOG.md
20−library
20+-- A common stanza to share with tests, so that ghcid (bin/test) will reload
21− hs-source-dirs: src
21+-- instantly when the library sources change (without us having to restart it).
22− exposed-modules:
22+common library-common
23− JRec
23+ default-language: Haskell2010
34− DuplicateRecordFields
37− FunctionalDependencies
42− MultiParamTypeClasses
58 build-depends:
24 build-depends:
60 , base >=4.13 && <4.15
26 , base >=4.13 && <4.15
@@ -68,20 +34,6 @@ library
72− default-language: Haskell2010
75− type: exitcode-stdio-1.0
84− default-language: Haskell2010
85 default-extensions:
37 default-extensions:
86 BlockArguments
38 BlockArguments
@@ -109,5 +61,25 @@ test-suite jrec-test
109 UnicodeSyntax
61 UnicodeSyntax
110 ViewPatterns
62 ViewPatterns
111 ConstraintKinds
63 ConstraintKinds
67+ import: library-common
77+ import: library-common
78+ type: exitcode-stdio-1.0
79+ hs-source-dirs: test, src