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

overloadedlistsfail01.hs:5:8: error:
    No instance for (Show a0) arising from a use of ‘print’
    The type variable ‘a0’ is ambiguous
    Potential instances:
      instance [safe] Show Version -- Defined in ‘Data.Version’
      instance Show Ordering -- Defined in ‘GHC.Show’
      instance Show Integer -- Defined in ‘GHC.Show’
      ...plus 23 others
      (use -fprint-potential-instances to see them all)
    In the expression: print [1]
    In an equation for ‘main’: main = print [1]

overloadedlistsfail01.hs:5:14: error:
    No instance for (IsList a0) arising from an overloaded list
    The type variable ‘a0’ is ambiguous
    Potential instances:
      instance IsList Version -- Defined in ‘GHC.Exts’
      instance 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: error:
    No instance for (Num (Item a0)) arising from the literal ‘1’
    The type variable ‘a0’ is ambiguous
    Potential instances:
      instance Num Integer -- Defined in ‘GHC.Num’
      instance Num Double -- Defined in ‘GHC.Float’
      instance Num Float -- Defined in ‘GHC.Float’
      ...plus two others
      (use -fprint-potential-instances to see them all)
    In the expression: 1
    In the first argument of ‘print’, namely ‘[1]’
    In the expression: print [1]