ekmett / transformers-compat

transformers compatibility shim
Other
10 stars 12 forks source link

Control.Monad.Trans.Instances (fixes #9) #13

Closed RyanGlScott closed 8 years ago

RyanGlScott commented 8 years ago

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.