Adds the Control.Monad.Trans.Instances module, which backports instances which aren't found elsewhere in transformers-compat. You should be able to add import Control.Monad.Trans.Instances () to your module and guarantee that all transformers-related instances will be in scope.
There's a lot of fairly brittle CPP in there, so I tested it on GHC 7.0 through 8.1 on as many combinations of -fwo, -fthree, and --constraint=transformers==0.* as I could think of.
Adds the
Control.Monad.Trans.Instances
module, which backports instances which aren't found elsewhere intransformers-compat
. You should be able to addimport Control.Monad.Trans.Instances ()
to your module and guarantee that alltransformers
-related instances will be in scope.There's a lot of fairly brittle CPP in there, so I tested it on GHC 7.0 through 8.1 on as many combinations of
-fwo
,-fthree
, and--constraint=transformers==0.*
as I could think of.