Skip to content

Commit

Permalink
CPP min version of mtl for CPS
Browse files Browse the repository at this point in the history
  • Loading branch information
BebeSparkelSparkel committed May 5, 2024
1 parent 3e4b00d commit f88e239
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lens.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ library
contravariant >= 1.4 && < 2,
distributive >= 0.5.1 && < 1,
exceptions >= 0.8.2.1 && < 1,
filepath >= 1.2.0.0 && < 1.6,
filepath >= 1.2.0.0 && < 1.5,
free >= 5.1.5 && < 6,
ghc-prim,
hashable >= 1.2.7.0 && < 1.5,
Expand Down
4 changes: 4 additions & 0 deletions src/Control/Lens/Zoom.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ import Control.Monad.Trans.Writer.Lazy as Lazy
import Control.Monad.Trans.Writer.Strict as Strict
import Control.Monad.Trans.RWS.Lazy as Lazy
import Control.Monad.Trans.RWS.Strict as Strict
#if MIN_VERSION_mtl(2,3,0)
import Control.Monad.Trans.RWS.CPS as CPS
#endif
import Control.Monad.Trans.Except
import Control.Monad.Trans.Identity
import Control.Monad.Trans.Maybe
Expand Down Expand Up @@ -103,7 +105,9 @@ type instance Magnified (ReaderT b m) = Effect m
type instance Magnified ((->)b) = Const
type instance Magnified (Strict.RWST a w s m) = EffectRWS w s m
type instance Magnified (Lazy.RWST a w s m) = EffectRWS w s m
#if MIN_VERSION_mtl(2,3,0)
type instance Magnified (CPS.RWST a w s m) = EffectRWS w s m
#endif
type instance Magnified (IdentityT m) = Magnified m

------------------------------------------------------------------------------
Expand Down

0 comments on commit f88e239

Please sign in to comment.