#4911: GHC 7 does not process Handle correctly
---------------------------------+------------------------------------------
Reporter: kazu-yamamoto | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.0.1 | Keywords:
Testcase: | Blockedby:
Os: Linux | Blocking:
Architecture: Unknown/Multiple | Failure: Incorrect result at runtime
---------------------------------+------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4911>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs