#endif
#endif /* __GLASGOW_HASKELL__ */
+#ifdef __NHC__
+import NHC.IOExtras
+ ( IORef
+ , newIORef
+ , readIORef
+ , writeIORef
+ )
+#endif
+
+#ifndef __NHC__
import Data.Dynamic
+#endif
#if defined(__GLASGOW_HASKELL__) && !defined(__PARALLEL_HASKELL__)
-- |Make a 'Weak' pointer to an 'IORef'
modifyIORef :: IORef a -> (a -> a) -> IO ()
modifyIORef ref f = writeIORef ref . f =<< readIORef ref
+#ifndef __NHC__
#include "Dynamic.h"
INSTANCE_TYPEABLE1(IORef,ioRefTc,"IORef")
+#endif