Ticket #217 (closed bug: Fixed)
ghci failure using .ghci to define macro
Description
orielmaxime@yahoo.com Windows 2000 I have defined a macro that I adore (it runs quick check on all properties within a file). Manually, when I run ghci, I type the following to set up that macro: :load OdmQuickCheck :def checkAll checkAll I then proceed to the meat of my GHCI session, knowing I can now type something like: :checkAll IntersectionTest and receive immediate feedback as to whether my latest "optimization" actually broke the algorithm. Okay. That's all background. So, I put the two lines above into a .gchi file: :load OdmQuickCheck :def checkAll checkAll Then, I invoked ghci with a different module from the command line: ghci IntersectionTest I'm hoping, then, to be able to directly use the macro: :checkAll IntersectionTest After all the tests have run, something "bad" happens, and I see the following: C:\ghc\GHC-50~1.3\bin\ghc.exe: fatal error: scavenge_stack: weird activation record found on stack: 0 I think this may have something to do with the compiled/interpreted state of the modules involved, and whether the module itself imports OdmQuickCheck, but I've been unable to so far to isolate these dependencies. I'm hoping that you'll know right off... that it has something to do with the :def command not fully binding the macro... but if you have no idea, let me know and I can provide more data, sample code, more data points, etc. Don't hesitate to let me know what you need. Thanks! oriel
Change History
Note: See
TracTickets for help on using
tickets.
