git.iko.soy/typeable/openapi3
on 867ff82 help sign in
typeable/openapi3/openapi3.cabal
156 lines 4.6 kB history raw
1cabal-version: >=1.10
2name: openapi3
3version: 3.0.0
5synopsis: OpenAPI 3.0 data model
6category: Web, Swagger
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.3
29 || ==8.10.1
31custom-setup
32 setup-depends:
33 base, Cabal, cabal-doctest >=1.0.6 && <1.1
35library
36 hs-source-dirs: src
37 exposed-modules:
38 Data.Swagger
39 Data.Swagger.Declare
40 Data.Swagger.Lens
41 Data.Swagger.Operation
42 Data.Swagger.Optics
43 Data.Swagger.ParamSchema
44 Data.Swagger.Schema
45 Data.Swagger.Schema.Generator
46 Data.Swagger.Schema.Validation
47 Data.Swagger.SchemaOptions
49 -- internal modules
50 Data.Swagger.Internal
51 Data.Swagger.Internal.Schema
52 Data.Swagger.Internal.Schema.Validation
53 Data.Swagger.Internal.ParamSchema
54 Data.Swagger.Internal.Utils
55 Data.Swagger.Internal.AesonUtils
56 Data.Swagger.Internal.TypeShape
58 -- GHC boot libraries
59 build-depends:
60 base >=4.11.1.0 && <4.15
61 , bytestring >=0.10.8.2 && <0.11
62 , containers >=0.5.11.0 && <0.7
63 , template-haskell >=2.13.0.0 && <2.17
64 , time >=1.8.0.2 && <1.10
65 , transformers >=0.5.5.0 && <0.6
67 build-depends:
68 mtl >=2.2.2 && <2.3
69 , text >=1.2.3.1 && <1.3
71 -- other dependencies
72 build-depends:
73 base-compat-batteries >=0.11.1 && <0.12
74 , aeson >=1.4.2.0 && <1.6
75 , aeson-pretty >=0.8.7 && <0.9
76 -- cookie 0.4.3 is needed by GHC 7.8 due to time>=1.4 constraint
77 , cookie >=0.4.3 && <0.5
78 , generics-sop >=0.5.1.0 && <0.6
79 , hashable >=1.2.7.0 && <1.4
80 , http-media >=0.8.0.0 && <0.9
81 , insert-ordered-containers >=0.2.3 && <0.3
82 , lens >=4.16.1 && <4.20
83 , network >=2.6.3.5 && <3.2
84 , optics-core >=0.2 && <0.4
85 , optics-th >=0.2 && <0.4
86 , scientific >=0.3.6.2 && <0.4
87 , unordered-containers >=0.2.9.0 && <0.3
88 , uuid-types >=1.0.3 && <1.1
89 , vector >=0.12.0.1 && <0.13
90 , QuickCheck >=2.10.1 && <2.15
92 default-language: Haskell2010
94test-suite spec
95 type: exitcode-stdio-1.0
96 hs-source-dirs: test
97 main-is: Spec.hs
99 -- From library parat
100 -- We need aeson's toEncoding for doctests too
101 build-depends:
102 base
103 , QuickCheck
104 , aeson
105 , base-compat-batteries
106 , bytestring
107 , containers
108 , hashable
109 , insert-ordered-containers
110 , lens
111 , mtl
112 , openapi3
113 , template-haskell
114 , text
115 , time
116 , unordered-containers
117 , vector
119 -- test-suite only dependencies
120 build-depends:
121 hspec >=2.5.5 && <2.8
122 , HUnit >=1.6.0.0 && <1.7
123 , quickcheck-instances >=0.3.19 && <0.14
124 , utf8-string >=1.0.1.1 && <1.1
126 -- https://github.com/haskell/cabal/issues/3708
127 build-tool-depends:
128 hspec-discover:hspec-discover >=2.5.5 && <2.8
130 other-modules:
131 SpecCommon
132 Data.SwaggerSpec
133 Data.Swagger.CommonTestTypes
134 Data.Swagger.ParamSchemaSpec
135 Data.Swagger.SchemaSpec
136 Data.Swagger.Schema.ValidationSpec
137 Data.Swagger.Schema.GeneratorSpec
138 default-language: Haskell2010
140test-suite doctests
141 -- See QuickCheck note in https://github.com/phadej/cabal-doctest#notes
142 build-depends: base, doctest, Glob, QuickCheck
143 default-language: Haskell2010
144 hs-source-dirs: test
145 main-is: doctests.hs
146 type: exitcode-stdio-1.0
148executable example
149 hs-source-dirs: examples
150 main-is: hackage.hs
151 default-language: Haskell2010
152 build-depends: base, aeson, lens, openapi3, text
154source-repository head
155 type: git
156 location: https://github.com/biocad/openapi3.git