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

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 Show () -- Defined in ‘GHC.Show’
      ...plus 22 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 Num Int -- Defined in ‘GHC.Num’
      ...plus two others
    In the expression: 1
    In the first argument of ‘print’, namely ‘[1]’
    In the expression: print [1]