Skip to content

Commit 0adad53

Browse files
Introduces more executables. Adds rtsopts.
1 parent 49fe226 commit 0adad53

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

haskell-game-programming.cabal

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ cabal-version: >=1.10
1818

1919
executable example-raindrops
2020
main-is: Raindrops.hs
21+
ghc-options: -rtsopts
2122
-- other-modules:
2223
hs-source-dirs: examples/raindrops/
2324
-- other-extensions: Arrows, FlexibleInstances, MultiParamTypeClasses,
@@ -50,6 +51,22 @@ executable example-flappybird
5051
-- hs-source-dirs:
5152
default-language: Haskell2010
5253

54+
executable example-lava
55+
main-is: Lava.hs
56+
-- other-modules:
57+
hs-source-dirs: examples/Lava/ examples/ libraries
58+
-- other-extensions: Arrows, FlexibleInstances, MultiParamTypeClasses,
59+
-- TypeSynonymInstances, FlexibleContexts,
60+
-- FunctionalDependencies, MultiWayIf
61+
build-depends: base,
62+
containers,
63+
random,
64+
Yampa,
65+
SDL,
66+
SDL-ttf
67+
-- hs-source-dirs:
68+
default-language: Haskell2010
69+
5370
executable animation-frames
5471
main-is: Main.hs
5572
hs-source-dirs: tutorials/gameconcepts/multimedia/animation/
@@ -82,6 +99,7 @@ executable wiimote-connect
8299
SDL-gfx
83100
-- hs-source-dirs:
84101
default-language: Haskell2010
102+
ghc-options: -rtsopts
85103

86104
executable wiimote-buttons
87105
main-is: Buttons.hs
@@ -93,6 +111,7 @@ executable wiimote-buttons
93111
SDL-gfx
94112
-- hs-source-dirs:
95113
default-language: Haskell2010
114+
ghc-options: -rtsopts
96115

97116
executable wiimote-ir-leds
98117
main-is: Leds.hs
@@ -103,6 +122,7 @@ executable wiimote-ir-leds
103122
SDL-gfx
104123
-- hs-source-dirs:
105124
default-language: Haskell2010
125+
ghc-options: -rtsopts
106126

107127
executable wiimote-ir-leds-solution
108128
main-is: Leds-Solution.hs
@@ -113,6 +133,7 @@ executable wiimote-ir-leds-solution
113133
SDL-gfx
114134
-- hs-source-dirs:
115135
default-language: Haskell2010
136+
ghc-options: -rtsopts
116137

117138
executable wiimote-ir-point
118139
main-is: Point.hs
@@ -123,6 +144,7 @@ executable wiimote-ir-point
123144
SDL-gfx
124145
-- hs-source-dirs:
125146
default-language: Haskell2010
147+
ghc-options: -rtsopts
126148

127149
executable sdl-sdl1-audio-playwave
128150
main-is: PlayWave.hs
@@ -132,6 +154,7 @@ executable sdl-sdl1-audio-playwave
132154
SDL-mixer
133155
-- hs-source-dirs:
134156
default-language: Haskell2010
157+
ghc-options: -threaded
135158

136159
executable sdl-sdl1-drawing-shapes
137160
main-is: Shapes.hs
@@ -216,3 +239,13 @@ executable sdl-sdl1-time-example3
216239
-- hs-source-dirs:
217240
default-language: Haskell2010
218241

242+
executable yampa-fallingball
243+
main-is: Main.hs
244+
hs-source-dirs: tutorials/frp/yampa/tutorial004-fallingball/
245+
build-depends: base,
246+
Yampa,
247+
SDL,
248+
SDL-gfx
249+
-- hs-source-dirs:
250+
default-language: Haskell2010
251+

0 commit comments

Comments
 (0)