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 */
21"use strict" ;
32
4- // module Control.Monad.Eff.Exception
5-
63exports . showErrorImpl = function ( err ) {
74 return err . stack || err . toString ( ) ;
85} ;
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ module Control.Monad.Eff.Exception
1313 , try
1414 ) where
1515
16+ import Prelude
17+
1618import Control.Monad.Eff (Eff )
17- import Control.Semigroupoid ((<<<))
18- import Data.Either (Either (Right, Left ))
19+
20+ import Data.Either (Either (.. ))
1921import Data.Maybe (Maybe (..))
20- import Data.Show (class Show )
21- import Prelude ((<$>), pure )
2222
2323-- | This effect is used to annotate code which possibly throws exceptions
2424foreign import data EXCEPTION :: !
@@ -70,7 +70,7 @@ foreign import throwException
7070-- |
7171-- | ```purescript
7272-- | 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"
7474-- | ```
7575foreign import catchException
7676 :: forall a eff
You can’t perform that action at this time.
0 commit comments