|
|
|
|
|
by ParetoOptimal
1190 days ago
|
|
ghci> let x :: Int = 1; s :: String = "foo" in x + _
<interactive>:13:46: error:
• Found hole: _ :: Int
• In the second argument of ‘(+)’, namely ‘_’
In the expression: x + _
In the expression:
let
x :: Int = 1
s :: String = "foo"
in x + _
• Relevant bindings include
x :: Int (bound at <interactive>:13:5)
s :: String (bound at <interactive>:13:19)
it :: Int (bound at <interactive>:13:1)
Valid hole fits include
it :: Int (defined at <interactive>:11:1)
x :: Int (bound at <interactive>:13:5)
maxBound :: forall a. Bounded a => a
with maxBound @Int
(imported from ‘Prelude’ (and originally defined in ‘GHC.Enum’))
minBound :: forall a. Bounded a => a
with minBound @Int
(imported from ‘Prelude’ (and originally defined in ‘GHC.Enum’))
|
|