
12 Aug
2010
12 Aug
'10
3:38 p.m.
On 12/08/10 15:09, Yitzchak Gale wrote:
The file "error_puzzle.hs" begins like this:
main = do inp<- readFile "input" writeFile "output" $ process inp
process :: String -> String
When compiled with GHC 6.12.3 and run, it gives the following result:
$ ./error_puzzle error_puzzle: output: hClose: illegal operation (handle is finalized)
process xs = blackhole where blackhole = tail blackhole Cheers, Simon