The code itself is nothing more than what you get when doing cabal init
. The purpose of this template is to provide the development environment on top. This consists of:
ghcup
(the main installer for Haskell).ghc
(the Haskell compiler) version 9.2.5.cabal-install
and Cabal library (a build tool for Haskell) version 3.6.2.0.haskell-language-server
version 1.9.1.0stylish-haskell
formatter.
You have two ways of using this development environment (If you already have the previous tools installed in your system, you can ignore this):
- To have a remote development environment: Use the template to create your own repo. Then, install the GitPod extension, and click the new "Gitpod" button at the top of the repo.
- To have a local development environment inside Docker: Use the template to create your own repo. Make sure you have the latest version of Docker Desktop and VSCode. Open the repo in VSCode. You'll get a notification about a Dev Container config file. Click on "Reopen in Container."
Alternatively, if you prefer to install directly on your hardware:
- To get your local development environment directly on your computer using GHCup, follow these instructions (all platforms).