mirror of
https://github.com/haskell-effectful/effectful.git
synced 2024-11-23 22:44:14 +03:00
Simplify runEff
This commit is contained in:
parent
4ab5e7b5f6
commit
eef830f5aa
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user