| I came across a VERY STRANGE bug in GHCi. It is difficult to pin down.
| 
| I send a couple of modules. Running "main" in the module
| called Toggle, generates a file called "system.galf". This
| is wrong!
| 
| At line 14, it says "bool(true).". To generate this, it must 
| use definitions from the module "Theory.hs" that I have not 
| even used! In fact, it uses the definition of the function 
| "isBool" from "Theory.hs", that I do not use anywhere else.
| 
| It seems to somehow intertwine the definition of "bool" in 
| "Theory.hs" and the definition of "toggleSystem2" in 
| "Toggle.hs", as commenting out lines from "bool" will show.

Fixed.  We will ship the fix in 5.00.2.  

Thanks for the report.  It was a very stange bug, due to
issues of management of the interpreter's global namespace.
It did indeed confuse the definition of "bool" and
"toggleSystem2", by giving them the same unique ID inside
the system.

J

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to