name: fn
description: A Haskell web framework where you write plain old functions.

Provided you have stack installed, you can run this example like a shell script (it&#39;ll listen on port 3000):

Fn lets you write web code that just looks like normal Haskell code.

An application has some &quot;context&quot;, which must contain a Request,
but can contain other data as well, like database connection pools,
etc. This context will be passed to each of your handlers, updated
with the current HTTP Request.

Routes are declared to capture parameters and/or segments of the url,
and then routed to handler functions that have the appropriate number
and type of arguments. These functions return IO (Maybe Response),
where Nothing indicates to Fn that you want it to keep looking for
matching routes.

All handlers just use plain old IO, which means it is easy to call
them from GHCi, forkIO, etc.

All of this is a small wrapper around the WAI interface, so you have
the flexilibility to do anything you need to do with HTTP.

The name comes from the fact that Fn emphasizes functions (over monads),
where all necessary data is passed via function arguments, and control
flow is mediated by return values.
license_spdx: ISC
version: 0.0.0.0
spec_version: 1.0
download_url: http://hackage.haskell.org/package/fn-0.0.0.0/fn-0.0.0.0.tar.gz
home_url: 
            
              http://github.com/positiondev/fn#readme
            
          
news_url: https://libraries.io/hackage/fn/versions.atom
date: 2015-11-05
about_resource: NONE
libraries_io_url: https://libraries.io/hackage/fn?number=0.0.0.0
vcs_tool: git
vcs_repository: https://github.com/positiondev/fn
vcs_branch: master
