Snaplet for using Persistent in snap applications
Haskell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example Fix source repository link May 15, 2013
resources
src/Snap/Snaplet Fix MonadBaseControl and MonadLogger deps Jan 23, 2015
.ghci
.gitignore
CHANGELOG.md Update changelog Jan 30, 2015
LICENSE
README README now provides a short explanation Nov 2, 2013
Setup.hs Initial version Dec 27, 2012
schema.txt Shored up a few more problems...looks like it's mostly working now Jan 4, 2013
snaplet-persistent.cabal widen lens Aug 12, 2016

README

This package makes it easier to integrate your snap applications with databases
using persistent. It also includes a backend for the auth snaplet defining how
users should be stored in your database.

Adding the snaplet to your application is simply a matter of adding the snaplet
to your application’s state data type and initializing it appropriately in your
application initializer. After you do this, when you run your application for
the first time, the snaplet will automatically install a default configuration
file that looks like this.

postgre-con-str = "host='localhost' dbname='snap-test' user='guest' password='password1'"
postgre-pool-size = 3

Then you can edit this file as you see fit. The auth backend works similarly
with its own set of config options.