Fix some warnings
This commit is contained in:
parent
8413f0a1fe
commit
12d65ba11f
@ -10,8 +10,6 @@ import ErrUtils
|
|||||||
import DynFlags (LogAction)
|
import DynFlags (LogAction)
|
||||||
|
|
||||||
import Language.Haskell.GhcMod.Error
|
import Language.Haskell.GhcMod.Error
|
||||||
import Language.Haskell.GhcMod.Output
|
|
||||||
import Language.Haskell.GhcMod.Monad.Types
|
|
||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
debugLogAction :: (String -> IO ()) -> LogAction
|
debugLogAction :: (String -> IO ()) -> LogAction
|
||||||
|
@ -242,10 +242,6 @@ withInteractiveContext action = gbracket setup teardown body
|
|||||||
setCtx = uncurry setContext
|
setCtx = uncurry setContext
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
-- | Try the left action, if an IOException occurs try the right action.
|
|
||||||
(||>) :: ExceptionMonad m => m a -> m a -> m a
|
|
||||||
x ||> y = x `gcatch` (\(_ :: IOException) -> y)
|
|
||||||
|
|
||||||
showSeverityCaption :: Severity -> String
|
showSeverityCaption :: Severity -> String
|
||||||
#if __GLASGOW_HASKELL__ >= 706
|
#if __GLASGOW_HASKELL__ >= 706
|
||||||
showSeverityCaption SevWarning = "Warning: "
|
showSeverityCaption SevWarning = "Warning: "
|
||||||
|
Loading…
Reference in New Issue
Block a user