[Haskell-beginners] hClose: illegal operation (handle is finalized) and/or <<loop>>

Yitzchak Gale gale at sefer.org
Tue Aug 17 06:09:50 EDT 2010


Travis Erdman wrote:
> encodeFile (filename++".sol") (gametype,gstree,newiterlist,newstamplist,result)
>
> mincfr: kclv5.sol: hClose: illegal operation (handle is finalized)

That is a confusing error message caused by a bug in GHC
that was just reported a few days ago. The GHC team is
fixing it.

> putStrLn $ show result
>
> <<loop>>

That is the *real* error message.

It means that where you define result, you refer to result
also on the right-hand side in a way that is an endless
loop instead of well-behaved recursion.

We would have to see more of your code to be able to
say much more.

Regards,
Yitz


More information about the Beginners mailing list