removing |||> (#292)
This commit is contained in:
parent
02ce2d4a1d
commit
81efe04c01
@ -21,10 +21,3 @@ goNext = liftIO . GE.throwIO $ userError "goNext"
|
|||||||
-- | Run any one 'Ghc' monad.
|
-- | Run any one 'Ghc' monad.
|
||||||
runAnyOne :: GhcMonad m => [m a] -> m a
|
runAnyOne :: GhcMonad m => [m a] -> m a
|
||||||
runAnyOne = foldr (||>) goNext
|
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)
|
|
||||||
|
@ -44,12 +44,10 @@ module Language.Haskell.GhcMod.Internal (
|
|||||||
, getCompilerMode
|
, getCompilerMode
|
||||||
, setCompilerMode
|
, setCompilerMode
|
||||||
, withOptions
|
, withOptions
|
||||||
-- * 'Ghc' Choice
|
-- * 'GhcMonad' Choice
|
||||||
, (||>)
|
, (||>)
|
||||||
, goNext
|
, goNext
|
||||||
, runAnyOne
|
, runAnyOne
|
||||||
-- * 'GhcMonad' Choice
|
|
||||||
, (|||>)
|
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import GHC.Paths (libdir)
|
import GHC.Paths (libdir)
|
||||||
|
Loading…
Reference in New Issue
Block a user