[Haskell-cafe] Re: A GHC error message puzzle
Simon Marlow
marlowsd at gmail.com
Thu Aug 12 15:38:51 EDT 2010
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
More information about the Haskell-Cafe
mailing list