removing |||> (#292)

This commit is contained in:
Kazu Yamamoto 2014-08-14 10:08:48 +09:00
parent 02ce2d4a1d
commit 81efe04c01
2 changed files with 1 additions and 10 deletions

View File

@ -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)

View File

@ -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)