Allow react-flux stores to send requests to a servant server https://bitbucket.org/wuzzeb/react-flux-servant
|Latest on Hackage:||0.1.1|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
This project integrates react-flux with
servant. There is a small example in the
haddock documentation. To depend on this module, I add it to the
extra-deps in my
stack.yaml. See the react-flux
documentation for a full example
At the moment the code works well and is straightforward to integrate into a react-flux store; I am using it in production. Having said that, the current API requires you to create two store actions for each request and it is somewhat tedious to write all this boilerplate. At some point, I would like to build a better API, perhaps one that takes better advantage of the type-level Servant.API definitions to drastically reduce the boilerplate. Unfortunately, since it currently works (and even works well, the existing API is good), due to time constraints it might be awhile before I get around to thinking about better APIs. If you have any ideas for a better API, even if you don't have any code, please open an issue!
Add instance for QueryFlag.
- Initial release. See the haddock for documentation.