Closed masaeedu closed 5 years ago
@masaeedu: That would only work for GHC 8.6 or later, but I'm still trying to support older GHC versions
Is it possible to use a preprocessor rule to compile differently for >= 8.6 and < 8.6?
Yes, but I think it might cause issues if the behavior of the library changes between GHC versions
Alright then. :+1:
Is it worth adding quantified constraints so an implementer of
MFunctor
et al is forced to provide a proof of the output of their type constructor being a monad in terms of a proof of the input being a monad?Specifically:
I'm not sure if there's any use for it, but this would also allow use of the monad instance of
t m
in an implementation ofMFunctor
.