Repository navigation
Expand file tree
/
Copy pathtagged-json.cabal
More file actions
119 lines (107 loc) · 2.83 KB
/
Copy pathtagged-json.cabal
File metadata and controls
119 lines (107 loc) · 2.83 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
cabal-version: 3.0
name: tagged-json
version: 0.1.0.0
homepage: https://github.com/scrive/tagged-json
license: BSD-3-Clause
license-file: LICENSE
maintainer: Pavel Potoček <pavel.potocek@scrive.com>
author: Scrive AB
synopsis: Derive JSON representation for Haskell data types
description:
Derive JSON representations and OpenApi schemas for Haskell data types.
The resulting JSON representation avoids unnecessary nesting, allows for backwards-compatible
extension, and is flexible enough to represent many existing JSON schemas.
Explicit sum type tags are always used, so that JSON serialization is obvious and unambiguous.
category: JSON
build-type: Simple
extra-doc-files: CHANGELOG.md
tested-with:
GHC ==9.2.8
|| ==9.4.8
|| ==9.6.7
|| ==9.8.4
|| ==9.10.3
|| ==9.12.4
source-repository head
type: git
location: https://github.com/scrive/tagged-json.git
library
exposed-modules: Deriving.TaggedJson
hs-source-dirs: src
default-language: GHC2021
default-extensions:
DataKinds
DerivingStrategies
DerivingVia
DuplicateRecordFields
GADTs
LambdaCase
NoFieldSelectors
OverloadedLabels
OverloadedRecordDot
OverloadedStrings
RecordWildCards
StrictData
TypeFamilies
UndecidableInstances
ghc-options:
-Werror -Wall -Wcompat -Wprepositive-qualified-module
-Winvalid-haddock -Wmissing-deriving-strategies -Wpartial-fields
-Wno-unticked-promoted-constructors -Woperator-whitespace
build-depends:
, aeson >=2.0 && <2.4
, base >=4.16 && <5
, insert-ordered-containers
, openapi3
, optics
, text
executable tagged-json-example
main-is: Main.hs
hs-source-dirs: example
other-modules:
DerivingVia
DerivingViaInstances
GenericInstances
default-language: GHC2021
ghc-options: -Wall
build-depends:
, aeson
, base
, bytestring
, openapi3
, tagged-json
test-suite tagged-json-test
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
other-modules: TestTaggedJson
default-language: GHC2021
default-extensions:
DataKinds
DerivingStrategies
DerivingVia
DuplicateRecordFields
GADTs
LambdaCase
NoFieldSelectors
OverloadedLabels
OverloadedRecordDot
OverloadedStrings
RecordWildCards
StrictData
TypeFamilies
UndecidableInstances
ghc-options:
-Werror -Wall -Wcompat -Wprepositive-qualified-module
-Winvalid-haddock -Wmissing-deriving-strategies -Wpartial-fields
-Wno-unticked-promoted-constructors -Woperator-whitespace
build-depends:
, aeson
, base
, bytestring
, openapi3
, optics
, tagged-json
, tasty
, tasty-hunit
, text