Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hSetBuffering004 to work with dynamic ghci
We need to actually consume the rest of stdin, or ghci will try to interpret it as commands.
- Loading branch information
Ian Lynagh
committed
Jun 16, 2013
1 parent
80b02b2
commit fb92baf
Showing
2 changed files
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
'-' | ||
"-- test for #2678\nmodule Main (main) where\n\nimport System.IO\n\nmain :: IO ()\nmain = do hSetBuffering stdin NoBuffering\n hLookAhead stdin >>= print\n hSetBuffering stdin LineBuffering\n getContents >>= print\n" |