File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ foreign import stackImpl
60
60
foreign import throwException
61
61
:: forall a eff
62
62
. Error
63
- -> Eff (err :: EXCEPTION | eff ) a
63
+ -> Eff (exception :: EXCEPTION | eff ) a
64
64
65
65
-- | Catch an exception by providing an exception handler.
66
66
-- |
@@ -75,12 +75,12 @@ foreign import throwException
75
75
foreign import catchException
76
76
:: forall a eff
77
77
. (Error -> Eff eff a )
78
- -> Eff (err :: EXCEPTION | eff ) a
78
+ -> Eff (exception :: EXCEPTION | eff ) a
79
79
-> Eff eff a
80
80
81
81
-- | A shortcut allowing you to throw an error in one step. Defined as
82
82
-- | `throwException <<< error`.
83
- throw :: forall eff a . String -> Eff (err :: EXCEPTION | eff ) a
83
+ throw :: forall eff a . String -> Eff (exception :: EXCEPTION | eff ) a
84
84
throw = throwException <<< error
85
85
86
86
-- | Runs an Eff and returns eventual Exceptions as a `Left` value. If the
@@ -100,5 +100,5 @@ throw = throwException <<< error
100
100
-- | Console.error ("Couldn't open README.md. Error was: " <> show error)
101
101
-- | ```
102
102
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 )
104
104
try action = catchException (pure <<< Left ) (Right <$> action)
You can’t perform that action at this time.
0 commit comments