Skip to content
Open
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
12 changes: 0 additions & 12 deletions src/Language/Haskell/Refact/Utils/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ import System.Log.Logger
import qualified Data.Map as Map
import qualified Data.Set as Set

-- Monad transformer stuff
import Control.Monad.Trans.Control ( control, liftBaseOp, liftBaseOp_)

-- ---------------------------------------------------------------------

data VerboseLevel = Debug | Normal | Off
Expand Down Expand Up @@ -244,15 +241,6 @@ instance GHC.HasDynFlags RefactGhc where

-- ---------------------------------------------------------------------

instance ExceptionMonad (StateT RefactState IO) where
gcatch act handler = control $ \run ->
run act `gcatch` (run . handler)

gmask = liftBaseOp gmask . liftRestore
where liftRestore f r = f $ liftBaseOp_ r

-- ---------------------------------------------------------------------

cabalModuleGraphs :: RefactGhc [GM.GmModuleGraph]
cabalModuleGraphs = RefactGhc doCabalModuleGraphs
where
Expand Down