make it build with GHC 6.12
[packages/stm.git] / stm.cabal
1 name:           stm
2 version:        2.2.0.0
3 license:        BSD3
4 license-file:   LICENSE
5 maintainer:     libraries@haskell.org
6 synopsis:       Software Transactional Memory
7 category:       Concurrency
8 description:    A modular composable concurrency abstraction.
9 build-type:     Simple
10 cabal-version:  >=1.2
11
12 flag base4
13
14 library
15   exposed-modules:
16     Control.Concurrent.STM
17     Control.Concurrent.STM.TArray
18     Control.Concurrent.STM.TVar
19     Control.Concurrent.STM.TChan
20     Control.Concurrent.STM.TMVar
21     Control.Monad.STM
22   other-modules:
23     Control.Sequential.STM
24   build-depends: base < 5, array
25   if flag(base4)
26     build-depends: base >=4
27     cpp-options:   -DBASE4
28   else
29     build-depends: base <4
30   if impl(ghc >= 6.10)
31     build-depends: base >=4
32   extensions:    CPP