[Haskell-cafe] A GHC error message puzzle

Sebastian Fischer sebf at informatik.uni-kiel.de
Thu Aug 12 11:51:04 EDT 2010


> Give a definition for process and an input file that reproduce this
> result.

Quite probably not the intended solution:

     process :: String -> String
     process _ = error "output: hClose: illegal operation (handle is  
finalized)"

> Have fun!


Sebastian

-- 
Underestimating the novelty of the future is a time-honored tradition.
(D.G.)





More information about the Haskell-Cafe mailing list