Simplify runEff

This commit is contained in:
Andrzej Rybczak 2022-02-09 18:28:44 +01:00
parent 4ab5e7b5f6
commit eef830f5aa

View File

@ -280,7 +280,7 @@ newtype instance StaticRep IOE = IOE UnliftStrategy
--
-- For running pure computations see 'runPureEff'.
runEff :: Eff '[IOE] a -> IO a
runEff m = unEff (evalStaticRep (IOE SeqUnlift) m) =<< emptyEnv
runEff m = unEff m =<< unsafeConsEnv (IOE SeqUnlift) dummyRelinker =<< emptyEnv
instance IOE :> es => MonadIO (Eff es) where
liftIO = unsafeEff_