on master help sign in
adapt to servant/servant-server split, prepare release
commitfbc012c348dfb4708b27f28f7e8c4a667546e91d authorAlp Mestanogullari <alpmestan@gmail.com> dateWed 10 Dec 2014, 16:51 (12 years ago) parent2ecc612
3 files changed+59−4
Setup.hs+2 docs.sh+52 servant-client.cabal+5−4
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 @@
11name: servant-client
2−version: 0.2
3−synopsis: automatical derivation of haskell functions that let you query servant webservices
2+version: 0.2.1
3+synopsis: automatical derivation of querying functions for servant webservices
44description:
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.
@@ -47,7 +47,7 @@ library
4747 , http-types
4848 , network-uri >= 2.6
4949 , safe
50− , servant >= 0.2
50+ , servant >= 0.2.1
5151 , string-conversions
5252 , text
5353 , transformers
@@ -72,7 +72,8 @@ test-suite spec
7272 , http-types
7373 , network >= 2.6
7474 , QuickCheck
75− , servant >= 0.2
75+ , servant >= 0.2.1
7676 , servant-client
77+ , servant-server >= 0.2.1
7778 , wai
7879 , warp