Skip to content

Commit

Permalink
#415, switch back to join/evaluate, since lazy doesn't work (uhoh!)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmitchell committed Feb 13, 2016
1 parent c03a28f commit 7f59622
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Development/Shake/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import Control.Monad.Trans.Reader
import Data.IORef
import Control.Applicative
import Control.Monad
import GHC.Exts(lazy)
import Prelude


Expand All @@ -33,7 +32,7 @@ type Capture a = (a -> IO ()) -> IO ()

-- See https://ghc.haskell.org/trac/ghc/ticket/11555
catchSafe :: IO a -> (SomeException -> IO a) -> IO a
catchSafe a b = lazy a `catch_` b
catchSafe a b = join (evaluate a) `catch_` b

-- | Run and then call a continuation.
runRAW :: ro -> rw -> RAW ro rw a -> Capture (Either SomeException a)
Expand Down

0 comments on commit 7f59622

Please sign in to comment.