Commit graph

669 commits

Author SHA1 Message Date
Alp Mestanogullari
eed8acd948 Merge pull request #162 from codedmart/socketIOExample
add a chat example based on chat example from engine-io, to demonstrate how to integrate engine-io/websockets in a servant app
2015-07-28 15:52:07 +02:00
Brandon Martin
dda0616989 quick chat example base on chat example from engine-io 2015-07-28 05:52:02 -06:00
Julian K. Arni
1c9d5baa99 Bump versions to 0.5 2015-07-27 22:26:49 +02:00
Sönke Hahn
e24cb9ddf6 add stack file 2015-07-26 17:25:07 +08:00
Alp Mestanogullari
2cf2d08cd3 Merge pull request #163 from haskell-servant/servant-mock
new package: servant-mock, to generate mock servers from API types
2015-07-24 15:45:08 +02:00
Alp Mestanogullari
b11fe341d4 Merge pull request #161 from haskell-servant/new-js-codegen
New Javascript code-generation
2015-07-23 22:37:25 +02:00
Alp Mestanogullari
710c560de8 Merge pull request #160 from haskell-servant/jkarni/fix-is-elem-header
Fix IsElem for Header.
2015-07-23 13:50:53 +02:00
Alp Mestanogullari
d3fa61c041 servant-js testsuite code cleanup 2015-07-23 13:47:44 +02:00
Julian K. Arni
29e3c1a45a Fix isElem for Header.
The intention was obviously to ignore them, but we weren't doing so
    correctly.
2015-07-23 13:24:26 +02:00
Alp Mestanogullari
fe0e526aa1 haddocks for Servant.Mock 2015-07-23 13:00:37 +02:00
Alp Mestanogullari
d6a7f5c856 actually fix the build on 7.8, hopefully 2015-07-22 22:08:56 +02:00
Alp Mestanogullari
248033ad81 fix build on 7.8 2015-07-22 22:06:46 +02:00
Alp Mestanogullari
349cc1089b transformers bound 2015-07-22 21:49:24 +02:00
Alp Mestanogullari
87c3bd590e first shot at Servant.Mock 2015-07-22 21:22:42 +02:00
Alp Mestanogullari
6257712687 add changelog entries for the work done on servant-js 2015-07-22 19:36:42 +02:00
Alp Mestanogullari
a2a4665951 clean up servant-js significantly, simplify the API of the library a lot and document @freezeboy's sweet generators from #159 a bit in the main module of the library, Servant.JS along with how people should use the library. 2015-07-22 19:25:02 +02:00
Alp Mestanogullari
0f15cb7328 fix servant-js import in examples/tutorial 2015-07-22 19:25:02 +02:00
Alp Mestanogullari
eabf13ebdb rename servant-jquery to servant-js, Servant.JQuery to Servant.JS 2015-07-22 19:25:02 +02:00
Freezeboy
688bc7520e Revert "Replace <> with interpolate QQ"
This reverts commit 7fb4471b00.
2015-07-22 19:25:01 +02:00
Freezeboy
a50d36c786 Replace <> with interpolate QQ 2015-07-22 19:25:01 +02:00
Freezeboy
ce43317eeb Add some haddock, rename 'functionName' 2015-07-22 19:25:01 +02:00
Freezeboy
294143af1d Modifying T9.hs accordingly with new js gen
Simply import JQuery generators
And change the jsForAPI call
2015-07-22 19:25:01 +02:00
Freezeboy
f9de958fda Adding a generic way to generate js variants
Support is added for Vanilla XMLHttpRequest, JQuery and Angular.
Angular generators contain Top Level Functions or with a simple Service.
2015-07-22 19:25:01 +02:00
Alp Mestanogullari
f7d25c5b35 Merge pull request #156 from haskell-servant/jkarni/overlappable-alt-doc
Make HasDocs instance for :<|> overlappable.
2015-07-21 16:17:03 +02:00
Julian K. Arni
e29acc0825 Make HasDocs instance for :<|> overlappable.
That way it's easier to document that the endpoints on the LHS "fall
        through" to the RHS.
2015-07-14 15:57:36 +02:00
Alp Mestanogullari
3209f98985 Merge pull request #141 from haskell-servant/new-combinators
Add HttpVersion, IsSecure, RemoteHost and Vault combinators with inst…
2015-07-10 15:00:19 +02:00
Alp Mestanogullari
f39d57c6b3 add HttpVersion, IsSecure, RemoteHost and Vault combinators with instances for all interpretations (all but the server ones being 'ignore that combinator')
tighter version bounds for network

cleanup

document the new combinators

servant-server: add some tests for HttpVersion, IsSecure, RemoteHost and Vault

update changelogs

address Julian's feedback

remove vault test in servant-server

servant-server tests: -Werror friendly
2015-07-10 14:00:01 +02:00
Alp Mestanogullari
e450e531c1 Merge pull request #152 from haskell-servant/jkarni/cabal0file-fixes
Cabal file fixes
2015-07-10 00:51:56 +02:00
Julian K. Arni
5db91c9ecb Cabal file fixes 2015-07-09 23:34:21 +02:00
Christian Marie
490a84cda1 Merge pull request #150 from haskell-servant/pingu/jquery-post-content-type-take2
servant-jquery: set content type to application/json on POST
2015-07-09 10:58:36 +10:00
bwo
f6196aea4d servant-jquery: set content type to application/json on POST
Also remove some redundant newlines in generated JS.
2015-07-09 09:42:44 +10:00
Alp Mestanogullari
9c50804c6f Merge pull request #147 from haskell-servant/pingu/fix-bump-versions-script
Make bump-versions.sh work
2015-07-07 08:29:23 +02:00
Christian Marie
627158845b Make bump-versions.sh work
This also makes it behave when called from from any directory.
2015-07-06 17:05:45 +10:00
Alp Mestanogullari
fa6cfbb539 Merge pull request #94 from haskell-servant/tvh/simpler-error
Don't export HttpException
2015-07-02 00:59:14 +02:00
Christian Marie
472249e92c Merge pull request #119 from haskell-servant/existential-error
servant-client: Hide HttpException by wrapping it in SomeException
2015-06-24 12:02:54 +10:00
Julian Arni
d27c7c0c6f Merge pull request #140 from oswynb/fix-aeson-test
Fix ordering of CPP directive for aeson test
2015-06-23 16:51:52 +02:00
Oswyn Brent
8eb592bc15 Fix ordering of CPP directive for aeson test
If the version of aeson used is below 0.9 the current ordering
results in an empty do block.
2015-06-23 14:55:13 +10:00
Alp Mestanogullari
7399f30cc4 Merge pull request #132 from haskell-servant/fix-129-queryparam-link
Tweak the HasLink instance for QueryParam, fixes #129
2015-06-19 22:16:34 +01:00
Alp Mestanogullari
0e22d19800 Make Link take a Maybe argument for MatrixParam, just like QueryParam 2015-06-19 11:30:44 +02:00
Alp Mestanogullari
82328247e6 Fix doctests for Link/QueryParam 2015-06-19 10:29:06 +02:00
Alp Mestanogullari
9fbd312b4c adapt tests to the modified HasLink instance for QueryParam 2015-06-19 10:03:24 +02:00
Alp Mestanogullari
e8bae7d035 Tweak the HasLink instance for QueryParam, fixes #129 2015-06-18 18:03:48 +02:00
Alp Mestanogullari
9b9ea1059c Merge pull request #130 from haskell-servant/fix-128
Add (missing) HasLink instance for Header. Fixes #128
2015-06-18 14:29:36 +01:00
Alp Mestanogullari
8b38344494 remove tabs 2015-06-18 13:09:18 +02:00
Alp Mestanogullari
ee0372e0bf Add HasLink instance for Header. Fixes #128 2015-06-18 12:40:00 +02:00
Alp Mestanogullari
13edc014b7 clarify some variable names in the examples + semantic html pedantry 2015-06-18 12:32:00 +02:00
Alp Mestanogullari
74423feed0 Merge pull request #124 from kantp/fix-docswith
servant-docs: Fix docsWith.
2015-06-17 10:22:28 +01:00
Philipp Kant
529139eb03 Added test for docsWith.
Make sure that no information is lost when providing additional
information via docsWith. With the current left-biased implementation of
combineAction, this can happen if the function arguments are in the
wrong order.
2015-06-16 22:38:14 +02:00
Philipp Kant
8dc6d9a7d4 servant-docs: Fix docsWith.
When adding extra info using using docsWith, the responses vanished from
the output. This was due to combineAction being left-biased, and
docsWith combining the extra info with the enpoint (in that
order). Flipping combineAction solves this.
2015-06-16 10:58:15 +02:00
Julian K. Arni
56b91b1d77 Remove verbose flag from cabal install for travis 2015-06-12 17:07:49 +02:00