Re[2]: Template Haskell crashes unexpectedly...

2006-08-21 Thread Bulat Ziganshin
Hello Arie, Monday, August 21, 2006, 7:08:31 PM, you wrote: getInfo :: Q Info getInfo = reify (mkName Car) -- Crashes if I try to print out the info -- info - runQ getInfo I seem to remember that 'reify' cannot be run in the IO monad. oh, yes! runQ

Re: Re[2]: Template Haskell crashes unexpectedly...

2006-08-21 Thread Brian Hulley
Bulat Ziganshin wrote: as you can see, it don't supports reification, recovery and information about currently compiled module just because there is no such information when program runs. and of course, you can't add new fields or new functions at run-time. isntead typical technique is: