codeworld icon indicating copy to clipboard operation
codeworld copied to clipboard

User-reported unhelpful error message

Open codeworld-feedback opened this issue 1 year ago • 0 comments
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]]

codeworld-feedback avatar Sep 03 '24 02:09 codeworld-feedback