summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/holes2.stderr
blob: eb8d56f1e360ad959f8f21286600a99687970565 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

holes2.hs:3:5: warning: [-Wdeferred-type-errors (in -Wdefault)]
    • Ambiguous type variable ‘a0’ arising from a use of ‘show’
      prevents the constraint ‘(Show a0)’ from being solved.
      Probable fix: use a type annotation to specify what ‘a0’ should be.
      These potential instances exist:
        instance Show Ordering -- Defined in ‘GHC.Show’
        instance Show Integer -- Defined in ‘GHC.Show’
        instance Show a => Show (Maybe a) -- Defined in ‘GHC.Show’
        ...plus 22 others
        ...plus five instances involving out-of-scope types
        (use -fprint-potential-instances to see them all)
    • In the expression: show _
      In an equation for ‘f’: f = show _

holes2.hs:3:10: warning: [-Wtyped-holes (in -Wdefault)]
    • Found hole: _ :: a0
      Where: ‘a0’ is an ambiguous type variable
    • In the first argument of ‘show’, namely ‘_’
      In the expression: show _
      In an equation for ‘f’: f = show _
    • Relevant bindings include f :: String (bound at holes2.hs:3:1)