Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data TextException = TextException Text
- displayUncaughtException :: IO () -> IO ()
Common exceptions
data TextException Source #
Instances
Show TextException Source # | |
Defined in Util.Exception showsPrec :: Int -> TextException -> ShowS # show :: TextException -> String # showList :: [TextException] -> ShowS # | |
Exception TextException Source # | |
Defined in Util.Exception | |
Buildable TextException Source # | |
Defined in Util.Exception build :: TextException -> Builder # |
Better printing of exceptions
displayUncaughtException :: IO () -> IO () Source #
Customise default uncaught exception handling. The problem with
the default handler is that it uses show
to display uncaught
exceptions, but displayException
may provide more reasonable
output. We do not modify uncaught exception handler, but simply
wrap uncaught exceptions (only synchronous ones) into
DisplayExceptionInShow
.
Some exceptions (currently we are aware only of ExitCode
) are
handled specially by default exception handler, so we don't wrap
them.