codeworld
codeworld copied to clipboard
User-reported unhelpful error message
trafficstars
Program: https://code.world/haskell#Py5mSiJdCag_UwCAt_o5pYg
Message:
program.hs:16:67-129: error:
• Couldn't match expected type ‘Picture’
with actual type ‘Picture -> Picture’
• Probable cause: ‘translated’ is applied to too few arguments
In the second argument of ‘rotated’, namely
‘(translated (innerRadius, 0) (drawSpike innerRadius outerRadius))’
In the expression:
rotated
(2 * pi * fromIntegral i / fromIntegral n)
(translated (innerRadius, 0) (drawSpike innerRadius outerRadius))
In the expression:
[rotated
(2 * pi * fromIntegral i / fromIntegral n)
(translated (innerRadius, 0) (drawSpike innerRadius outerRadius)) |
i <- [0 .. n - 1]]