Skip to content

Commit ebb95a4

Browse files
committed
Use exception rather than err label
1 parent d1e4bf6 commit ebb95a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Control/Monad/Eff/Exception.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ foreign import stackImpl
6060
foreign import throwException
6161
:: forall a eff
6262
. Error
63-
-> Eff (err :: EXCEPTION | eff) a
63+
-> Eff (exception :: EXCEPTION | eff) a
6464

6565
-- | Catch an exception by providing an exception handler.
6666
-- |
@@ -75,12 +75,12 @@ foreign import throwException
7575
foreign import catchException
7676
:: forall a eff
7777
. (Error -> Eff eff a)
78-
-> Eff (err :: EXCEPTION | eff) a
78+
-> Eff (exception :: EXCEPTION | eff) a
7979
-> Eff eff a
8080

8181
-- | A shortcut allowing you to throw an error in one step. Defined as
8282
-- | `throwException <<< error`.
83-
throw :: forall eff a. String -> Eff (err :: EXCEPTION | eff) a
83+
throw :: forall eff a. String -> Eff (exception :: EXCEPTION | eff) a
8484
throw = throwException <<< error
8585

8686
-- | Runs an Eff and returns eventual Exceptions as a `Left` value. If the
@@ -100,5 +100,5 @@ throw = throwException <<< error
100100
-- | Console.error ("Couldn't open README.md. Error was: " <> show error)
101101
-- | ```
102102

103-
try :: forall eff a. Eff (err :: EXCEPTION | eff) a -> Eff eff (Either Error a)
103+
try :: forall eff a. Eff (exception :: EXCEPTION | eff) a -> Eff eff (Either Error a)
104104
try action = catchException (pure <<< Left) (Right <$> action)

0 commit comments

Comments
 (0)