summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail113.stderr
blob: 80c97d2737bad026b9c2ba7001b2db495db2e5c8 (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
25
26
27
28
29
30
31
32
33
34
35

tcfail113.hs:12:7: error:
    • Expecting one more argument to ‘Maybe’
      Expected a type, but ‘Maybe’ has kind ‘* -> *’
    • In the type signature: f :: [Maybe]

tcfail113.hs:13:1: error:
    • Couldn't match expected type ‘[Maybe]’
                  with actual type ‘p1 -> p1’
    • The equation(s) for ‘f’ have one argument,
      but its type ‘[Maybe]’ has none
    • Relevant bindings include
        f :: [Maybe] (bound at tcfail113.hs:13:1)

tcfail113.hs:15:8: error:
    • Expected kind ‘* -> *’, but ‘Int’ has kind ‘*’
    • In the first argument of ‘T’, namely ‘Int’
      In the type signature: g :: T Int

tcfail113.hs:16:1: error:
    • Couldn't match expected type ‘T Int’ with actual type ‘p0 -> p0’
    • The equation(s) for ‘g’ have one argument,
      but its type ‘T Int’ has none
    • Relevant bindings include g :: T Int (bound at tcfail113.hs:16:1)

tcfail113.hs:18:6: error:
    • Expected kind ‘* -> *’, but ‘Int’ has kind ‘*’
    • In the type signature: h :: Int Int

tcfail113.hs:19:1: error:
    • Couldn't match type ‘Int’ with ‘(->) Int’
      Expected type: Int Int
        Actual type: Int -> Int
    • The equation(s) for ‘h’ have one argument,
      but its type ‘Int Int’ has none