Commit Graph

20 Commits

Author SHA1 Message Date
Oleg Grenrus 8058891299 Reformat servant 2018-03-11 17:58:31 +02:00
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 bc3f61d615 Add Servant.API.Modifiers to servant
Changes Header, ReqBody and QueryParam to take a modifier list.

Resolves https://github.com/haskell-servant/servant/issues/856

ResponseHeader story turns to be somewhat ugly, but it can be made
elegant when https://github.com/haskell-servant/servant/issues/841 is
implemnted, then we can omit HList aka Header Heterogenous List
implementation.

- servant-server changes:

  Writing server side intepretations is quite simple using
  `unfoldRequestArgument`, which makes Header and QueryParam look quite
  the same.

  `ReqBody` cannot be easily made optional with current design (what that
  would mean: No Content-Type Header?), so that dimensions isn't used
  there.

- Add HasLink for all the rest ComprehensiveAPI combinators
- Add 'tricky' Header', QueryParam' endpoints to ComprehensiveAPI
- servant-docs: Quick'n'dirty implementation. Don't use modifiers information (yet).
2018-01-25 09:10:11 +02:00
Al Zohali b806339200 fix minor typos 2017-03-19 23:49:52 +03:00
Julian K. Arni 9ad2efe862 Review fixes 2016-10-24 17:15:29 +02:00
Julian K. Arni ed82056052 Add noHeader function.
Which allows not adding a header where a signature declares one, making
    response headers optional.
2016-10-21 14:36:14 +02:00
Alex Mason dbab31508e Comma style is hard 2016-09-02 23:59:36 +10:00
Alex Mason a991cbe77c Revert version bump, update changelog 2016-09-02 23:53:18 +10:00
Alex Mason 9b5a564f3c Remove dependency on bytestring-conversion 2016-09-02 23:14:45 +10:00
Alex Mason a1b23018f9 Replace use of ToByteString with HttpApiData for GetHeaders, fixes servant/#581
* Version bump because this changes the API for GetHeaders
2016-09-02 19:47:32 +10:00
Justin Sermeno e1463cd02d remove response header contains check 2016-04-20 18:37:49 -05: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
Julian K. Arni 79d4f944a4 less OverlappingInstances noise 2016-01-04 13:09:11 -05:00
Julian K. Arni 978c890061 Pattern match fix 2015-05-02 12:39:02 +02:00
Julian K. Arni 12df2cdca5 Export fix 2015-05-02 12:16:32 +02:00
Julian K. Arni a2b8d6ae58 Better servant-server left 2015-05-02 03:38:53 +01: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