Open xnyhps opened 12 years ago
However, giving the type signature manually does cause the holes to get reported:
f :: (Monad m) => m b
f = _?h >>= _?g
test.hs:2:5: Warning:
Found hole _?h with type m a0
In the first argument of `(>>=)', namely `_?h'
In the expression: _?h >>= _?g
In an equation for `f': f = _?h >>= _?g
test.hs:2:13: Warning:
Found hole _?g with type a0 -> m b
In the second argument of `(>>=)', namely `_?g'
In the expression: _?h >>= _?g
In an equation for `f': f = _?h >>= _?g
Ok, modules loaded: Main.
Opening the following module with
-XNoMonomorphismRestriction
:Causes the holes to not be reported.
One of the differences in the log:
-XNoMonomorphismRestriction
on:Off: