File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
- /* global exports */
2
1
"use strict" ;
3
2
4
- // module Control.Monad.Eff.Exception
5
-
6
3
exports . showErrorImpl = function ( err ) {
7
4
return err . stack || err . toString ( ) ;
8
5
} ;
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ module Control.Monad.Eff.Exception
13
13
, try
14
14
) where
15
15
16
+ import Prelude
17
+
16
18
import Control.Monad.Eff (Eff )
17
- import Control.Semigroupoid ((<<<))
18
- import Data.Either (Either (Right, Left ))
19
+
20
+ import Data.Either (Either (.. ))
19
21
import Data.Maybe (Maybe (..))
20
- import Data.Show (class Show )
21
- import Prelude ((<$>), pure )
22
22
23
23
-- | This effect is used to annotate code which possibly throws exceptions
24
24
foreign import data EXCEPTION :: !
@@ -70,7 +70,7 @@ foreign import throwException
70
70
-- |
71
71
-- | ```purescript
72
72
-- | main = catchException print do
73
- -- | trace "Exceptions thrown in this block will be logged to the console"
73
+ -- | Console.log "Exceptions thrown in this block will be logged to the console"
74
74
-- | ```
75
75
foreign import catchException
76
76
:: forall a eff
You can’t perform that action at this time.
0 commit comments