Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
1cc01ada
Commit
1cc01ada
authored
Aug 08, 2001
by
simonmar
Browse files
[project @ 2001-08-08 10:36:59 by simonmar]
update expected output
parent
c737f0f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/tests/lib/IO/readFile001.stdout
View file @
1cc01ada
Left resource busy
Action: openFile
Reason: file is locked
File: readFile001.out
-- !!! readFile test
import IO
...
...
@@ -13,11 +17,8 @@ main = do
s <- readFile filename
-- This open should fail, because the readFile hasn't been forced
-- and the file is therefore still locked. But GHC currently has a
-- bug in that the openFile truncates the file before checking
-- whether it was locked or not.
-- r <- try (openFile filename WriteMode)
-- print r
-- and the file is therefore still locked.
try (openFile filename WriteMode) >>= print
putStrLn s
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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