[nhc-bugs] getContents/hGetContents bug?
malcolm@cs.york.ac.uk
malcolm@cs.york.ac.uk
Tue, 6 May 2003 22:10:36 +0100 (BST)
> The following doesn't work under nhc98 1.14
I just tried it with nhc98-1.14, and I couldn't reproduce the
problem. Same on a freshly built 1.16. I see your version of
nhc98 was from a binary distribution, so maybe it is some kind
of Linux-related C-library incompatibility? My best suggestion
is to build nhc98 from source on the machine in question.
> main = do text <- hGetContents stdin
> putStr (unlines (parse [] text))
Assuming that the extra space before putStr is a typo...
Regards,
Malcolm