Denis Redozubov
f5fe9a060c
Merge pull request #351 from purcell/variable-foreign-types
...
servant-foreign: don't constrain ForeignType to Text
2016-03-15 09:40:53 +03:00
Steve Purcell
5188e842a9
[servant-foreign] Parameterise type classes with a foreign representation type
...
We allow a user-specified type to represent the foreign type of haskell
types encountered in the API. This lets users map Integer, Date etc. to
representations other than Text, and have those representations
available in the returned list of Req.
For example, we might want to map a type which has an instance of
Generic to both a foreign type name and a class declaration for that
foreign type such that it can encode/decode itself to JSON. The previous
limitation to a single Text output prevented this case.
2016-03-14 10:34:53 +13:00
Denis Redozubov
460a0c90b4
more purging
2016-03-13 12:44:38 +03:00
Denis Redozubov
54273878b9
little improvements
2016-03-13 12:44:38 +03:00
Denis Redozubov
7484780013
import only (<>) from Data.Monoid
2016-03-13 12:44:12 +03:00
Denis Redozubov
a22a981190
update base-compat imports
2016-03-13 12:44:12 +03:00
Denis Redozubov
c755f47806
use base-compat in servant-server
2016-03-13 12:42:41 +03:00
Denis Redozubov
c528eb24ca
use base-compat
2016-03-13 12:42:41 +03:00
Steve Purcell
207f05e759
[servant-foreign] Parameterise Req with a foreign type
2016-03-13 18:35:49 +13:00
Steve Purcell
bfe812f5d9
[servant-foreign] Normalise names of arg field accessors
2016-03-13 17:27:31 +13:00
Denis Redozubov
e34003e9af
Merge pull request #378 from haskell-servant/textly-typed
...
Utilize newtypes in servant-foreign
2016-03-12 16:16:28 +03:00
Denis Redozubov
d8e98a1f16
fix lens export mismatch
2016-03-12 13:59:40 +03:00
Denis Redozubov
36ddf7663a
fix 7.8.4 compilation
2016-03-12 12:51:22 +03:00
Denis Redozubov
e5635a044e
use newtypes in servant-foreign
2016-03-12 12:51:22 +03:00
Aaron Levin
16e7234ab1
Merge pull request #376 from haskell-servant/auth-gen
...
Generalized Auth Support
2016-03-09 23:27:13 +01:00
aaron levin
b3af5a8d95
Move general authentication to Experimental module
...
Removes the UndecidableInstances extension in the module containing the
HasServer instances.
2016-03-09 22:30:34 +01:00
aaron levin
29f8e64e1c
Add Experimental warnings on combinators
2016-03-09 22:30:34 +01:00
aaron levin
cd31b20cd8
Update CHANGELOG for generalized authentication support
2016-03-09 22:30:34 +01:00
aaron levin
a09733a560
modify auth-combinator example for gen auth
2016-03-09 22:30:34 +01:00
aaron levin
23da4879ef
Add general auth support to servant-client
2016-03-09 22:30:34 +01:00
aaron levin
0461c4642d
Add gen. authentication support to servant-server
2016-03-09 22:30:28 +01:00
aaron levin
038abb433d
Add general Authentication combinators
2016-03-09 00:15:14 +01:00
Aaron Levin
51dbd82c16
Merge pull request #375 from haskell-servant/auth-basic
...
Basic Authentication Support
2016-03-08 23:55:58 +01:00
aaron levin
546adc391a
basic-auth: config -> context
2016-03-08 23:28:27 +01:00
aaron levin
1e703be15f
replace serve with serveWithConfig
2016-03-08 23:13:05 +01:00
aaron levin
60a536382f
Update CHANGELOG for basic authentication support
2016-03-08 23:13:05 +01:00
aaron levin
e13965ae34
Add a basic authentication example
2016-03-08 23:13:05 +01:00
aaron levin
f13c61956c
Add authentication support to servant-docs
2016-03-08 23:13:05 +01:00
aaron levin
d989d15e4c
Add basic-auth support to servant-client
2016-03-08 23:13:05 +01:00
aaron levin
104ac29bf8
Add BasicAuth support to servant-server
2016-03-08 23:13:02 +01:00
aaron levin
9966e5b304
Add userdata to BasicAuth API type
2016-03-08 23:08:17 +01:00
aaron levin
84172c6135
Augment Delayed to handle authentication.
2016-03-08 23:08:17 +01:00
aaron levin
6dc577c821
Add basic-auth data types to servant core
2016-03-08 23:08:17 +01:00
Sönke Hahn
c6b6639453
reworded Context comment
2016-03-07 23:12:25 +08:00
Sönke Hahn
8ef4d4543b
renaming: Config -> Context
2016-03-07 23:12:24 +08:00
Alp Mestanogullari
65d0a51d60
Merge pull request #399 from eskimor/master
...
Make ServantErr throwable
2016-03-06 10:38:33 +01:00
Robert Klotzner
deb2ccaab0
Removed comment
...
as suggested by @soenkehahn
2016-03-04 12:11:44 +01:00
Robert Klotzner
c311f1a90b
Added DeriveDataTypeable ghc-7.8.4 needs that.
2016-02-26 13:01:54 +01:00
Robert Klotzner
b1ff2beb8a
Make ServantErr throwable
2016-02-26 12:27:19 +01:00
Ben Gamari
c6e51260f0
ContentTypes: Add constraints
...
GHC 8.0 seems to want these.
2016-02-20 13:37:02 +01:00
Ben Gamari
3467eba44f
servant-server: Bump transformers upper bound
2016-02-20 13:36:50 +01:00
Julian Arni
d46cde913c
Merge pull request #387 from ondrap/master
...
Bump aeson version.
2016-02-19 15:33:11 +01:00
Julian Arni
bfb64cda0b
Merge pull request #381 from haskell-servant/jkarni/default-config-for-serve
...
Add 'serveWithConfig'.
2016-02-19 15:29:54 +01:00
Ondrej Palkovsky
2cdd6a5fea
Bump aeson version.
2016-02-18 22:45:05 +01:00
Julian K. Arni
f137972e5d
Add 'serveWithConfig'.
...
And keep the old signature for 'serve'
2016-02-18 16:36:24 +01:00
Andres Loeh
1e5bdd6545
Delete .ghci file.
2016-02-18 15:49:26 +01:00
Sönke Hahn
0090cc7ff9
Merge pull request #380 from gasi/patch-1
...
Fix minor typo: succesful --> successful
2016-02-18 15:22:44 +01:00
Denis Redozubov
e35b4211c4
update servant-foreign changelog
2016-02-18 09:34:42 +03:00
Daniel Gasienica
e1947b9b40
Fix minor typo: succesful --> successful
2016-02-17 21:13:31 -08:00
Denis Redozubov
8dc73285ee
Merge pull request #372 from dredozubov/stylish-servant-foreign
...
Make servant-foreign code nicer
2016-02-17 11:46:26 +03:00