on master help sign in
servant/servant-docs/servant-docs.cabal
108 lines 3.3 kB history raw
1cabal-version: 2.2
2name: servant-docs
3version: 0.12
5synopsis: generate API docs for your servant webservice
6category: Servant, Web
7description:
8 Library for generating API docs from a servant API definition.
9 .
10 Runnable example <https://github.com/haskell-servant/servant/blob/master/servant-docs/example/greet.hs here>.
11 .
12 <https://github.com/haskell-servant/servant/blob/master/servant-docs/CHANGELOG.md CHANGELOG>
14homepage: http://docs.servant.dev/
15bug-reports: http://github.com/haskell-servant/servant/issues
16license: BSD-3-Clause
17license-file: LICENSE
18author: Servant Contributors
19maintainer: haskell-servant-maintainers@googlegroups.com
20copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
21build-type: Simple
22tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
24extra-source-files:
25 CHANGELOG.md
26 README.md
27 golden/comprehensive.md
29source-repository head
30 type: git
31 location: http://github.com/haskell-servant/servant.git
33library
34 exposed-modules:
35 Servant.Docs
36 , Servant.Docs.Internal
37 , Servant.Docs.Internal.Pretty
39 -- Bundled with GHC: Lower bound to not force re-installs
40 -- text and mtl are bundled starting with GHC-8.4
41 --
42 -- note: mtl lower bound is so low because of GHC-7.8
43 build-depends:
44 base >= 4.9 && < 4.18
45 , bytestring >= 0.10.8.1 && < 0.12
46 , text >= 1.2.3.0 && < 2.1
48 -- Servant dependencies
49 build-depends:
50 servant >= 0.18 && <0.20
52 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
53 -- Here can be exceptions if we really need features from the newer versions.
54 build-depends:
55 aeson >= 1.4.1.0 && < 3
56 , aeson-pretty >= 0.8.5 && < 0.9
57 , base-compat >= 0.10.5 && < 0.13
58 , case-insensitive >= 1.2.0.11 && < 1.3
59 , hashable >= 1.2.7.0 && < 1.5
60 , http-media >= 0.7.1.3 && < 0.9
61 , http-types >= 0.12.2 && < 0.13
62 , lens >= 4.17 && < 5.3
63 , string-conversions >= 0.4.0.1 && < 0.5
64 , universe-base >= 1.1.1 && < 1.2
65 , unordered-containers >= 0.2.9.0 && < 0.3
67 hs-source-dirs: src
68 default-language: Haskell2010
69 ghc-options: -Wall -Wno-redundant-constraints
71executable greet-docs
72 main-is: greet.hs
73 hs-source-dirs: example
74 ghc-options: -Wall
75 build-depends:
76 base
77 , aeson
78 , lens
79 , servant
80 , servant-docs
81 , string-conversions
82 , text
83 default-language: Haskell2010
85test-suite spec
86 default-language: Haskell2010
87 type: exitcode-stdio-1.0
88 main-is: Spec.hs
89 other-modules: Servant.DocsSpec
90 hs-source-dirs: test
91 ghc-options: -Wall
93 -- Dependencies inherited from the library. No need to specify bounds.
94 build-depends:
95 base
96 , base-compat
97 , aeson
98 , lens
99 , servant
100 , servant-docs
101 , string-conversions
103 -- Additional dependencies
104 build-depends:
105 tasty >= 1.1.0.4 && < 1.5,
106 tasty-golden >= 2.3.2 && < 2.4,
107 tasty-hunit >= 0.10.0.1 && < 0.11,
108 transformers >= 0.5.2.0 && < 0.6