Oleg Grenrus
705285209a
Remove parentheses in ContextSpec
2017-06-03 21:44:40 +03:00
Oleg Grenrus
b8510edb7d
Merge pull request #762 from fierce-katie/sub-precedence-#761
...
Lower infix precedence for (:>) and (:<|>)
2017-06-03 21:36:31 +03:00
Catherine Galkina
1c6927d3f5
Fix tests for servant-server
2017-06-02 18:47:28 +03:00
Catherine Galkina
e413310d0a
Update changelog
2017-06-02 18:18:42 +03:00
Catherine Galkina
505ca457cc
Lower Sub and Alternative infix precedence to 4 and 3 respectively
2017-06-02 18:11:05 +03:00
Oleg Grenrus
cc13d62c8c
Use #warning in Setup.lhs
2017-05-24 10:22:01 +03:00
Oleg Grenrus
71ed8b3736
Merge pull request #747 from phadej/release-0.11
...
Release 0.11
2017-05-24 10:18:14 +03:00
Oleg Grenrus
22d0f6ccb9
Make GHC-8.0.2 stack.yaml the default
2017-05-24 08:02:57 +03:00
Oleg Grenrus
b6cfd64b5a
GHC-8.2 readyness
2017-05-24 08:02:57 +03:00
Oleg Grenrus
ec930ac9a8
Release 0.11
2017-05-24 08:02:56 +03:00
Oleg Grenrus
f6c30b2892
Allow mmorph-1.2
2017-05-24 07:51:07 +03:00
Oleg Grenrus
3017bce18a
Merge pull request #756 from shak-mar/patch-1
...
Fix typo in ApiType.lhs
2017-05-19 16:06:55 +03:00
shak-mar
76703e5b80
Fix typo in ApiType.lhs
2017-05-19 15:02:10 +02:00
Oleg Grenrus
f0eec498a1
Merge pull request #755 from osa1/fix_reqbody_samples
...
Don't drop samples in `HasDocs ReqBody` instance
2017-05-19 14:58:06 +03:00
Oleg Grenrus
1ccb0ef812
Merge pull request #753 from DaveCTurner/issue-753
...
Add a type representing an empty API
2017-05-17 11:54:10 +03:00
David Turner
8b993b9d11
Changes to docs as suggested
2017-05-17 08:24:04 +00:00
David Turner
aa3716b6aa
Tidy up tutorial
2017-05-17 05:50:38 +00:00
David Turner
a3c5f17749
Generalise type of emptyServer
so it can be Enter
ed
2017-05-17 05:17:08 +00:00
David Turner
f3ac10a1c4
Add missing DeriveDataTypeable
2017-05-16 16:26:47 +00:00
David Turner
7d07db7ed3
Add test for safeLink applied to an EmptyAPI type
2017-05-16 16:25:01 +00:00
David Turner
249a8386a5
Derive Enum on EmptyAPI
2017-05-16 16:04:25 +00:00
David Turner
021bcd9e23
Document that EmptyAPI is, morally speaking, the unit of :<|>
2017-05-16 16:03:25 +00:00
David Turner
0bbc4f98a4
Rename EmptyAPIClient to EmptyClient
2017-05-16 16:00:15 +00:00
David Turner
f5d9983381
Rename emptyAPIServer to emptyServer
2017-05-16 15:59:41 +00:00
David Turner
6feb27e7b2
Rename EmptyAPIServer to EmptyServer and add deriving clause
2017-05-16 15:53:19 +00:00
Ömer Sinan Ağacan
d8dd1cb90a
Don't drop samples in HasDocs ReqBody
instance
...
As reported in #754 , `HasDocs` instance of `ReqBody` was dropping samples other
than the first one. With this patch we show at most `_maxSamples` samples for
`ReqBody`, and also include the sample title in the docs.
2017-05-16 14:19:52 +03:00
David Turner
62560079b1
Add docs for serving an EmptyAPI
2017-05-16 11:09:54 +00:00
David Turner
178f05595a
Better docs for EmptyAPIClient
2017-05-16 11:06:37 +00:00
David Turner
e73f00b333
Test that no foreign functions are generated for an EmptyAPI
2017-05-16 10:31:33 +00:00
David Turner
113561639a
Fix name of test
2017-05-16 10:31:02 +00:00
David Turner
4b7ffc9461
Add test that EmptyAPI does not generate any docs
2017-05-16 10:29:27 +00:00
David Turner
2c6aca0fc6
Add to ComprehensiveAPI
2017-05-16 10:26:06 +00:00
David Turner
e60bdadead
Demonstrate that a client for EmptyAPI pattern-matches EmptyAPIClient
2017-05-16 10:21:37 +00:00
David Turner
937a5c98fd
Add test for emptyAPIServer
2017-05-16 10:18:57 +00:00
David Turner
fa3f1869f2
Add EmptyForeignAPI and instance HasForeign ... EmptyAPI
2017-05-16 10:07:30 +00:00
David Turner
2cfa71891b
Add instance HasDocs EmptyAPI
2017-05-16 10:07:15 +00:00
David Turner
a87067a6c1
Actually, serve this one so it's useful in the Docs tutorial
2017-05-16 10:07:12 +00:00
David Turner
4c64c13af0
Add EmptyAPIClient and instance HasClient EmptyAPI
2017-05-16 10:06:48 +00:00
David Turner
94483d586c
Add instance HasServer EmptyAPI
2017-05-16 10:06:25 +00:00
David Turner
8a16f47fba
Add EmptyAPI example (no prose yet)
2017-05-16 10:06:23 +00:00
David Turner
b81fbe445d
Renumber again to make room for the EmptyAPI example
2017-05-16 10:06:16 +00:00
David Turner
e8c7158600
Renumber APIs in the tutorial to be in order
2017-05-16 10:06:00 +00:00
David Turner
5a65563d9a
Re-export EmptyAPI(..) from Servant.API
2017-05-16 10:05:58 +00:00
David Turner
d02c7668ee
Add EmptyAPI type
2017-05-16 10:05:24 +00:00
Oleg Grenrus
02fad699aa
Merge pull request #748 from phadej/raw-server
...
ServerT Raw m = Tagged m Application
2017-05-16 10:23:43 +03:00
Alexander Vieth
6389134423
Change to ServerT Raw m = Tagged m Application
...
For uniformity of Enter.
Previously, `ServerT Raw m ~ Application`. Seems reasonable, but has the
unfortunate consequence of making `Enter` useless for `Raw` routes.
With this change `Tagged m Application` is retagged by `Enter`.
2017-05-15 19:54:43 +03:00
Oleg Grenrus
301515210b
Merge pull request #751 from phadej/regression-734
...
Add regression test for #734
2017-05-15 19:52:49 +03:00
Oleg Grenrus
af8b14f248
Merge pull request #750 from haskell-servant/enter-tweak
...
Add functional dependency back to Enter
2017-05-15 19:49:12 +03:00
Oleg Grenrus
6fff76e304
Add regression test for #734
2017-05-15 19:45:14 +03:00
Oleg Grenrus
d4cffe6591
Add functional dependency back to Enter
2017-05-15 19:26:03 +03:00