summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T8450.stderr
blob: 9ac0d63643a2f387f1ab87248ffc4e2ec4b8b976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

T8450.hs:8:19: error:
    • Couldn't match type ‘a’ with ‘Bool’
      Expected: Either Bool ()
        Actual: Either a ()
      ‘a’ is a rigid type variable bound by
        the type signature for:
          run :: forall a. a
        at T8450.hs:7:1-18
    • In the second argument of ‘($)’, namely
        ‘(undefined :: Either a ())’
      In the expression: runEffect $ (undefined :: Either a ())
      In an equation for ‘run’:
          run = runEffect $ (undefined :: Either a ())
    • Relevant bindings include run :: a (bound at T8450.hs:8:1)