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 to do it...

  1. 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
  1. 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, as otherwise, stack will include all the subdirectories and cabal files in the stack project file.

  1. Build and install the project using the following commands:
      stack build       stack install
  1. The snap executable will be installed in the local bin folder. On Unix systems, this path will be $HOME/.local/bin ...

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