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#PW2x9Gd1qubzmUkfNVnILiQ

Comment:

I did not understand

Message:

program.hs:40:12-21: error:
    • No instance for (Integral Double) arising from a use of ‘mod’
    • In the first argument of ‘(*)’, namely ‘(t `mod` 24)’
      In the expression: (t `mod` 24) * (pi / 12)
      In an equation for ‘angle’: angle t = (t `mod` 24) * (pi / 12)

codeworld-feedback avatar Jun 11 '24 17:06 codeworld-feedback