Skip to content

A template to start playing around with Haskell in Github codespaces

Notifications You must be signed in to change notification settings

baltimoreblacktechies/haskell-template

Repository files navigation

Haskell for Project Euler

Templated from Baltimore Black Techies

Join the slack channel Join the slack channel bazel-test

Haskell template banner
get your lambda calculus on

What is this?

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!

How to use

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.

How to customize

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 :)

How to go beyond Project Euler

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

About

A template to start playing around with Haskell in Github codespaces

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published