Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Fix import conflicts from modern stm
Browse files Browse the repository at this point in the history
  • Loading branch information
lumimies committed Feb 29, 2012
1 parent b5e9ef8 commit 3ec95ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Pugs/src/Pugs/AST/SIO.hs
Expand Up @@ -10,7 +10,9 @@ module Pugs.AST.SIO (
module Control.Concurrent.STM
) where
import Pugs.Internals
import Control.Concurrent.STM
import Control.Concurrent.STM (STM, atomically, TVar,
writeTVar, readTVar, newTVarIO, newTVar, readTMVar, newTMVarIO,
tryPutTMVar, takeTMVar, newEmptyTMVar)

instance Monad m => ((:>:) (m a)) (Identity a) where cast = return . runIdentity
instance ((:>:) (SIO a)) (STM a) where cast = liftSTM
Expand Down
2 changes: 1 addition & 1 deletion pugs-compat/src/Pugs/Compat.hs
Expand Up @@ -23,7 +23,7 @@ import Pugs.Compat.Posix as X
import Pugs.Compat.Regex as X

import Control.Concurrent as X
import Control.Concurrent.STM as X (STM, atomically, always, alwaysSucceeds, retry, orElse, check, catchSTM)
import Control.Concurrent.STM as X (TMVar, STM, atomically, always, alwaysSucceeds, retry, orElse, check, catchSTM)
import Control.Exception as X (catchJust, Exception(..))
import Control.Monad as X (replicateM, forM, forM_, MonadPlus(..), msum, liftM2, liftM3, guard, foldM, unless, liftM, filterM, join, when)
import Control.Monad.Error as X (MonadError(..), ErrorT(..), Error(..))
Expand Down

0 comments on commit 3ec95ac

Please sign in to comment.