projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc whitespace
[ghc-base.git]
/
Control
/
Monad
/
ST.hs
diff --git
a/Control/Monad/ST.hs
b/Control/Monad/ST.hs
index
3ce5001
..
8ebb750
100644
(file)
--- a/
Control/Monad/ST.hs
+++ b/
Control/Monad/ST.hs
@@
-1,4
+1,3
@@
-{-# OPTIONS_GHC -fno-warn-orphans #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.ST
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.ST
@@
-32,7
+31,11
@@
module Control.Monad.ST
unsafeSTToIO -- :: ST s a -> IO a
) where
unsafeSTToIO -- :: ST s a -> IO a
) where
+#if defined(__GLASGOW_HASKELL__)
+import Control.Monad.Fix ()
+#else
import Control.Monad.Fix
import Control.Monad.Fix
+#endif
#include "Typeable.h"
#include "Typeable.h"
@@
-58,6
+61,8
@@
unsafeInterleaveST =
LazyST.lazyToStrictST . LazyST.unsafeInterleaveST . LazyST.strictToLazyST
#endif
LazyST.lazyToStrictST . LazyST.unsafeInterleaveST . LazyST.strictToLazyST
#endif
+#if !defined(__GLASGOW_HASKELL__)
instance MonadFix (ST s) where
mfix = fixST
instance MonadFix (ST s) where
mfix = fixST
+#endif