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!

4
  • 2
    Enter your code into a .hs file and load it into GHCi. Commented Oct 10, 2016 at 17:48
  • 1
    Possible duplicate of Haskell error parse error on input `=' Commented Oct 10, 2016 at 17:48
  • 3
    please don't include pictures of code but text instead which can be read better and copy&pasted... Commented Oct 10, 2016 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. Commented Oct 15, 2016 at 4:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.