Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-reported unhelpful error message #1653

Open
codeworld-feedback opened this issue Sep 3, 2024 · 0 comments
Open

User-reported unhelpful error message #1653

codeworld-feedback opened this issue Sep 3, 2024 · 0 comments
Labels
error-message Error message that could be better

Comments

@codeworld-feedback
Copy link
Collaborator

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 codeworld-feedback added the error-message Error message that could be better label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error-message Error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant