Type-Level Routing for PureScript
Trout is a Servant-style routing type API. By using routing types you get static guarantees about having handled all cases. You also get a lot of stuff for free, such as type-safe parameters for handlers, and automatically generated type-safe URIs to endpoints.
The primary use of Trout right now is for Hyper and the purescript-hypertrout server package. There is, however, nothing Hyper-specific about this package.
bower install --save purescript-trout
This package should get its own proper documentation soon. In the meantime, see purescript-hypertrout.
This library's API documentation is published on Pursuit.
- 0.9.1
- Change
AltE
infix operator to right-associative
- Change
- 0.9.0
- Add support for query params
- Move content types to
Method
, instead of inResource
, e.g.Resource (Get MyThing) JSON
becomesResource (Get MyThing JSON)
.
- 0.8.1
- Better documentation on the Trout API
- 0.8.0
- Rename top-module to
Type.Trout
- Rename top-module to
- 0.7.0
- Rename to Trout
- Bump deps for 0.11.x compatibility
- 0.6.0
- Restructure API to include notion of a Resource
- 0.5.0
- Remove server part, keep only API
- 0.4.1
- Use Hyper 0.4.1
- 0.4.0
- Use upcoming Hyper 0.4.0
- Initial version, extracted from main Hyper repo
Mozilla Public License Version 2.0
Logo credit: https://commons.wikimedia.org/wiki/File:Lake_Trout_GLERL.jpg