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

tcfail153.hs:6:7:
    Couldn't match type ‘a’ with ‘Bool’
      ‘a’ is a rigid type variable bound by
          the type signature for: f :: a -> [a] at tcfail153.hs:5:6
    Expected type: [a]
      Actual type: [Bool]
    In the expression: g x
    In an equation for ‘f’:
        f x
          = g x
          where
              g y = if y then [] else [...]
    Relevant bindings include
      x :: a (bound at tcfail153.hs:6:3)
      f :: a -> [a] (bound at tcfail153.hs:6:1)