projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4aef249
)
The default uncaught exception handler was adding an extra \n
author
Simon Marlow
<simonmar@microsoft.com>
Thu, 24 Jan 2008 09:12:16 +0000
(09:12 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Thu, 24 Jan 2008 09:12:16 +0000
(09:12 +0000)
Control/Exception.hs
patch
|
blob
|
history
diff --git
a/Control/Exception.hs
b/Control/Exception.hs
index
e52f674
..
66ec04c
100644
(file)
--- a/
Control/Exception.hs
+++ b/
Control/Exception.hs
@@
-576,7
+576,7
@@
uncaughtExceptionHandler = unsafePerformIO (newIORef defaultHandler)
let msg = case ex of
Deadlock -> "no threads to run: infinite loop or deadlock?"
ErrorCall s -> s
- other -> showsPrec 0 other "\n"
+ other -> showsPrec 0 other ""
withCString "%s" $ \cfmt ->
withCString msg $ \cmsg ->
errorBelch cfmt cmsg