-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstack.yaml
87 lines (78 loc) · 2.58 KB
/
stack.yaml
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
# http://docs.haskellstack.org/en/stable/yaml_configuration/
# resolver by ghc version:
# 9.0.2: nightly-2022-02-12
# 8.10.7: lts-18.24
# 8.8.3: lts-16.10
# 8.6.5: lts-14.27
# 8.4.4: lts-12.26
# 8.4.3: lts-12.14 #TODO remove
# 8.2.2: lts-11.22
#resolver: lts-12.14
#resolver: lts-14.27
#resolver: lts-16.10 # need to rewrite freetype code for this?
resolver: lts-18.24
#resolver: nightly-2022-02-12
# TODO 'stack image' this is not supported anymore in stack 2,
# use instead : https://www.fpcomplete.com/blog/2017/12/building-haskell-apps-with-docker/
image:
containers:
- base: imajuscule/game-rt
name: imajuscule/hamazed
executables:
- imj-game-synths-exe
- base: imajuscule/game-rt
name: imajuscule/game-hamazed
executables:
- imj-game-hamazed-exe
- base: imajuscule/game-rt
name: imajuscule/serve-highscores
executables:
- imj-serve-highscores-exe
packages:
- './imj-base'
- './imj-audio'
- './imj-game'
- './imj-game-tutorial-increment'
- './imj-game-hamazed'
- './imj-game-synths'
- './imj-serve-highscores'
- './imj-measure-stdout'
- './imj-music'
- './imj-particlesystem'
- './imj-prelude'
- './imj-profile'
- './imj-server'
- './imj-space'
- './imj-time'
extra-deps:
- git: https://github.com/OlivierSohn/mwc-random.git
commit: 89a5657db7cf0a6b95a6fba8467445208f9313e6
- FTGL-2.1 # for all resolvers (not part of stackage)
- PortMidi-0.2.0.0 # for all resolvers (not part of stackage)
- GLFW-b-3.2.1.0 # for 8.2.2 resolver
- bindings-GLFW-3.2.1.1 # for 8.2.2 resolver
- clay-0.13.1 # for 8.2.2 resolver
# to build ghc-mod:
#- https://hackage.haskell.org/package/ghc-mod-5.9.0.0/candidate/ghc-mod-5.9.0.0.tar.gz
#- cabal-helper-0.8.0.0
#- extra-1.5.3
#- monad-journal-0.7.2
#- either-4.4.1.1
#allow-newer: true # for optparse-applicative, due to ghc-mod
flags: {}
extra-package-dbs: []
# for GC stats:
# -with-rtsopts=-sstderr
#
# -with-rtsopts=-N : we use it just to set the parallel GC on, we will manually set the number of capabilities in the code.
#
# -fpedantic-bottoms : to catch errors that are masked by the compiler,
# as explained in https://ghc.haskell.org/trac/ghc/ticket/14521
#
# -qa : makes the benchmarks on world creation slightly (~1%) faster.
#
# -feager-blackholing : removed since it is slower (3%) for world creation benchmarks.
ghc-options:
"$locals": -threaded -fexcess-precision -optc-ffast-math -Wall -fpedantic-bottoms -Wredundant-constraints -rtsopts -with-rtsopts=-N -with-rtsopts=-qa
# Whenever an option here changes, the corresponding modules should be recompiled:
rebuild-ghc-options: true