0

error image

The code I am using keeps popping up with this error of not being able to find "change", how can I fix this problem? Is there something I need to download for it to work? Also, if needed, do I need to fix any other component of this for it to run smoothly? I'm new to Haskell!

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
emily y
  • 1
  • 1
  • 2
    Enter your code into a .hs file and load it into GHCi. – user2407038 Oct 10 '16 at 17:48
  • 1
    Possible duplicate of [Haskell error parse error on input \`='](http://stackoverflow.com/questions/6184940/haskell-error-parse-error-on-input) – user2407038 Oct 10 '16 at 17:48
  • 3
    please don't include pictures of code but text instead which can be read better and copy&pasted... – mb21 Oct 10 '16 at 18:15
  • You can't just paste the contents of a Haskell source file into WinGHCI and hope it will work. You'll need to put that code into a file and then load the file with GHCi using commands like :load and :reload . It's possible to define multi-line things in GHCi but the syntax is not the same as a file. – glguy Oct 15 '16 at 04:30

0 Answers0