on master help sign in
Add missing MonadBaseControl instance
commitf9f16d0d0e4100ac42e4e36bfe24fc839e7f2ff1 authorVladislav Zavialov <vlad.z.4096@gmail.com> dateMon 20 Mar 2017, 22:25 (10 years ago) parent0f0936b
1 file changed+10
ether/src/Control/Monad/Trans/Ether/Dispatch.hs+10
ether/src/Control/Monad/Trans/Ether/Dispatch.hs+10
@@ -69,6 +69,16 @@ instance
6969 liftWith = MC.defaultLiftWith pack unpack
7070 restoreT = MC.defaultRestoreT pack
7171
72+instance
73+ ( MC.MonadBaseControl b m
74+ , MC.MonadTransControl trans
75+ , Monad (trans m)
76+ ) => MC.MonadBaseControl b (Dispatch dp trans m)
77+ where
78+ type StM (Dispatch dp trans m) a = MC.ComposeSt trans m a
79+ liftBaseWith = MC.defaultLiftBaseWith
80+ restoreM = MC.defaultRestoreM
81+
7282type instance Lift.StT (Dispatch dp trans) a = Lift.StT trans a
7383
7484instance Lift.LiftLocal trans => Lift.LiftLocal (Dispatch dp trans) where