Oleg Grenrus
22ec980f6e
Update hlint.yaml and fix some hints in servant and servant-server
2018-01-26 17:38:57 +02:00
Oleg Grenrus
b6cfd64b5a
GHC-8.2 readyness
2017-05-24 08:02:57 +03:00
Oleg Grenrus
57696dcd6f
Merge pull request #671 from reactormonk/typeerror
...
TypeError annotations for AllCTRender
2017-05-14 19:38:46 +03:00
Simon Hafner
bbc872e154
Fixed unticked-promoted-constructors
2017-05-14 16:26:25 +02:00
Oleg Grenrus
58e931f48a
Resolve todos
2017-01-19 11:26:50 +02:00
Oleg Grenrus
7793b52d23
Change JSON content type to add the charset
2017-01-18 13:40:18 +02:00
Simon Hafner
b3be590dad
TypeError annotations for AllCTRender
2017-01-16 23:16:27 +01:00
Oleg Grenrus
4d4bc8e9f4
Pass contentType to the mimeUnrender variant
2017-01-01 20:05:12 +02:00
Oleg Grenrus
3fec1a086a
Use TupleSections, not list comprehensions
2016-11-10 21:22:01 +02:00
Oleg Grenrus
148bb15635
Make MINIMAL contentType | contentTypes
2016-11-10 21:21:15 +02:00
Oleg Grenrus
bf66b2b1ff
Allow multiple content-types for single Accept
2016-11-10 21:21:15 +02:00
Julian K. Arni
501212e6b9
Review fixes
2016-09-12 20:40:03 -03:00
Julian K. Arni
0870b3b2f5
Remove FromFormUrlEncoded and ToFormUrlEncoded.
...
In favor of FromForm and ToForm from the new version of http-api-data.
2016-09-12 18:34:18 -03:00
Arian van Putten
05379ed7e3
Replace all occurances of () with NoContent
...
We use NoContent to signify an empty response nowadays. This commit
replaces all occurences of () with NoContent so that all packages use
the new semantics.
2016-07-10 16:58:59 +02:00
Erlend Hamberg
d81e15b5e5
Fix example `MimeRender` instance
...
The `MimeRender` instance in the documentation was incomplete and expected one more argument.
2016-06-14 14:20:35 +02:00
Andres Löh
1807c72c8a
Merge pull request #388 from bgamari/master
...
Compatibility with GHC 8.0
2016-04-13 15:09:16 +02:00
Denis Redozubov
a22a981190
update base-compat imports
2016-03-13 12:44:12 +03:00
Denis Redozubov
c528eb24ca
use base-compat
2016-03-13 12:42:41 +03:00
Ben Gamari
c6e51260f0
ContentTypes: Add constraints
...
GHC 8.0 seems to want these.
2016-02-20 13:37:02 +01:00
Julian K. Arni
f9c61379c0
Refactor NoContent logic.
...
Now MimeRender and MimeUnrender instances are not needed.
2016-01-08 19:33:36 +01:00
Julian K. Arni
f1b6603c52
Review fixes
2016-01-08 18:03:28 +01:00
Julian K. Arni
783a849c67
Make NoContent still take an arg.
...
For consistency with other combinators, and to make using headers
easier.
2016-01-07 14:30:08 +01:00
Julian K. Arni
9b2d7a7b38
Remove unnecesary () AllMimeRender instance.
2016-01-07 13:47:08 +01:00
Julian K. Arni
cda8bcf17c
Simplify verb combinators.
...
Create a single 'Verb' combinator with parameters for status code and
method. Make existing combinators type synonyms of 'Verb'.
2016-01-07 13:47:07 +01:00
Andres Loeh
1398d1f5e1
More systematic approach to delayed checks.
...
This introduces a `Delayed` type in `RoutingApplication.hs` that
contains a handler together with delayed checks. There are several
blocks of delayed checks, so that we can ultimately execute them in the
order we desire.
The process is documented in more detail in `RoutingApplication.hs`.
2015-10-26 16:56:25 +01:00
Julian K. Arni
153de01a62
Error retry tests
...
Mime[Un]Render instances for PlainText String
pragmas and formatting
2015-10-26 16:54:28 +01:00
Julian K. Arni
fb26e134d5
Don't render header via String
2015-06-04 14:28:28 +02:00
Christian Marie
54131821a5
servant: allow whitespace before JSON
2015-05-16 12:58:53 +10:00
Christian Marie
43d0620403
servant: allow whitespace after parsing JSON
...
This includes some de-duplication in the test suite.
2015-05-16 11:13:41 +10:00
Julian K. Arni
5531ada22b
Headers for all
2015-05-02 02:21:03 +01:00
Julian K. Arni
f82ca76f7d
7.10 changes
2015-04-22 12:27:18 +02:00
Julian K. Arni
90ad8248d7
prepare merge
2015-04-20 11:21:21 +02:00