diff --git a/Language/Haskell/GhcMod/GHCChoice.hs b/Language/Haskell/GhcMod/GHCChoice.hs index 3ac604e..8ceb214 100644 --- a/Language/Haskell/GhcMod/GHCChoice.hs +++ b/Language/Haskell/GhcMod/GHCChoice.hs @@ -21,10 +21,3 @@ goNext = liftIO . GE.throwIO $ userError "goNext" -- | Run any one 'Ghc' monad. runAnyOne :: GhcMonad m => [m a] -> m a runAnyOne = foldr (||>) goNext - ----------------------------------------------------------------- - --- | Try the left 'GhcMonad' action. If 'IOException' occurs, try --- the right 'GhcMonad' action. -(|||>) :: GhcMonad m => m a -> m a -> m a -x |||> y = x `GE.gcatch` (\(_ :: IOException) -> y) diff --git a/Language/Haskell/GhcMod/Internal.hs b/Language/Haskell/GhcMod/Internal.hs index 237aff4..d55bfc9 100644 --- a/Language/Haskell/GhcMod/Internal.hs +++ b/Language/Haskell/GhcMod/Internal.hs @@ -44,12 +44,10 @@ module Language.Haskell.GhcMod.Internal ( , getCompilerMode , setCompilerMode , withOptions - -- * 'Ghc' Choice + -- * 'GhcMonad' Choice , (||>) , goNext , runAnyOne - -- * 'GhcMonad' Choice - , (|||>) ) where import GHC.Paths (libdir)