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:
2b1aafe
)
make ExitCode an instance of Exception for nhc98
author
Malcolm.Wallace@cs.york.ac.uk
<unknown>
Tue, 5 Aug 2008 16:03:30 +0000
(16:03 +0000)
committer
Malcolm.Wallace@cs.york.ac.uk
<unknown>
Tue, 5 Aug 2008 16:03:30 +0000
(16:03 +0000)
Control/Exception.hs
patch
|
blob
|
history
diff --git
a/Control/Exception.hs
b/Control/Exception.hs
index
e52d2e8
..
b3638f6
100644
(file)
--- a/
Control/Exception.hs
+++ b/
Control/Exception.hs
@@
-187,6
+187,10
@@
instance Exception IOError where
toException = SomeException
fromException (SomeException e) = Just (unsafeCoerce e)
+instance Exception ExitCode where
+ toException = SomeException
+ fromException (SomeException e) = Just (unsafeCoerce e)
+
data ArithException
data ArrayException
data AsyncException