git.iko.soy/typeable/http-api-data
on v0.3.9 help sign in
typeable/http-api-data/http-api-data.cabal
122 lines 3.7 kB history raw
1cabal-version: >= 1.10
2name: http-api-data
3version: 0.3.9
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
25tested-with:
26 GHC==7.8.4,
27 GHC==7.10.3,
28 GHC==8.0.2,
29 GHC==8.2.2,
30 GHC==8.4.3,
31 GHC==8.6.1
33custom-setup
34 setup-depends:
35 base,
36 Cabal,
37 cabal-doctest >=1.0.6 && <1.1
39flag use-text-show
40 description: Use text-show library for efficient ToHttpApiData implementations.
41 default: False
42 manual: True
44library
45 hs-source-dirs: src/
46 include-dirs: include/
48 -- GHC bundled
49 build-depends: base >= 4.7 && < 4.13
50 , bytestring >= 0.10.4.0 && < 0.11
51 , containers >= 0.5.5.1 && < 0.7
52 , text >= 1.2.3.0 && < 1.3
53 , time >= 1.4.2 && < 1.9
55 -- other-dependencies
56 build-depends:
57 attoparsec >= 0.13.2.2 && < 0.14
58 , attoparsec-iso8601 >= 1.0.0.0 && < 1.1
59 , cookie >= 0.4.3 && < 0.4.5
60 , hashable >= 1.2.7.0 && < 1.3
61 , http-types >= 0.12.1 && < 0.13
62 , time-locale-compat >= 0.1.1.5 && < 0.2
63 , unordered-containers >= 0.2.9.0 && < 0.3
64 , uuid-types >= 1.0.3 && <1.1
66 if !impl(ghc >= 8.0)
67 build-depends: semigroups >= 0.18.5 && < 0.19
69 if flag(use-text-show)
70 cpp-options: -DUSE_TEXT_SHOW
71 build-depends: text-show >= 3.7.4 && <3.8
73 exposed-modules:
74 Web.HttpApiData
75 Web.FormUrlEncoded
76 Web.Internal.FormUrlEncoded
77 Web.Internal.HttpApiData
78 ghc-options: -Wall
79 default-language: Haskell2010
81test-suite spec
82 type: exitcode-stdio-1.0
83 main-is: Spec.hs
84 other-modules:
85 Web.Internal.FormUrlEncodedSpec
86 Web.Internal.HttpApiDataSpec
87 Web.Internal.TestInstances
88 hs-source-dirs: test
89 ghc-options: -Wall
90 default-language: Haskell2010
91 build-tool-depends: hspec-discover:hspec-discover >= 2.5.5 && <2.6
92 -- inherited depndencies
93 build-depends:
94 base
95 , bytestring
96 , unordered-containers
97 , http-api-data
98 , text
99 , time
100 , bytestring
101 , uuid-types
103 build-depends: HUnit >= 1.6.0.0 && <1.7
104 , hspec >= 2.5.5 && <2.6
105 , QuickCheck >= 2.11.3 && <2.13
106 , quickcheck-instances >= 0.3.19 && <0.4
108test-suite doctests
109 ghc-options: -Wall
110 build-depends:
111 base,
112 directory >= 1.0,
113 doctest >= 0.16.0 && <0.17,
114 filepath
115 default-language: Haskell2010
116 hs-source-dirs: test
117 main-is: doctests.hs
118 type: exitcode-stdio-1.0
120source-repository head
121 type: git
122 location: https://github.com/fizruk/http-api-data