Closed aleith closed 6 years ago
Heya, thanks for the issue. As per this link (https://github.com/haskell/haskell-platform/issues/304) , it's not a problem with the course itself. But you've read that already. :)
What version of GHC & Cabal are you using?
$ cabal --version
$ ghc --version
We have the course automatically building on a CI system to ensure we support multiple versions of GHC & Cabal to try to avoid these issues. So we should have you fixed up and ready to roll quickly.
Answers: cabal-install version 2.2.0.0 compiled using version 2.2.0.1 of the Cabal library The Glorious Glasgow Haskell Compilation System, version 8.4.3
Reminds me I need to get back into the course for next Perth FP meet up, we are working through it and week 2 is close!
I found an old imprint of Bird_Wadler. Introduction to Functional Programming online and finding it very helpful to get the basics into my thick head.
Awesome!! So your cabal version supports the new-*
commands for configuring, building, and testing Haskell Cabal projects. If you go back to the main README (https://github.com/qfpl/applied-fp-course#setup-build-tools) and after the instructions you refer to in your issue there are some more that are for Cabal versions >= 2.0.
$ cd path/to/applied-fp-course
$ cabal new-configure --enable-tests
$ cabal new-build <levelN>-exe
$ $EDITOR src/<LevelN>/README.md
I'll restructure that so it's a bit more obvious, but give that a try and let me know how it goes.
As a reminder, we have a few different channels available for asking questions @ https://qfpl.io/contact . Especially if there is a group working through the course, we might be able to arrange for something a bit more hands on, depending on numbers etc. :)
Good luck and come find us in IRC!
As logged here
When I followed the setup instructions in the ReadMe.md: $ cd path/to/applied-fp-course $ cabal sandbox init $ cabal install --only-dependencies --enable-tests. < 3rd instruction generated errors $ cabal build $ $EDITOR README.md
Terminal session:
No experience with (the) cabal so not sure if it's up or down and why I need it. Will try to get started on the course regardless, but this is confusing for a new user (near-novice coder) looking at Haskell only b/c it's supposed to be the future of code.