ghci forgets to close files sometimes

Josef Svenningsson josefs at cs.chalmers.se
Tue Sep 7 06:00:07 EDT 2004


> > There seems to me that when ghci fails to load a file it sometimes
> > fails to close it. The problem seems to be when there is a parse
> > error in the file.
> >
> > My setup:
> > Windows XP running cygwin
> > ghc version 6.2.1
> 
> Entirely possible.  What are the symptoms?  Is there an easy way to
> reproduce?
> 
Alas. I haven't been able to reproduce the behaviour afterwards. It seems to
be one of those erratic bugs we all hate.

Anyway, I can give some more details of the scenario when I encountered the
bug. I use XEmacs to edit my Haskell file. When I loaded one particular file
into ghci I got a parse error. I went back to XEmacs and corrected to error.
But when I tried to save the file XEmacs said it couldn't because the file
was busy. I don't remember the exact message though. Going back to ghci and
typing `:l' released the file and I could save it.

Well, its not bother me anymore right now. If the problem shows up again
I'll try and investigate more. Are there any particular things that I should
be looking for in that case?

	/Josef




More information about the Glasgow-haskell-bugs mailing list