Skip to content

Instantly share code, notes, and snippets.

@vasanthaganeshk
Created August 30, 2019 05:24
Show Gist options
  • Save vasanthaganeshk/3e244bf1ff95102628f564f18ff24792 to your computer and use it in GitHub Desktop.
Save vasanthaganeshk/3e244bf1ff95102628f564f18ff24792 to your computer and use it in GitHub Desktop.
Type error mandlebrot
<interactive>:24:22: error:
• Couldn't match type ‘()’ with ‘Image’
Expected type: IO Image
Actual type: IO ()
• In the expression: setPixel y 1000 x
In the first argument of ‘foldM’, namely
‘(\ x y -> setPixel y 1000 x)’
In a stmt of a 'do' block:
c <- foldM (\ x y -> setPixel y 1000 x) b [(0, 0), (1, 1)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment