-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.yaml
More file actions
130 lines (122 loc) · 2.92 KB
/
Copy pathpackage.yaml
File metadata and controls
130 lines (122 loc) · 2.92 KB
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
123
124
125
126
127
128
129
130
name: reactive-banana-sdl2
version: 0.1.0.0
github: "FortOyer/reactive-banana-sdl2"
license: BSD3
author: "Archibald Neil MacDonald"
maintainer: "FortOyer@hotmail.co.uk"
copyright: "2018 Archibald Neil MacDonald"
extra-source-files:
- README.md
- ChangeLog.md
# Metadata used when publishing your package
# synopsis: Short description of your package
# category: Web
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on Github at <https://github.com/FortOyer/reactive-banana-sdl2#readme>
dependencies:
- base >= 4.7 && < 5
- linear
- reactive-banana
- resourcet
- sdl2
- sdl2-image
- sdl2-ttf
- text
- vector
library:
source-dirs: src
ghc-options:
- -Wall
- -Wcompat
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wredundant-constraints
tests:
reactive-banana-unit-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- reactive-banana-sdl2
- hspec
executables:
basic-example:
main: Basic.hs
source-dirs: examples
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -main-is Basic
dependencies:
- reactive-banana-sdl2
- sdl2
when:
- condition: ! '!(flag(examples))'
buildable: false
dynamicquit-example:
main: DynamicQuit.hs
source-dirs: examples
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -main-is DynamicQuit
dependencies:
- reactive-banana-sdl2
- sdl2
when:
- condition: ! '!(flag(examples))'
buildable: false
imagerender-example:
main: ImageRender.hs
source-dirs: examples
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -main-is ImageRender
dependencies:
- reactive-banana-sdl2
- sdl2
when:
- condition: ! '!(flag(examples))'
buildable: false
interpolation-example:
main: Interpolation.hs
source-dirs: examples
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -main-is Interpolation
dependencies:
- reactive-banana-sdl2
- sdl2
when:
- condition: ! '!(flag(examples))'
buildable: false
snake-example:
main: Snake.hs
source-dirs: examples
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -main-is Snake
dependencies:
- reactive-banana-sdl2
- sdl2
when:
- condition: ! '!(flag(examples))'
buildable: false
flags:
examples:
description: Build the examples with the tests.
manual: true
default: false