Open RyanGlScott opened 6 years ago
GHC should really get around to supporting impredicative polymorphism :)
To work around it you can name the variable x
as mr
, for monomorphism-restriction, which HLint knows is special. I refer to rank2 in https://github.com/ndmitchell/hlint#bugs-and-limitations, but I guess I need to widen what it says.
hlint
warns about the following code:This suggestion is incorrect, however, since using
f = undefined
will cause the code to no longer typecheck: