Utility monad stack to be used in servant
Switch branches/tags
Nothing to show
Clone or download
Latest commit 31f7de2 Mar 28, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example-mongodb renamed package Oct 1, 2016
example-persistent added mongo db example Oct 1, 2016
src export logEnv Mar 28, 2017
.gitignore added usage example Feb 9, 2016
LICENSE initial commit Feb 9, 2016
README.md added mongo db example Oct 1, 2016
Setup.hs initial commit Feb 9, 2016
diener.cabal github homepage in cabal file; imports Oct 7, 2016
stack.yaml added mongo db example Oct 1, 2016

README.md

diener

Utility monad stack to be used in servant

Instead of running in IO, you can use servant with the monad called "Diener". It has

  • logging functionality
  • a reader (among others: for database connections)
  • its own errors
  • convenience function for lifts

example-persistent

A full example web-server application, using Sqlite3 and logging

example-mongodb

A full example web-server application, using MongoDB. Check out the handler.hs to see how you can use type-classes to fine-tune effects.