projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e71ba90
)
Add instance Show Control.Exception.Exception for nhc98.
author
Malcolm.Wallace@cs.york.ac.uk
<unknown>
Mon, 28 Jul 2008 16:45:37 +0000
(16:45 +0000)
committer
Malcolm.Wallace@cs.york.ac.uk
<unknown>
Mon, 28 Jul 2008 16:45:37 +0000
(16:45 +0000)
Control/Exception.hs
patch
|
blob
|
history
diff --git
a/Control/Exception.hs
b/Control/Exception.hs
index
ffa8f98
..
a7d14db
100644
(file)
--- a/
Control/Exception.hs
+++ b/
Control/Exception.hs
@@
-157,10
+157,14
@@
data Exception = IOException IOException
| ArrayException ArrayException
| AsyncException AsyncException
| ExitException ExitCode
+ deriving Show
type IOException = IOError
data ArithException
data ArrayException
data AsyncException
+instance Show ArithException
+instance Show ArrayException
+instance Show AsyncException
catch :: IO a -> (Exception -> IO a) -> IO a
a `catch` b = a `H'98.catch` (b . IOException)