In this recipe, we will install Snap and create our first Snap application. The Snap Framework is not (yet) part of the official list of packages on Stackage. Hence, to get started with Snap, we will have to build the Snap Framework ourselves.
Getting started with Snap
How to do it...
- Open a console, change the directory to the desired location, and clone the snap-templates framework, as follows:
git clone https://github.com/snapframework/snap-templates.git
- The snap-templates package does not have a stack.yaml file generated. Generate a new one.
stack --resolver lts-9.1 init --solver --ignore-subdirs
At the moment, lts-9.1 is the latest LTS available with stack. We also need to ignore the subdirectories...