Comportamento attuale
Prelude> show _
<interactive>:7:6:
Found hole ‘_’ with type: a0
Where: ‘a0’ is an ambiguous type variable
Relevant bindings include it :: String (bound at <interactive>:7:1)
In the first argument of ‘show’, namely ‘_’
In the expression: show _
In an equation for ‘it’: it = show _
Comportamento desiderato
Sarebbe bello se GHC mi dicesse anche che il buco digitato ha il Show
vincolo della classe di tipo.
Varie
Versione GHC 7.8.1
show (undefined :: () -> ())
; GHC dirà di più nell'errore di controllo del tipo.