Skip to content

Commit

Permalink
Fix hSetBuffering004 to work with dynamic ghci
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/IO/hSetBuffering004.hs
Expand Up @@ -7,3 +7,4 @@ main :: IO ()
main = do hSetBuffering stdin NoBuffering
hLookAhead stdin >>= print
hSetBuffering stdin LineBuffering
getContents >>= print
1 change: 1 addition & 0 deletions tests/IO/hSetBuffering004.stdout
@@ -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"

0 comments on commit fb92baf

Please sign in to comment.