-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHastings.cabal
122 lines (111 loc) · 3.11 KB
/
Hastings.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Hastings
version: 0.1.0.0
synopsis: A game lobbby and simple chinese checkers game
description: Please see README.md
homepage: http://github.com/githubuser/Hastings#readme
license: BSD3
license-file: LICENSE
author: Joel Gustafsson, Mattias Nilsen, André Samuelsson, Benjamin Block, Mikael Milakovic
maintainer: [email protected]
copyright: 2016 Joel Gustafsson, Mattias Nilsen, André Samuelsson, Benjamin Block, Mikael Milakovic
category: Web
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10
Flag HasteStandalone
Description: If the HasteStandalone package is available.
Default: False
-- Cabal checks if the configuration is possible, first
-- with this flag set to True and if not it tries with False
library
hs-source-dirs: src
build-depends:
base >= 4.7 && < 5,
bytestring
exposed-modules:
Hastings.Config
, Views.Chat
, Views.Lobby
, Views.Common
, Views.Game
, LobbyTypes
, Hastings.Utils
, LobbyClient
, LobbyAPI
, ChineseCheckers.Table
, ChineseCheckers.ChineseGraphics
, ChineseCheckers.ChineseCheckers
, ChineseCheckers.ChineseGame
, ChineseCheckers.ChineseBitmaps
if impl(haste)
build-depends:
haste-lib >= 0.5 && < 0.6,
haste-prim
else
exposed-modules:
Server
, Hastings.ServerUtils
, Server.Game
, Server.Chat
, Server.Lobby
, Hastings.Database.Common
, Hastings.Database.Fields
, Hastings.Database.Player
, Hastings.Database.Game
build-depends:
haste-compiler >= 0.5 && < 0.6,
uuid,
random,
persistent,
persistent-mysql,
persistent-template,
esqueleto,
monad-logger,
pwstore-fast
-- build-depends: containers
default-language: Haskell2010
executable Hastings-exe
hs-source-dirs: app
if flag(HasteStandalone)
main-is: StandaloneApp.hs
else
main-is: Main.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
base >= 4.8 && < 4.9,
Hastings,
bytestring
if flag(HasteStandalone)
build-depends: haste-standalone
else
if impl(haste)
ghc-options: --output-html
if impl(haste)
build-depends: haste-lib >= 0.5 && < 0.6
else
build-depends:
haste-compiler >= 0.5 && < 0.6,
uuid,
random,
pwstore-fast
default-language: Haskell2010
test-suite Hastings-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
build-depends:
base,
Hastings,
haste-compiler,
test-framework,
test-framework-quickcheck2,
QuickCheck,
bytestring,
esqueleto,
pwstore-fast
other-modules: Utils, Server.LobbyTest, Server.GameTest, Server.ChatTest, ArbitraryLobbyTypes, ArbitraryGameTypes
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010
source-repository head
type: git
location: https://github.com/githubuser/Hastings