Installing, setting-up, configuring and playing with Haskell can initially be a pain. This template uses rules_haskell, and defines a Visual Studio development environment for Github Codespaces, so that you can start programming ASAP. This repository is targeted at teaching our community to learn functional programming during one of our regular events. Join us!
Click template
in the upper right of the page, and rename it to the project you want. Once you've created your project, click Code
, then Open with Codespaces
. Wait for the project to finish provisioning.
Awesome! Are you booted? Press ctrl
-alt
-space
to bring up Visual Studio Tasks. The currently configured tasks are as follows:
- all: This will run all your problems.
- edit: This will create a file in order for you to start solving a given problem.
- examine: This will print out the problem statement for a given problem.
- repl: This will start a Haskell repl for debugging a given problem.
- single: This will run a test for a single problem (whatever problem number is open).
Run all
to make sure everything is working.
This template is derived from Dylan's Project Euler. Pushes to this project automatically generates a tracking image, e.g. progress.svg. You'll also probably want to change this README to reflect your journey :)
This project uses rules_haskell and bazel. However typical usage of Haskell development either uses Cabal or Stack. rules_haskell
is well engineered and documented. As such, for a quick project, it's recommended to remove the project euler specific information, and modify this project to fit your needs. For more involved projects, it's suggested to do the research all the options