O'Reilly logo

Haskell Cookbook by Yogesh Sajanikar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

In this recipe, we generated a default Snap application using snap-templates. The default application integrates the snaplets login, the sessionand Snap's templating engine, Heist. A snaplet is a modular component of Snapwhich allows us to add our own functionality and integrate with existing snaplets.

With Snap there are the following important components: 

  • snap-core: This core defines the Snap monad and various web handlers
  • snap-server: This is an HTTP web server with various handlers for running snap handlers
  • snap: This is a utility package which allows you to work with the snap skeleton
  • heist: This is a templating library for HTML/XML, based on the xmlhtml library
A unit in Snap is called a snaplet. A snaplet provides ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required