import Prelude
import Control.Monad.Fix
-import Data.Typeable
#include "Typeable.h"
#ifdef __HUGS__
+import Data.Typeable
import Hugs.ST
import qualified Hugs.LazyST as LazyST
+INSTANCE_TYPEABLE2(ST,sTTc,"ST")
+INSTANCE_TYPEABLE0(RealWorld,realWorldTc,"RealWorld")
+
fixST :: (a -> ST s a) -> ST s a
fixST f = LazyST.lazyToStrictST (LazyST.fixST (LazyST.strictToLazyST . f))
instance MonadFix (ST s) where
mfix = fixST
--- ---------------------------------------------------------------------------
--- Typeable instance
-
-INSTANCE_TYPEABLE2(ST,sTTc,"ST")