1. new in this version
  2. build a web 2.0 app in happstack
  3. why happstack is cool
  4. getting started with happstack
  5. prerequisites
  6. cabal install me
  7. first shot at happstack
  8. url handling
  9. basic HTML inclusion
  10. templates
  11. stringtemplate basics
  12. debugging
  13. form data: get and post
  14. form data: file uploads
  15. cookies
  16. introduction to macid
  17. first steps with macid
  18. scaling with multimaster
  19. using macid safely
  20. macid dummy data
  21. changing the data model
  22. macid stress test
  23. limitations of macid
  24. foreign characters
  25. IxSets
  26. cron jobs
  27. thanks
  28. appendix (floundering in ghci)

Real World Happstack: building a Web 2.0 App with Haskell

Happstack is a great way to build web applications. Besides having a great feature set in its own right, it is probably the leading solution for implementing web apps in Haskell, my favorite language.

If you use Ruby on Rails, Django, Perl Catalyst, PHP, or some other popular web framework, but have programmed in Haskell and would like to use the world's greatest language for your next web project, just keep reading. I promise by the time you're done you will possess all the knowledge and sample code you need.

This tutorial is its own demo and it is open source. The tutorial is an introduction to using Happstack, providing a number of guided "try-at-home" examples and then explaining how to build a toy job board, which you can try out for yourself by creating a user on this demo site, and play with locally after you have installed the source code. The text you are reading this moment is bundled up too, hence "self-demoing tutorial." For best results, you should install and run it in a local environment where you have control. Then, when you are done learning, you can use the tutorial code as a starting point for your own Happstack applications.

Why Happstack?