on master help sign in
adapt to servant/servant-server split, prepare release
fbc012cAlp Mestanogullari
Setup.hsnew file+2
@@ -0,0 +1,2 @@
1+import Distribution.Simple
2+main = defaultMain
docs.shnew file+52
@@ -0,0 +1,52 @@
1+SERVANT_DIR=/tmp/servant-client-gh-pages
2+
3+# Make a temporary clone
4+
5+rm -rf $SERVANT_DIR
6+
7+git clone . $SERVANT_DIR
8+
9+cd $SERVANT_DIR
10+
11+# Make sure to pull the latest
12+
13+git remote add haskell-servant git@github.com:haskell-servant/servant-client.git
14+
15+git fetch haskell-servant
16+
17+git reset --hard haskell-servant/gh-pages
18+
19+# Clear everything away
20+
21+git rm -rf $SERVANT_DIR/*
22+
23+# Switch back and build the haddocks
24+
25+cd -
26+
27+cabal configure --builddir=$SERVANT_DIR
28+
29+cabal haddock --hoogle --hyperlink-source --html-location='https://hackage.haskell.org/package/$pkg-$version/docs' --builddir=$SERVANT_DIR
30+
31+commit_hash=$(git rev-parse HEAD)
32+
33+# Move the HTML docs to the root
34+
35+cd $SERVANT_DIR
36+
37+rm *
38+rm -rf build
39+mv doc/html/servant-client/* .
40+rm -r doc/
41+
42+# Add everything
43+
44+git add .
45+
46+git commit -m "Built from $commit_hash"
47+
48+# Push to update the pages
49+
50+git push haskell-servant HEAD:gh-pages
51+
52+rm -rf $SERVANT_DIR
servant-client.cabal+5−4
@@ -1,6 +1,6 @@
1name: servant-client
1name: servant-client
2−version: 0.2
2+version: 0.2.1
3−synopsis: automatical derivation of haskell functions that let you query servant webservices
3+synopsis: automatical derivation of querying functions for servant webservices
4description:
4description:
5 This library lets you derive automatically Haskell functions that
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.
6 let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
@@ -47,7 +47,7 @@ library
47 , http-types
47 , http-types
48 , network-uri >= 2.6
48 , network-uri >= 2.6
49 , safe
49 , safe
50− , servant >= 0.2
50+ , servant >= 0.2.1
51 , string-conversions
51 , string-conversions
52 , text
52 , text
53 , transformers
53 , transformers
@@ -72,7 +72,8 @@ test-suite spec
72 , http-types
72 , http-types
73 , network >= 2.6
73 , network >= 2.6
74 , QuickCheck
74 , QuickCheck
75− , servant >= 0.2
75+ , servant >= 0.2.1
76 , servant-client
76 , servant-client
77+ , servant-server >= 0.2.1
77 , wai
78 , wai
78 , warp
79 , warp