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.
To install Stack for WSL
wget -qO- https://get.haskellstack.org/ | sh
To install stack in windows use by default installer available here
To install Haskell follow these steps available for both WSL and windows using Stack
Installing Haskell through chocolatey for windows
Steps to install Chocolatey are here
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