Documentation
Official Documentation & Tutorials
- Happstack Lite Tutorial
- happstack-lite is a great starting point for new Happstack developers. Check out this short tutorial.
- Happstack Crash Course
- The Happstack Crash Course is the most complete resource for learning Happstack. New sections are added regularly, so check back often.
- Haddock API Reference
- The haddock API documentation for Happstack can be found here.
Examples
- Guestbook Demo
The guestbook demo, included with Happstack, is a complete, cabalized web application which demonstrates using MACID database, HSP templating, and HStringTemplate. There is currently no separate tutorial, but the code is heavily commented for instructive purposes.
You can browse the source code for the guestbook demo here.
To get a local copy you can play with do:
$ export PATH=~/.cabal/bin:$PATH
$ cabal update
$ cabal install happstack
$ happstack new project guestbook
$ cd guestbook- happstack-imageboard
happstack-imageboard implements a simple 4chan-like imageboard. It demonstrates acid-state, ixset, digestive-functors, HSX, jmacro, web-routes, cookies, AJAX, uploads, image resizing, and more. It is available via:
darcs get http://src.seereason.com/examples/happstack-imageboard/
3rd Party Tutorials & Examples
- Short tutorial on Happstack.State / MACID
- Happstack.State - the basics by Paul Kuliniewicz
- Tutorialpedia web-routes
- Happstack type-safe routing and URLs using web-routes and the Regular library
- Build a pasteboard with Happstack
- This tutorial demonstrates building a simple pasteboard application by using Happstack with sqlite and
Text.Html.