git.iko.soy/typeable/http-api-data
on v0.4 help sign in
typeable/http-api-data/http-api-data.cabal
132 lines 4.0 kB history raw
1cabal-version: >= 1.10
2name: http-api-data
3version: 0.4
5synopsis: Converting to/from HTTP API data like URL pieces, headers and query parameters.
6category: Web
7description:
8 This package defines typeclasses used for converting Haskell data types to and from HTTP API data.
9 .
10 Please see README.md
12license: BSD3
13license-file: LICENSE
14author: Nickolay Kudasov <nickolay.kudasov@gmail.com>
15maintainer: Nickolay Kudasov <nickolay.kudasov@gmail.com>
16homepage: http://github.com/fizruk/http-api-data
17stability: unstable
18build-type: Custom
20extra-source-files:
21 include/overlapping-compat.h
22 test/*.hs
23 CHANGELOG.md
24 README.md
26tested-with:
27 GHC==7.8.4,
28 GHC==7.10.3,
29 GHC==8.0.2,
30 GHC==8.2.2,
31 GHC==8.4.4,
32 GHC==8.6.2
34custom-setup
35 setup-depends:
36 base,
37 Cabal,
38 cabal-doctest >=1.0.6 && <1.1
40flag use-text-show
41 description: Use text-show library for efficient ToHttpApiData implementations.
42 default: False
43 manual: True
45library
46 hs-source-dirs: src/
47 include-dirs: include/
49 -- GHC bundled
50 build-depends: base >= 4.7 && < 4.13
51 , bytestring >= 0.10.4.0 && < 0.11
52 , containers >= 0.5.5.1 && < 0.7
53 , text >= 1.2.3.0 && < 1.3
54 , time >= 1.4.2 && < 1.9
56 -- other-dependencies
57 build-depends:
58 attoparsec >= 0.13.2.2 && < 0.14
59 , attoparsec-iso8601 >= 1.0.1.0 && < 1.1
60 , base-compat >= 0.10.5 && < 0.11
61 , cookie >= 0.4.3 && < 0.4.5
62 , hashable >= 1.2.7.0 && < 1.3
63 , http-types >= 0.12.2 && < 0.13
64 , tagged >= 0.8.5 && < 0.9
65 , time-locale-compat >= 0.1.1.5 && < 0.2
66 , unordered-containers >= 0.2.9.0 && < 0.3
67 , uuid-types >= 1.0.3 && <1.1
69 if !impl(ghc >= 7.10)
70 build-depends:
71 nats >= 1.1.2 && < 1.2,
72 void >= 0.7.2 && < 0.8
74 if !impl(ghc >= 8.0)
75 build-depends: semigroups >= 0.18.5 && < 0.19
77 if flag(use-text-show)
78 cpp-options: -DUSE_TEXT_SHOW
79 build-depends: text-show >= 3.7.4 && <3.8
81 exposed-modules:
82 Web.HttpApiData
83 Web.FormUrlEncoded
84 Web.Internal.FormUrlEncoded
85 Web.Internal.HttpApiData
86 ghc-options: -Wall
87 default-language: Haskell2010
89test-suite spec
90 type: exitcode-stdio-1.0
91 main-is: Spec.hs
92 other-modules:
93 Web.Internal.FormUrlEncodedSpec
94 Web.Internal.HttpApiDataSpec
95 Web.Internal.TestInstances
96 hs-source-dirs: test
97 ghc-options: -Wall
98 default-language: Haskell2010
99 build-tool-depends: hspec-discover:hspec-discover >= 2.6.0 && <2.7
100 -- inherited depndencies
101 build-depends:
102 base
103 , base-compat
104 , bytestring
105 , cookie
106 , http-api-data
107 , nats
108 , text
109 , time
110 , unordered-containers
111 , uuid-types
113 build-depends: HUnit >= 1.6.0.0 && <1.7
114 , hspec >= 2.6.0 && <2.7
115 , QuickCheck >= 2.11.3 && <2.13
116 , quickcheck-instances >= 0.3.19 && <0.4
118test-suite doctests
119 ghc-options: -Wall
120 build-depends:
121 base,
122 directory >= 1.0,
123 doctest >= 0.16.0 && <0.17,
124 filepath
125 default-language: Haskell2010
126 hs-source-dirs: test
127 main-is: doctests.hs
128 type: exitcode-stdio-1.0
130source-repository head
131 type: git
132 location: https://github.com/fizruk/http-api-data