summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/Defer02.stdout
blob: 32e51d6d6541e1585931f3390a424a32234f6289 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Hello World*** Exception: ../../typecheck/should_run/Defer01.hs:11:40:
    Couldn't match type `Char' with `[Char]'
    Expected type: String
      Actual type: Char
    In the first argument of `putStr', namely ','
    In the second argument of `(>>)', namely putStr ','
    In the expression: putStr "Hello World" >> putStr ','
(deferred type error)
*** Exception: ../../typecheck/should_run/Defer01.hs:14:5:
    Couldn't match expected type `Int' with actual type `Char'
    In the expression: 'p'
    In an equation for `a': a = 'p'
(deferred type error)
*** Exception: ../../typecheck/should_run/Defer01.hs:18:9:
    No instance for (Eq B) arising from a use of `=='
    Possible fix: add an instance declaration for (Eq B)
    In the expression: x == x
    In an equation for `b': b x = x == x
(deferred type error)
*** Exception: ../../typecheck/should_run/Defer01.hs:28:5:
    No instance for (Num (a -> a)) arising from the literal `1'
    Possible fix: add an instance declaration for (Num (a -> a))
    In the expression: 1
    In an equation for `d': d = 1
(deferred type error)
*** Exception: ../../typecheck/should_run/Defer01.hs:31:5:
    Couldn't match expected type `Char -> t' with actual type `Char'
    The function `e' is applied to one argument,
    but its type `Char' has none
    In the expression: e 'q'
    In an equation for `f': f = e 'q'
(deferred type error)
(*** Exception: ../../typecheck/should_run/Defer01.hs:34:8:
    Couldn't match expected type `a' with actual type `Char'
      `a' is a rigid type variable bound by
          the type signature for h :: a -> (Char, Char)
          at ../../typecheck/should_run/Defer01.hs:33:6
    In the expression: x
    In the expression: (x, 'c')
    In an equation for `h': h x = (x, 'c')
(deferred type error)
*** Exception: ../../typecheck/should_run/Defer01.hs:39:17:
    Couldn't match expected type `Bool' with actual type `T a'
    In the return type of a call of `K'
    In the first argument of `not', namely `(K a)'
    In the expression: (not (K a))
(deferred type error)
"*** Exception: ../../typecheck/should_run/Defer01.hs:43:5:
    No instance for (MyClass a1) arising from a use of `myOp'
    In the expression: myOp 23
    In an equation for `j': j = myOp 23
(deferred type error)
*** Exception: ../../typecheck/should_run/Defer01.hs:49:5:
    Couldn't match expected type `IO a0'
                with actual type `Char -> IO ()'
    In the first argument of `(>>)', namely `putChar'
    In the expression: putChar >> putChar 'p'
    In an equation for `l': l = putChar >> putChar 'p'
(deferred type error)