Created
August 30, 2019 05:24
-
-
Save vasanthaganeshk/3e244bf1ff95102628f564f18ff24792 to your computer and use it in GitHub Desktop.
Type error mandlebrot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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