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 last recipe, we combined a database, auth framework, a session backend, and heist templating together. We created a web application that renders heist templates based on https://purecss.io/CSS. The application stores user data in the SQLite database, test.dblocated in the project directory.

When the application starts for the first time, the SQLite database snaplet and its auth backend create configuration files in the directories snaplets/sqlite-simple and snaplets/sqlite-authrespectively. These directories contain the default configuration files for initializing databases and authorization. One can modify these files or create new ones for differentiating between development and production databases.

During the ...

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