Fix cabal file and make building with ghc 6.6.1 work.
[hs-pgms.git] / hs-pgms.cabal
blob150cff40e49bff1ea08fb08b5cdaee94e019f2f9
1 Name:          hs-pgms
2 Version:       0.1.0.1
3 Stability:     experimental
4 Copyright:     (c) 2008 Bertram Felgenhauer
5 Maintainer:    Bertram Felgenhauer <int-e@gmx.de>
6 Category:      Game
7 License:       BSD3
8 License-File:  LICENSE
9 Synopsis:      Programmer's Mine Sweeper in Haskell
10 Description:
11     This package allows people to code Minesweeper strategies in Haskell
12     and run them in a graphical UI.
14     Inspired by <http://www.ccs.neu.edu/home/ramsdell/pgms/index.html>.
15 Cabal-Version: >= 1.4
16 Build-Type:    Simple
18 -- Data-Dir:      data
19 Data-Files:    data/icons.png
20 Extra-Source-Files: README, statistics
22 Flag split-base
24 Library
25     HS-Source-Dirs:  src
26     Exposed-Modules: Mine
28     Build-Depends:   MonadPrompt >= 1.0.0.1, mtl
30     if flag(split-base)
31         Build-Depends: base >= 3, array, random
32     else
33         Build-Depends: base < 3
35     Extensions:      GADTs, FlexibleContexts, Rank2Types,
36                      GeneralizedNewtypeDeriving, BangPatterns
38 Executable hs-pgms
39     HS-Source-Dirs:  src
40     Main-is:         Main.hs
41     Other-Modules:   Mine, Util, Strategies,
42                      GUI, GUI.Common, GUI.Config, GUI.Stats,
43                      SimpleStrat, Strat1
44     Build-Depends:   MonadPrompt >= 1.0.0.1, glib, gtk
46     if flag(split-base)
47         Build-Depends: base >= 3, array, mtl, random, directory
48     else
49         Build-Depends: base < 3, mtl
51     GHC-Options:     -threaded
52     Extensions:      GADTs, FlexibleContexts, Rank2Types,
53                      GeneralizedNewtypeDeriving, BangPatterns