File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
src/Control/Monad/Eff/Exception Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 2020 " package.json"
2121 ],
2222 "dependencies" : {
23- "purescript-eff" : " ^0.1.0 "
23+ "purescript-eff" : " ^0.1.2 "
2424 }
2525}
Original file line number Diff line number Diff line change @@ -8,10 +8,7 @@ import Control.Monad.Eff.Exception
88-- | Throw an exception in pure code. This function should be used very
99-- | sparingly, as it can cause unexpected crashes at runtime.
1010unsafeThrowException :: forall a . Error -> a
11- unsafeThrowException = unsafeRunEff <<< throwException
12- where
13- unsafeRunEff :: forall e b . Eff e b -> b
14- unsafeRunEff = runPure <<< unsafeInterleaveEff
11+ unsafeThrowException = unsafePerformEff <<< throwException
1512
1613-- | Defined as `unsafeThrowException <<< error`.
1714unsafeThrow :: forall a . String -> a
You can’t perform that action at this time.
0 commit comments