Skip to content

User-reported unhelpful error message #1795

Description

@codeworld-feedback

Program: https://code.world/haskell#PeAVAOONmDECh9wYiaNCqTA

Message:

program.hs:21:18-82: error:
    • Couldn't match expected type ‘Picture -> t’
                  with actual type ‘Picture’
    • The function ‘rotated’ is applied to three arguments,
      but its type ‘Double -> Picture -> Picture’ has only two
      In the expression:
        rotated 2 0 (translated 4 4 (colored brown (solidRectangle 1 4)))
      In an equation for ‘rightBranch’:
          rightBranch
            = rotated 2 0 (translated 4 4 (colored brown (solidRectangle 1 4)))
    • Relevant bindings include
        rightBranch :: t (bound at program.hs:21:4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions