id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
4911	GHC 7 does not process Handle correctly	kazu-yamamoto		"Compile the following code:

{{{
module Main where

import qualified Data.ByteString.Lazy.Char8 as L

main :: IO ()
main = do
    getLine >>= putStrLn
    L.getContents >>= L.putStr
}}}

Let's call this binary ""foo"". If you compile this with GHC 6.12.3, the following command work well. That is, the entire of ""any-file"" is displayed.

{{{
% foo < any-file
}}}

However, if you compile this with GHC 7.0.1 or later, the command displays only the first line of ""any-file"".

This can be re-produced on Linux.


"	bug	closed	normal		Compiler	7.0.1	duplicate		johan.tibell@…	Unknown/Multiple	Unknown/Multiple	Incorrect result at runtime					
