test: Simple refined, SlaveUpdates added
[acid-state-dist.git] / acid-state-dist.cabal
1 -- Initial acid-state-dist.cabal generated by cabal init.  For further
2 -- documentation, see http://haskell.org/cabal/users-guide/
3
4 -- The name of the package.
5 name:                acid-state-dist
6
7 -- The package version.  See the Haskell package versioning policy (PVP)
8 -- for standards guiding when and how versions should be incremented.
9 -- http://www.haskell.org/haskellwiki/Package_versioning_policy
10 -- PVP summary:      +-+------- breaking API changes
11 --                   | | +----- non-breaking API additions
12 --                   | | | +--- code changes with no API change
13 version:             0.1.0.0
14
15 -- A short (one-line) description of the package.
16 synopsis:            Replication backend for acid-state
17
18 -- A longer description of the package.
19 -- description:
20
21 -- The license under which the package is released.
22 license:             GPL-3
23
24 -- The file containing the license text.
25 license-file:        LICENSE
26
27 -- The package author(s).
28 author:              Max Voit
29
30 -- An email address to which users can send suggestions, bug reports, and
31 -- patches.
32 maintainer:          max.voit+hdv@with-eyes.net
33
34 -- A copyright notice.
35 -- copyright:
36
37 category:            Data
38
39 build-type:          Simple
40
41 -- Extra files to be distributed with the package, such as examples or a
42 -- README.
43 -- extra-source-files:
44
45 -- Constraint on the version of Cabal needed to build this package.
46 cabal-version:       >=1.10
47
48
49 library
50   -- Modules exported by the library.
51   exposed-modules:     Data.Acid.Centered,
52                        Data.Acid.Centered.Master,
53                        Data.Acid.Centered.Slave
54
55   other-modules:       Data.Acid.Centered.Common
56
57   -- Modules included in this library but not exported.
58   -- other-modules:
59
60   -- LANGUAGE extensions used by modules in this package.
61   -- other-extensions:
62
63   -- Other library packages from which modules are imported.
64   build-depends:       base > 4.7 && < 4.9,
65                        safecopy,
66                        acid-state > 0.12 && < 0.13,
67                        concurrent-extra,
68                        cereal,
69                        zeromq4-haskell,
70                        bytestring,
71                        containers,
72                        transformers,
73                        stm,
74                        semigroups,
75                        safe,
76                        filepath,
77                        mtl
78
79   -- Directories containing source files.
80   hs-source-dirs:      src
81
82   -- Base language which the package is written in.
83   default-language:    Haskell2010
84
85 ----------------------------------------------------------------------
86 -- Tests
87 test-suite Simple
88   main-is:          Simple.hs
89   type:             exitcode-stdio-1.0
90   hs-source-dirs:   test
91   ghc-options:      -Wall -threaded
92   default-language: Haskell2010
93   build-depends:    base,
94                     directory,
95                     mtl,
96                     safecopy,
97                     acid-state,
98                     acid-state-dist
99
100 test-suite SlaveUpdates
101   main-is:          SlaveUpdates.hs
102   type:             exitcode-stdio-1.0
103   hs-source-dirs:   test
104   ghc-options:      -Wall -threaded
105   default-language: Haskell2010
106   build-depends:    base,
107                     directory,
108                     mtl,
109                     safecopy,
110                     acid-state,
111                     acid-state-dist