summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_fail/NamedWildcardsNotEnabled.stderr
blob: 2fb55bfe2a83a9991782ec618bc0ef54072eb768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

NamedWildcardsNotEnabled.hs:5:9: error:
    • Couldn't match expected type ‘_b’ with actual type ‘Bool’
      ‘_b’ is a rigid type variable bound by
        the type signature for:
          foo :: forall _a _b. _a -> _b
        at NamedWildcardsNotEnabled.hs:4:1-15
    • In the expression: not x
      In an equation for ‘foo’: foo x = not x
    • Relevant bindings include
        foo :: _a -> _b (bound at NamedWildcardsNotEnabled.hs:5:1)

NamedWildcardsNotEnabled.hs:5:13: error:
    • Couldn't match expected type ‘Bool’ with actual type ‘_a’
      ‘_a’ is a rigid type variable bound by
        the type signature for:
          foo :: forall _a _b. _a -> _b
        at NamedWildcardsNotEnabled.hs:4:1-15
    • In the first argument of ‘not’, namely ‘x’
      In the expression: not x
      In an equation for ‘foo’: foo x = not x
    • Relevant bindings include
        x :: _a (bound at NamedWildcardsNotEnabled.hs:5:5)
        foo :: _a -> _b (bound at NamedWildcardsNotEnabled.hs:5:1)