|
1 |
| -cabal-version: 2.2 |
2 |
| -name: servant-client-core |
3 |
| -version: 0.20 |
| 1 | +cabal-version: 3.0 |
| 2 | +name: servant-client-core |
| 3 | +version: 0.20 |
| 4 | +synopsis: |
| 5 | + Core functionality and class for client function generation for servant APIs |
4 | 6 |
|
5 |
| -synopsis: Core functionality and class for client function generation for servant APIs |
6 |
| -category: Servant, Web |
| 7 | +category: Servant, Web |
7 | 8 | description:
|
8 | 9 | This library provides backend-agnostic generation of client functions. For
|
9 | 10 | more information, see the README.
|
10 | 11 |
|
11 |
| -homepage: http://docs.servant.dev/ |
12 |
| -bug-reports: http://github.com/haskell-servant/servant/issues |
13 |
| -license: BSD-3-Clause |
14 |
| -license-file: LICENSE |
15 |
| -author: Servant Contributors |
16 |
| - |
17 |
| -copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors |
18 |
| -build-type: Simple |
19 |
| -tested-with: GHC ==8.10.7, GHC ==9.0.2, GHC ==9.2.8, GHC ==9.4.8, GHC ==9.6.4, GHC ==9.8.2 |
| 12 | +homepage: http://docs.servant.dev/ |
| 13 | +bug-reports: http://github.com/haskell-servant/servant/issues |
| 14 | +license: BSD-3-Clause |
| 15 | +license-file: LICENSE |
| 16 | +author: Servant Contributors |
| 17 | + |
| 18 | +copyright: |
| 19 | + 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors |
| 20 | + |
| 21 | +build-type: Simple |
| 22 | +tested-with: |
| 23 | + GHC ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.4 || ==9.8.2 |
20 | 24 |
|
21 | 25 | extra-source-files:
|
22 | 26 | CHANGELOG.md
|
23 | 27 | README.md
|
24 | 28 |
|
25 | 29 | source-repository head
|
26 |
| - type: git |
27 |
| - location: http://github.com/haskell-servant/servant.git |
| 30 | + type: git |
| 31 | + location: http://github.com/haskell-servant/servant.git |
| 32 | + |
| 33 | +common extensions |
| 34 | + default-extensions: |
| 35 | + AllowAmbiguousTypes |
| 36 | + ConstraintKinds |
| 37 | + DataKinds |
| 38 | + DeriveAnyClass |
| 39 | + DeriveDataTypeable |
| 40 | + DeriveFunctor |
| 41 | + DeriveGeneric |
| 42 | + DerivingStrategies |
| 43 | + DerivingVia |
| 44 | + DuplicateRecordFields |
| 45 | + ExplicitNamespaces |
| 46 | + FlexibleContexts |
| 47 | + FlexibleInstances |
| 48 | + FunctionalDependencies |
| 49 | + GADTs |
| 50 | + InstanceSigs |
| 51 | + KindSignatures |
| 52 | + LambdaCase |
| 53 | + MultiParamTypeClasses |
| 54 | + NoStarIsType |
| 55 | + OverloadedLabels |
| 56 | + OverloadedStrings |
| 57 | + PackageImports |
| 58 | + PolyKinds |
| 59 | + RankNTypes |
| 60 | + RecordWildCards |
| 61 | + QuantifiedConstraints |
| 62 | + ScopedTypeVariables |
| 63 | + StrictData |
| 64 | + TupleSections |
| 65 | + TypeApplications |
| 66 | + TypeFamilies |
| 67 | + TypeOperators |
| 68 | + UndecidableInstances |
| 69 | + ViewPatterns |
| 70 | + |
| 71 | + default-language: Haskell2010 |
| 72 | + |
| 73 | +common ghc-options |
| 74 | + ghc-options: |
| 75 | + -Wall -Wcompat -Widentities -Wincomplete-record-updates |
| 76 | + -Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints |
| 77 | + -fhide-source-paths -Wno-unused-do-bind -fdicts-strict |
| 78 | + -Wno-unticked-promoted-constructors -Werror=unused-imports |
| 79 | + -Wunused-packages |
28 | 80 |
|
29 | 81 | library
|
| 82 | + import: extensions |
| 83 | + import: ghc-options |
30 | 84 | exposed-modules:
|
31 |
| - Servant.Client.Core |
32 |
| - Servant.Client.Free |
33 |
| - Servant.Client.Generic |
34 |
| - Servant.Client.Core.Reexport |
35 |
| - Servant.Client.Core.Auth |
36 |
| - Servant.Client.Core.BaseUrl |
37 |
| - Servant.Client.Core.BasicAuth |
38 |
| - Servant.Client.Core.ClientError |
39 |
| - Servant.Client.Core.HasClient |
40 |
| - Servant.Client.Core.Request |
41 |
| - Servant.Client.Core.Response |
42 |
| - Servant.Client.Core.RunClient |
| 85 | + Servant.Client.Core |
| 86 | + Servant.Client.Core.Auth |
| 87 | + Servant.Client.Core.BaseUrl |
| 88 | + Servant.Client.Core.BasicAuth |
| 89 | + Servant.Client.Core.ClientError |
| 90 | + Servant.Client.Core.HasClient |
| 91 | + Servant.Client.Core.Reexport |
| 92 | + Servant.Client.Core.Request |
| 93 | + Servant.Client.Core.Response |
| 94 | + Servant.Client.Core.RunClient |
| 95 | + Servant.Client.Free |
| 96 | + Servant.Client.Generic |
43 | 97 |
|
44 |
| - other-modules: |
45 |
| - Servant.Client.Core.Internal |
| 98 | + other-modules: Servant.Client.Core.Internal |
46 | 99 |
|
47 | 100 | -- Bundled with GHC: Lower bound to not force re-installs
|
48 | 101 | -- text and mtl are bundled starting with GHC-8.4
|
49 | 102 | --
|
50 | 103 | -- note: mtl lower bound is so low because of GHC-7.8
|
51 | 104 | build-depends:
|
52 |
| - base >= 4.9 && < 4.20 |
53 |
| - , bytestring >= 0.10.8.1 && < 0.13 |
54 |
| - , constraints >= 0.2 && < 0.15 |
55 |
| - , containers >= 0.5.7.1 && < 0.7 |
56 |
| - , deepseq >= 1.4.2.0 && < 1.6 |
57 |
| - , text >= 1.2.3.0 && < 2.2 |
58 |
| - , template-haskell >= 2.11.1.0 && < 2.22 |
59 |
| - |
60 |
| - if !impl(ghc >= 8.2) |
61 |
| - build-depends: |
62 |
| - bifunctors >= 5.5.3 && < 5.7 |
| 105 | + , base >=4.9 && <4.20 |
| 106 | + , bytestring >=0.10.8.1 && <0.13 |
| 107 | + , constraints >=0.2 && <0.15 |
| 108 | + , containers >=0.5.7.1 && <0.7 |
| 109 | + , deepseq >=1.4.2.0 && <1.6 |
| 110 | + , template-haskell >=2.11.1.0 && <2.22 |
| 111 | + , text >=1.2.3.0 && <2.2 |
63 | 112 |
|
64 | 113 | -- Servant dependencies
|
65 |
| - build-depends: |
66 |
| - servant >= 0.20 |
| 114 | + build-depends: servant >=0.20 |
67 | 115 |
|
68 | 116 | -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
|
69 | 117 | -- Here can be exceptions if we really need features from the newer versions.
|
70 | 118 | build-depends:
|
71 |
| - aeson >= 1.4.1.0 && < 3 |
72 |
| - , base-compat >= 0.10.5 && < 0.14 |
73 |
| - , base64-bytestring >= 1.0.0.1 && < 1.3 |
74 |
| - , exceptions >= 0.10.0 && < 0.11 |
75 |
| - , free >= 5.1 && < 5.3 |
76 |
| - , http-media >= 0.7.1.3 && < 0.9 |
77 |
| - , http-types >= 0.12.2 && < 0.13 |
78 |
| - , network-uri >= 2.6.1.0 && < 2.7 |
79 |
| - , safe >= 0.3.17 && < 0.4 |
80 |
| - , sop-core >= 0.4.0.0 && < 0.6 |
81 |
| - |
82 |
| - hs-source-dirs: src |
83 |
| - default-language: Haskell2010 |
84 |
| - ghc-options: -Wall |
| 119 | + , aeson >=1.4.1.0 && <3 |
| 120 | + , base-compat >=0.10.5 && <0.14 |
| 121 | + , base64-bytestring >=1.0.0.1 && <1.3 |
| 122 | + , exceptions >=0.10.0 && <0.11 |
| 123 | + , free >=5.1 && <5.3 |
| 124 | + , http-media >=0.7.1.3 && <0.9 |
| 125 | + , http-types >=0.12.2 && <0.13 |
| 126 | + , network-uri >=2.6.1.0 && <2.7 |
| 127 | + , safe >=0.3.17 && <0.4 |
| 128 | + , sop-core >=0.4.0.0 && <0.6 |
| 129 | + |
| 130 | + hs-source-dirs: src |
85 | 131 |
|
86 | 132 | test-suite spec
|
87 |
| - type: exitcode-stdio-1.0 |
88 |
| - ghc-options: -Wall |
89 |
| - default-language: Haskell2010 |
90 |
| - hs-source-dirs: test |
91 |
| - main-is: Spec.hs |
| 133 | + import: extensions |
| 134 | + import: ghc-options |
| 135 | + type: exitcode-stdio-1.0 |
| 136 | + hs-source-dirs: test |
| 137 | + main-is: Spec.hs |
92 | 138 | other-modules:
|
93 |
| - Servant.Client.Core.Internal.BaseUrlSpec |
94 |
| - Servant.Client.Core.RequestSpec |
| 139 | + Servant.Client.Core.Internal.BaseUrlSpec |
| 140 | + Servant.Client.Core.RequestSpec |
95 | 141 |
|
96 | 142 | -- Dependencies inherited from the library. No need to specify bounds.
|
97 | 143 | build-depends:
|
98 |
| - base |
| 144 | + , base |
99 | 145 | , base-compat
|
100 | 146 | , servant-client-core
|
101 | 147 |
|
102 | 148 | -- Additional dependencies
|
103 | 149 | build-depends:
|
104 |
| - deepseq >= 1.4.2.0 && < 1.6 |
105 |
| - , hspec >= 2.6.0 && < 2.12 |
106 |
| - , QuickCheck >= 2.12.6.1 && < 2.15 |
| 150 | + , deepseq >=1.4.2.0 && <1.6 |
| 151 | + , hspec >=2.6.0 && <2.12 |
| 152 | + , QuickCheck >=2.12.6.1 && <2.15 |
107 | 153 |
|
108 |
| - build-tool-depends: |
109 |
| - hspec-discover:hspec-discover >= 2.6.0 && <2.12 |
| 154 | + build-tool-depends: hspec-discover:hspec-discover >=2.6.0 && <2.12 |
0 commit comments