git.iko.soy/typeable/servant
on cdbe95b help sign in
typeable/servant/servant-client.cabal
80 lines 2.2 kB history raw
1name: servant-client
2version: 0.2.2
3synopsis: automatical derivation of querying functions for servant webservices
4description:
5 This library lets you derive automatically Haskell functions that
6 let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
7 .
8 Example below.
9 .
10 > type MyApi = "books" :> Get [Book] -- GET /books
11 > :<|> "books" :> ReqBody Book :> Post Book -- POST /books
12 >
13 > myApi :: Proxy MyApi
14 > myApi = Proxy
15 >
16 > getAllBooks :: BaseUrl -> EitherT String IO [Book]
17 > postNewBook :: Book -> BaseUrl -> EitherT String IO Book
18 > (getAllBooks :<|> postNewBook) = client myApi
19license: BSD3
20license-file: LICENSE
21author: Alp Mestanogullari, Sönke Hahn, Julian K. Arni
22maintainer: alpmestan@gmail.com
23copyright: 2014 Zalora South East Asia Pte Ltd
24category: Web
25build-type: Simple
26cabal-version: >=1.10
27tested-with: GHC >= 7.8
28homepage: http://haskell-servant.github.io/
29Bug-reports: http://github.com/haskell-servant/servant-client/issues
30source-repository head
31 type: git
32 location: http://github.com/haskell-servant/servant-client.git
34library
35 exposed-modules:
36 Servant.Client
37 Servant.Common.BaseUrl
38 Servant.Common.Req
39 build-depends:
40 base >=4.7 && <5
41 , aeson
42 , attoparsec
43 , bytestring
44 , either
45 , exceptions
46 , http-client
47 , http-client-tls
48 , http-types
49 , network-uri >= 2.6
50 , safe
51 , servant >= 0.2.2
52 , string-conversions
53 , text
54 , transformers
55 hs-source-dirs: src
56 default-language: Haskell2010
57 ghc-options: -Wall
59test-suite spec
60 type: exitcode-stdio-1.0
61 ghc-options:
62 -Wall -fno-warn-name-shadowing -fno-warn-missing-signatures
63 default-language: Haskell2010
64 hs-source-dirs: test
65 main-is: Spec.hs
66 build-depends:
67 base == 4.*
68 , aeson
69 , bytestring
70 , deepseq
71 , either
72 , hspec == 2.*
73 , http-types
74 , network >= 2.6
75 , QuickCheck >= 2.7
76 , servant >= 0.2.1
77 , servant-client
78 , servant-server >= 0.2.1
79 , wai
80 , warp