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   
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to