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...

This recipe looks at heist as a template framework where we loaded a template HelloWorld from a template directory. The template requires the arguments name and familyname. The values of these arguments or tags are inserted in the HeistState. Then we run the HeistT monad with the evalHeistT function by supplying the state.

The heist framework inserts the splices (named HeistT), and runs the evaluation for the template by using values supplied in the state.

In this recipe, we used the Heist.Interpreted module. The heist library also provides the Heist.Compiled library. The major difference is that the interpreted module evaluates the DOM at runtime, whereas the compiled module does DOM evaluation at the load time, reducing ...

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