ISC licensed by Daniel Patterson
Maintained by [email protected]
This version can be pinned in stack with:fn-0.2.0.2@sha256:70b7b7edb67f055d708626b21abf026ff970031a470d22d4f8cbcc8d6af6e2cc,4274

Module documentation for 0.2.0.2

Fn (eff-enn) - a functional web framework.

Or, how to do away with the monad transformers, and just use plain functions.

Example

See the example application in the repository for a full usage including database access, heist templates, sessions, etc.

Changes

  • 0.2.0.2 Daniel Patterson [email protected] 2016-1-20

    • Fixe for GHC 7.8, which cabal file said would work, but didn’t.
  • 0.2.0.1 Daniel Patterson [email protected] 2015-12-4

    • Fix bug in url routing where “/foo/bar”, “/foo/bar/”, and “/foo//bar” were all treated differently.
  • 0.2.0.0 Daniel Pattersion [email protected] 2015-11-5

    • Changed to having our own FnRequest type, which is a WAI Request and the results of parsing the body for contents, since we need to be able to do that once and thread it through.
    • Add file and files matchers, which match against and pass file uploads to handlers.
    • Add staticServe to serve static files based on path.
  • 0.1.4.0 Daniel Pattersion [email protected] 2015-11-4

    • Move ctxt back to first parameter passed to handlers, via more continuations.
  • 0.1.3.1 Daniel Pattersion [email protected] 2015-10-31

    • Add method matcher to match against HTTP method.
  • 0.1.3.0 Daniel Patterson [email protected] 2015-10-30

    • Allow nested calls to route, by changing Request in ctxt. This necesitated changing it so that the ctxt is passed to handlers last, instead of first, because we need to have completed matching before we can change the request.
    • Add anything route matcher that matches anything.
    • Add paramMany matcher that returns a list of values for the given query param.
    • Change param to fail if more than one value is in query string.
  • 0.1.2.0 Daniel Pattersion [email protected] 2015-10-27

    • Rename paramOptional to paramOpt, to match fn-extra’s Heist naming of attr and attrOpt.
    • Remove paramPresent, because you can get that behavior by parsing to Text.
  • 0.1.1.0 Daniel Patterson [email protected] 2015-10-26

    • Rename Param class to FromParam.
  • 0.1.0.0 Daniel Patterson [email protected] 2015-10-25

    • Initial release.