summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedlists/should_fail/overloadedlistsfail01.stderr
blob: cfa2b94a55777c2d8ab5f8f1751188d8257a6b44 (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

overloadedlistsfail01.hs:5:8:
    No instance for (Show a0) arising from a use of ‘print’
    The type variable ‘a0’ is ambiguous
    Note: there are several potential instances:
      instance Show Double -- Defined in ‘GHC.Float’
      instance Show Float -- Defined in ‘GHC.Float’
      instance (Integral a, Show a) => Show (GHC.Real.Ratio a)
        -- Defined in ‘GHC.Real’
      ...plus 23 others
    In the expression: print [1]
    In an equation for ‘main’: main = print [1]

overloadedlistsfail01.hs:5:14:
    No instance for (GHC.Exts.IsList a0)
      arising from an overloaded list
    The type variable ‘a0’ is ambiguous
    Note: there is a potential instance available:
      instance GHC.Exts.IsList [a] -- Defined in ‘GHC.Exts’
    In the first argument of ‘print’, namely ‘[1]’
    In the expression: print [1]
    In an equation for ‘main’: main = print [1]

overloadedlistsfail01.hs:5:15:
    No instance for (Num (GHC.Exts.Item a0))
      arising from the literal ‘1’
    The type variable ‘a0’ is ambiguous
    Note: there are several potential instances:
      instance Num Double -- Defined in ‘GHC.Float’
      instance Num Float -- Defined in ‘GHC.Float’
      instance Integral a => Num (GHC.Real.Ratio a)
        -- Defined in ‘GHC.Real’
      ...plus three others
    In the expression: 1
    In the first argument of ‘print’, namely ‘[1]’
    In the expression: print [1]