Commits

Jean-Marie Gaillourdet committed c61fbb9

liberalised dependency on stm to include 2.2.* version

That includes also changing the import of stm modules to have name lists.

  • Participants
  • Parent commits cb9e107
  • Branches default

Comments (0)

Files changed (2)

File global-variables.cabal

 Name:               global-variables
-Version:            1.0
+Version:            1.0.1.0
 
 Synopsis:           Namespaced, global, and top-level mutable variables without
                     unsafePerformIO.
    extends their handling significantly.
    .
    Examples are in the documentation of "Data.Global".
+   .
+   Version History:
+   .
+   1.0.1.0: added declareEmptyMVar and widened the stm dependency
+   1.0: First public release
 
 License:            BSD3
 License-file:       LICENSE
 
 Build-type:         Simple
 
+Tested-With:        GHC == 7.0.4, GHC == 7.2.2
 -- Extra files to be distributed with the package, such as examples or
 -- a README.
 -- Extra-source-files:
 
   Build-depends:      base >= 4 && < 5
                     , containers >= 0.3 && < 0.5
-                    , stm >= 2.1 && < 2.2
+                    , stm >= 2.1 && < 2.3
 
   Other-modules:    Data.Global.Registry
 

File src/Data/Global/Registry.hs

   , setupRegistry
 ) where
 
-import Control.Concurrent.MVar
-import Control.Concurrent.STM
+import Control.Concurrent.MVar ( MVar, newMVar, newEmptyMVar, modifyMVar )
+#if __GLASGOW_HASKELL__ < 702
+import Control.Concurrent.MVar ( takeMVar, putMVar )
+#endif
+import Control.Concurrent.STM  ( TVar, newTVarIO )
 #if __GLASGOW_HASKELL__ < 702
 import Control.Exception       ( evaluate )
 #endif