23 Sep
2009
23 Sep
'09
3:52 p.m.
Roel van Dijk <vandijk.roel@gmail.com> writes:
I would like some feedback on the instances for STRef and IORef. Does it make sense to have them? I used a trick to force their evaluation since their constructors are not exported.
This might be "dirty" but what about this instead? instance (NFData a) => NFData (Data.IORef.IORef a) where rnf r = unsafePerformIO $ modifyIORef r (`using` rnf) G. -- Gregory Collins <greg@gregorycollins.net>