Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.35 KB

README.md

File metadata and controls

57 lines (43 loc) · 1.35 KB

Simple Haskell Project Template

This is a simple Haskell project template for you to start a new project from scratch right away.

The project uses Haskell Stack as the build tool.

Dev environment

You can set up a local dev environment by using GHCup.

Or you can use a Docker dev container that I created to get into action right away.

Instructions

Please update the GHC Stack snapshot version in stack.yaml before building your project. Go to Stackage to find the version you need.

A cabal file will get auto-generated by the project. Please DO NOT edit the cable file manually. Project related configrations should be updated in stack.yaml and package.yaml.

Build commands

Build:

stack build

Test:

stack test

Run a single file

stack runghc <file-path>

Load a file into REPL

Start the REPL

stack ghci

Within the REPL prompt

:l <filepath>

Formatter

Stylish-haskell is recommended.

To install it:

stack install stylish-haskell