~habibalamin/scotty-format

Fork of github.com/potomak/scotty-format
Increase max version bound of `base`
Only import `Data.Monoid` when using earlier `base` versions
Fix `<>` defined on Monoid, not Semigroup, of ResponseFormat

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~habibalamin/scotty-format
read/write
git@git.sr.ht:~habibalamin/scotty-format

You can also use your local clone with git send-email.

#scotty-format

scotty-format is a helper for the Scotty web framework that helps you defining different response formats based on the request's Accept header value.

The functional inspiration for this helper comes from how Rails handles different response formats. In Rails you can implement any action to respond with different formats based on a request Accept header value.

Inspiration for the implementation of this helper comes from scotty-resource, another helper for Scotty that lets you define REST resources easily by following HTTP strictly.

#Usage example

Checkout the examples directory.