git.iko.soy/typeable/servant
on master help sign in
fix some links in the cabal descriptions
commit405d69d954ffa44ad41c0585db510b89487c4f23 authorAlp Mestanogullari <alpmestan@gmail.com> dateMon 11 May 2015, 10:43 (11 years ago) parent3745446
3 files changed+3−14
servant-client/servant-client.cabal+1−11 servant-server/servant-server.cabal+1−2 servant/servant.cabal+1−1
servant-client/servant-client.cabal+1−11
@@ -5,17 +5,7 @@ description:
55 This library lets you derive automatically Haskell functions that
66 let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
77 .
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
8+ See <http://haskell-servant.github.io/tutorial/client.html the client section of the tutorial>.
199 .
2010 <https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md CHANGELOG>
2111license: BSD3
servant-server/servant-server.cabal+1−2
@@ -4,8 +4,7 @@ synopsis: A family of combinators for defining webservices APIs and s
44description:
55 A family of combinators for defining webservices APIs and serving them
66 .
7− You can learn about the basics in <http://haskell-servant.github.io/getting-started/ the getting started>
8− guide.
7+ You can learn about the basics in the <http://haskell-servant.github.io/tutorial tutorial>.
98 .
109 <https://github.com/haskell-servant/servant/blob/master/servant-server/example/greet.hs Here>
1110 is a runnable example, with comments, that defines a dummy API and implements
servant/servant.cabal+1−1
@@ -4,7 +4,7 @@ synopsis: A family of combinators for defining webservices APIs
44description:
55 A family of combinators for defining webservices APIs and serving them
66 .
7− You can learn about the basics in <http://haskell-servant.github.io/getting-started/ the getting started> guide.
7+ You can learn about the basics in the <http://haskell-servant.github.io/tutorial tutorial>.
88 .
99 <https://github.com/haskell-servant/servant-server/blob/master/example/greet.hs Here>'s a runnable example, with comments, that defines a dummy API and
1010 implements a webserver that serves this API, using the <http://hackage.haskell.org/package/servant-server servant-server> package.