Skip to content

A simple Haskell project template for you to start a new project from scratch

License

Notifications You must be signed in to change notification settings

bjing/simple-haskell-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple Haskell project template for you to start a new project from scratch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published