Setting Up exercism and Haskell on WSL or Windows

Syeda Reeha Quasar
2 min readFeb 24, 2021

Why This Blog?

It has been a long week for me and I had been trying to setup exercism for a while. I discovered this site while preparing for my WTEF test as it was one of the recommended sites and failed at that time and ignored but for starting exercising Hakell as recommended by my mentor I again tried. I faced a lot of difficulties but with the help of my friends and guides, I am able to finally installing and writing this blog to help others like me.

Installation of Exercism

Begin Walk-through on the exercise you want to practice.

Select the OS you have.

Use the CLI installer and install Exercism. Then Configure and get your credentials. This was easy and direct.

Now you will be able to download and submit your exercises.

Remember to run Powershell as admin and able to bypass for smooth transitions.

I installed Exercism on my windows for submission of assignments and test and installed Haskell and stack on my WSL.

Important Commands

To install Stack for WSL

wget -qO- https://get.haskellstack.org/ | sh

To install stack in windows use by default installer available here

https://docs.haskellstack.org/en/stable/install_and_upgrade/

To install Haskell follow these steps available for both WSL and windows using Stack

https://exercism.io/tracks/haskell/installation

Installing Haskell through chocolatey for windows

https://www.haskell.org/platform/index.html#windows

Steps to install Chocolatey are here

https://chocolatey.org/install

Use ghci command to access Prelude and try hands-on Haskell

In Exercism you have to edit the file inside src for a successful run of test and then used stack test for test cases checking and then final submission use the command

exercism submit file name of the program when in src directory of the current exercise

At last, reach out to people when stuck and never give up!! Be consistent

Happy Learning!

--

--

Syeda Reeha Quasar

Enthusiast, Environmentalist, Learner, Optimist and Egalitarian. Loves to explore different fields and experiment.