-
Notifications
You must be signed in to change notification settings - Fork 0
/
boardgame.cabal
77 lines (72 loc) · 2.04 KB
/
boardgame.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
cabal-version: >=1.10
name: boardgame
version: 0.0.0.1
synopsis: Modeling boardgames
description:
A library with the basis for modeling and playing boardgames. Comes with
built-in functions for playing games through a web interface (requires WASM
compilation).
homepage: https://github.com/Boardgame-DSL/boardgame
bug-reports: https://github.com/Boardgame-DSL/boardgame/issues
license: MIT
license-file: LICENSE
maintainer: Mårten Åsberg <marten.asberg@outlook.com>
category: Model, Game
build-type: Simple
extra-source-files: CHANGELOG.md
flag wasm
description: Enables builds targeting WASM.
default: False
manual: True
library
exposed-modules: Boardgame, Boardgame.ColoredGraph
build-depends:
base >= 4.12 && < 5.0
, containers >= 0.5 && < 0.7
hs-source-dirs: src
default-language: Haskell2010
ghc-options:
-Wall
if flag(wasm)
exposed-modules: Boardgame.Web
build-depends:
aeson >= 1.4 && < 1.6
, asterius-prelude == 0.0.1
, scientific >= 0.3 && < 0.4
CPP-options: "-DWASM"
executable boardgame
main-is: Main.hs
ghc-options:
-Wall
other-modules:
ArithmeticProgressionGame
, ConnectFour
, Cross
, Gale
, Havannah
, Hex
, MNKGame
, ShannonSwitchingGame
, TicTacToe
, Y
, Yavalath
build-depends:
base >= 4.12 && < 5.0
, boardgame
, containers >= 0.5 && < 0.7
hs-source-dirs: executable
default-language: Haskell2010
if flag(wasm)
build-depends:
aeson >= 1.4 && < 1.6
, vector >= 0.12 && < 0.13
CPP-options: "-DWASM"
test-suite boardgame-test
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: BoardgameTest.hs
build-depends: base >= 4.12 && < 5.0
source-repository head
type: git
location: git://github.com/Boardgame-DSL/boardgame.git