Reputation: 11
I am trying to learn haskell using haskell koans https://github.com/HaskVan/HaskellKoans. The installation instructions found is not working and they look presumably for linux. I need help to get the koans working on windows.
Upvotes: 0
Views: 182
Reputation: 16635
If you look at the top of setup-koans
, you'll see:
#!/usr/bin/env runhaskell
import Control.Monad (unless)
...etc
That first line with the hashbang indicates that a unix shell running this file as a program should pass everything that follows (the haskell source file, in this case) to the command specified (/usr/bin/env runhaskell
in this case).
If you have a GHC installation, and runghc
in your path, you should be able to remove that line and do runghc setup-koans
.
You might also like to play with cygwin, or with a linux virtual machine (e.g. in docker) to familiarize yourself with this sort of thing.
Upvotes: 1