Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/Control/Monad/Eff/Exception.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* global exports */
"use strict";

// module Control.Monad.Eff.Exception

exports.showErrorImpl = function (err) {
return err.stack || err.toString();
};
Expand Down
10 changes: 5 additions & 5 deletions src/Control/Monad/Eff/Exception.purs
Original file line number Diff line number Diff line change
Expand Up @@ -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 :: !
Expand Down Expand Up @@ -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
Expand Down