servant/servant-js/test/Servant
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
..
JSSpec [servant-foreign] Parameterise type classes with a foreign representation type 2016-03-14 10:34:53 +13:00
JSSpec.hs [servant-foreign] Parameterise type classes with a foreign representation type 2016-03-14 10:34:53 +13:00