git.iko.soy/typeable/openapi3
on 8050047 help sign in
typeable/openapi3/openapi3.cabal
160 lines 4.7 kB history raw
1cabal-version: >=1.10
2name: openapi3
3version: 3.2.1
5synopsis: OpenAPI 3.0 data model
6category: Web, Swagger, OpenApi
7description:
8 This library is intended to be used for decoding and encoding OpenAPI 3.0 API
9 specifications as well as manipulating them.
10 .
11 The original OpenAPI 3.0 specification is available at http://swagger.io/specification/.
13homepage: https://github.com/biocad/openapi3
14bug-reports: https://github.com/biocad/openapi3/issues
15license: BSD3
16license-file: LICENSE
17author: Nickolay Kudasov, Maxim Koltsov
18maintainer: nickolay@getshoptv.com, kolmax94@gmail.com
19copyright: (c) 2015-2016, GetShopTV, (c) 2020, Biocad
20build-type: Custom
21extra-source-files:
22 README.md
23 , CHANGELOG.md
24 , examples/*.hs
25tested-with:
26 GHC ==8.4.4
27 || ==8.6.5
28 || ==8.8.4
29 || ==8.10.7
30 || ==9.0.2
31 || ==9.2.1
33custom-setup
34 setup-depends:
35 base, Cabal, cabal-doctest >=1.0.6 && <1.1
37library
38 hs-source-dirs: src
39 exposed-modules:
40 Data.OpenApi
41 Data.OpenApi.Declare
42 Data.OpenApi.Lens
43 Data.OpenApi.Operation
44 Data.OpenApi.Optics
45 Data.OpenApi.ParamSchema
46 Data.OpenApi.Schema
47 Data.OpenApi.Schema.Generator
48 Data.OpenApi.Schema.Validation
49 Data.OpenApi.SchemaOptions
51 -- internal modules
52 Data.OpenApi.Internal
53 Data.OpenApi.Internal.Schema
54 Data.OpenApi.Internal.Schema.Validation
55 Data.OpenApi.Internal.ParamSchema
56 Data.OpenApi.Internal.Utils
57 Data.OpenApi.Internal.AesonUtils
58 Data.OpenApi.Internal.TypeShape
60 Data.OpenApi.Aeson.Compat
62 -- GHC boot libraries
63 build-depends:
64 base >=4.11.1.0 && <4.17
65 , bytestring >=0.10.8.2 && <0.12
66 , containers >=0.5.11.0 && <0.7
67 , template-haskell >=2.13.0.0 && <2.19
68 , time >=1.8.0.2 && <1.14
69 , transformers >=0.5.5.0 && <0.6
71 build-depends:
72 mtl >=2.2.2 && <2.3
73 , text >=1.2.3.1 && <2.1
75 -- other dependencies
76 build-depends:
77 base-compat-batteries >=0.11.1 && <0.13
78 , aeson >=1.4.2.0 && <1.6 || >=2.0.1.0 && < 2.1
79 , aeson-pretty >=0.8.7 && <0.9
80 -- cookie 0.4.3 is needed by GHC 7.8 due to time>=1.4 constraint
81 , cookie >=0.4.3 && <0.5
82 , generics-sop >=0.5.1.0 && <0.6
83 , hashable >=1.2.7.0 && <1.5
84 , http-media >=0.8.0.0 && <0.9
85 , insert-ordered-containers >=0.2.3 && <0.3
86 , lens >=4.16.1 && <5.2
87 , network >=2.6.3.5 && <3.2
88 , optics-core >=0.2 && <0.5
89 , optics-th >=0.2 && <0.5
90 , scientific >=0.3.6.2 && <0.4
91 , unordered-containers >=0.2.9.0 && <0.3
92 , uuid-types >=1.0.3 && <1.1
93 , vector >=0.12.0.1 && <0.13
94 , QuickCheck >=2.10.1 && <2.15
96 default-language: Haskell2010
98test-suite spec
99 type: exitcode-stdio-1.0
100 hs-source-dirs: test
101 main-is: Spec.hs
103 -- From library parat
104 -- We need aeson's toEncoding for doctests too
105 build-depends:
106 base
107 , QuickCheck
108 , aeson
109 , base-compat-batteries
110 , bytestring
111 , containers
112 , hashable
113 , insert-ordered-containers
114 , lens
115 , mtl
116 , openapi3
117 , template-haskell
118 , text
119 , time
120 , unordered-containers
121 , vector
123 -- test-suite only dependencies
124 build-depends:
125 hspec >=2.5.5 && <2.10
126 , HUnit >=1.6.0.0 && <1.7
127 , quickcheck-instances >=0.3.19 && <0.14
128 , utf8-string >=1.0.1.1 && <1.1
130 -- https://github.com/haskell/cabal/issues/3708
131 build-tool-depends:
132 hspec-discover:hspec-discover >=2.5.5 && <2.10
134 other-modules:
135 SpecCommon
136 Data.OpenApiSpec
137 Data.OpenApi.CommonTestTypes
138 Data.OpenApi.ParamSchemaSpec
139 Data.OpenApi.SchemaSpec
140 Data.OpenApi.Schema.ValidationSpec
141 Data.OpenApi.Schema.GeneratorSpec
142 default-language: Haskell2010
144test-suite doctests
145 -- See QuickCheck note in https://github.com/phadej/cabal-doctest#notes
146 build-depends: base, doctest, Glob, QuickCheck
147 default-language: Haskell2010
148 hs-source-dirs: test
149 main-is: doctests.hs
150 type: exitcode-stdio-1.0
152executable example
153 hs-source-dirs: examples
154 main-is: hackage.hs
155 default-language: Haskell2010
156 build-depends: base, aeson, lens, openapi3, text
158source-repository head
159 type: git
160 location: https://github.com/biocad/openapi3.git