projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0646e02
)
fix example in comment
author
Ross Paterson
<ross@soi.city.ac.uk>
Mon, 23 Oct 2006 16:39:25 +0000
(16:39 +0000)
committer
Ross Paterson
<ross@soi.city.ac.uk>
Mon, 23 Oct 2006 16:39:25 +0000
(16:39 +0000)
Control/Exception.hs
patch
|
blob
|
history
diff --git
a/Control/Exception.hs
b/Control/Exception.hs
index
d789f06
..
1a40780
100644
(file)
--- a/
Control/Exception.hs
+++ b/
Control/Exception.hs
@@
-372,7
+372,7
@@
userErrors _ = Nothing
-- The arguments to 'bracket' are in this order so that we can partially apply
-- it, e.g.:
--
-- The arguments to 'bracket' are in this order so that we can partially apply
-- it, e.g.:
--
--- > withFile name = bracket (openFile name) hClose
+-- > withFile name mode = bracket (openFile name mode) hClose
--
bracket
:: IO a -- ^ computation to run first (\"acquire resource\")
--
bracket
:: IO a -- ^ computation to run first (\"acquire resource\")