Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
03643ba4
Commit
03643ba4
authored
Mar 26, 2003
by
simonmar
Browse files
[project @ 2003-03-26 15:29:49 by simonmar]
change this test to avoid closing stderr, which confuses GHCi
parent
2d4e2515
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/lib/IO/hClose001.hs
View file @
03643ba4
import
IO
main
=
do
hClose
stderr
hPutStr
stderr
"junk"
`
catch
`
\
err
->
if
isIllegalOperation
err
then
putStr
"Okay
\n
"
else
error
"Not okay
\n
"
h
<-
openFile
"hClose001.tmp"
WriteMode
hPutStr
h
"junk"
hClose
h
hPutStr
h
"junk"
`
catch
`
\
err
->
if
isIllegalOperation
err
then
putStr
"Okay
\n
"
else
error
"Not okay
\n
"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment