From: Don Stewart Date: Tue, 4 Mar 2008 23:53:30 +0000 (+0000) Subject: untabify X-Git-Tag: 2008-05-28~48 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=53aa4bc647eea9934b431b970f6ce531e992df43;p=ghc-base.git untabify --- diff --git a/Control/Monad/ST.hs b/Control/Monad/ST.hs index d736eb6..46ae8a2 100644 --- a/Control/Monad/ST.hs +++ b/Control/Monad/ST.hs @@ -16,19 +16,19 @@ module Control.Monad.ST ( - -- * The 'ST' Monad - ST, -- abstract, instance of Functor, Monad, Typeable. - runST, -- :: (forall s. ST s a) -> a - fixST, -- :: (a -> ST s a) -> ST s a + -- * The 'ST' Monad + ST, -- abstract, instance of Functor, Monad, Typeable. + runST, -- :: (forall s. ST s a) -> a + fixST, -- :: (a -> ST s a) -> ST s a - -- * Converting 'ST' to 'IO' - RealWorld, -- abstract - stToIO, -- :: ST RealWorld a -> IO a + -- * Converting 'ST' to 'IO' + RealWorld, -- abstract + stToIO, -- :: ST RealWorld a -> IO a - -- * Unsafe operations - unsafeInterleaveST, -- :: ST s a -> ST s a - unsafeIOToST, -- :: IO a -> ST s a - unsafeSTToIO -- :: ST s a -> IO a + -- * Unsafe operations + unsafeInterleaveST, -- :: ST s a -> ST s a + unsafeIOToST, -- :: IO a -> ST s a + unsafeSTToIO -- :: ST s a -> IO a ) where import Prelude @@ -54,11 +54,11 @@ unsafeInterleaveST = #endif #ifdef __GLASGOW_HASKELL__ -import GHC.ST ( ST, runST, fixST, unsafeInterleaveST ) -import GHC.Base ( RealWorld ) -import GHC.IOBase ( stToIO, unsafeIOToST, unsafeSTToIO ) +import GHC.ST ( ST, runST, fixST, unsafeInterleaveST ) +import GHC.Base ( RealWorld ) +import GHC.IOBase ( stToIO, unsafeIOToST, unsafeSTToIO ) #endif instance MonadFix (ST s) where - mfix = fixST + mfix = fixST