[Haskell-cafe] Safe top-level IORefs

2007-03-04 Thread Roberto Zunino
I'm posting the code of a module, IORefs, allowing top-level IORefs to be safely declared and used. Usafety reports are welcome. Tested in GHC 6.6. ** Features: 1) IORef a provided for any Typeable a 2) An unbounded number of IORef's can be declared 3) An IORef declaration is 3 lines long (+

Re: [Haskell-cafe] Safe top-level IORefs

2007-03-04 Thread Roberto Zunino
Neil Mitchell wrote: Hi On 3/4/07, Roberto Zunino [EMAIL PROTECTED] wrote: I'm posting the code of a module, IORefs, allowing top-level IORefs to be safely declared and used. Usafety reports are welcome. Tested in GHC 6.6. That looks cool, does it work on Hugs? I've tested it right now.