haskell-tools-daemon-1.1.1.0: Background process for Haskell-tools that editors can connect to.

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Daemon.ErrorHandling

Description

Handlers for common errors in Haskell-tools daemon.

Synopsis

Documentation

userExceptionHandlers :: (String -> IO a) -> ([Marker] -> [String] -> IO a) -> [Handler a] Source #

exceptionHandlers :: IO () -> (String -> IO ()) -> [Handler ()] Source #

Handlers for generic exceptions: IOException, AsyncException, SomeException.

handleGHCException :: String -> Maybe (String, Bool) Source #

Hint text and continuation suggestion for different kinds of errors based on pattern matching on error text.

handleSourceProblem :: String -> Maybe String Source #

Hint text and continuation suggestion for different kinds of source problems based on pattern matching on error text.