Having a following custom newtype:
newtype QueryM a = QueryM (Connection -> IO a)
How can I declare an Alternative instance for it while constraining the a to have Alternative instance too? Or can I?
I mean something like this:
instance (Alternative a) => Alternative (QueryM a) where
Compiles fine here if I add an argument to
a: