diff --git a/src/Control/Monad/Eff/Exception.js b/src/Control/Monad/Eff/Exception.js index 2b608df..554457d 100644 --- a/src/Control/Monad/Eff/Exception.js +++ b/src/Control/Monad/Eff/Exception.js @@ -1,8 +1,5 @@ -/* global exports */ "use strict"; -// module Control.Monad.Eff.Exception - exports.showErrorImpl = function (err) { return err.stack || err.toString(); }; diff --git a/src/Control/Monad/Eff/Exception.purs b/src/Control/Monad/Eff/Exception.purs index 393fa77..482d22a 100644 --- a/src/Control/Monad/Eff/Exception.purs +++ b/src/Control/Monad/Eff/Exception.purs @@ -13,12 +13,12 @@ module Control.Monad.Eff.Exception , try ) where +import Prelude + import Control.Monad.Eff (Eff) -import Control.Semigroupoid ((<<<)) -import Data.Either (Either(Right, Left)) + +import Data.Either (Either(..)) import Data.Maybe (Maybe(..)) -import Data.Show (class Show) -import Prelude ((<$>), pure) -- | This effect is used to annotate code which possibly throws exceptions foreign import data EXCEPTION :: ! @@ -70,7 +70,7 @@ foreign import throwException -- | -- | ```purescript -- | main = catchException print do --- | trace "Exceptions thrown in this block will be logged to the console" +-- | Console.log "Exceptions thrown in this block will be logged to the console" -- | ``` foreign import catchException :: forall a eff