We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Without -XNoMonomorphismRestriction, the type of the module:
-XNoMonomorphismRestriction
f = _?h >>= _?g
is found to be:
f :: GHC.Prim.Any (* -> *) (GHC.Prim.Any *)
(Even when interpreting GHC.Prim.Any * as forall a. a, this is incorrect as the Monad constraint is not on the first * -> *)
GHC.Prim.Any *
forall a. a
Monad
* -> *
With -XNoMonomorphismRestriction, the type is correctly:
f :: Monad m => m b
The text was updated successfully, but these errors were encountered:
xnyhps
No branches or pull requests
Without
-XNoMonomorphismRestriction
, the type of the module:is found to be:
(Even when interpreting
GHC.Prim.Any *
asforall a. a
, this is incorrect as theMonad
constraint is not on the first* -> *
)With
-XNoMonomorphismRestriction
, the type is correctly:The text was updated successfully, but these errors were encountered: