File tree 2 files changed +49
-47
lines changed 2 files changed +49
-47
lines changed Original file line number Diff line number Diff line change @@ -35,41 +35,43 @@ library:
35
35
- -Wno-missing-signatures
36
36
- -Wno-partial-type-signatures
37
37
38
- _ : &is-example
39
- when :
40
- - condition : flag(build-examples)
41
- then :
42
- buildable : true
43
- else :
44
- buildable : false
45
-
46
38
executables :
47
39
info :
48
40
main : Main.hs
49
41
source-dirs : examples/info
50
- dependencies :
51
- - base < 4.14
52
- - vulkan
53
- - pretty-simple
54
- << : *is-example
42
+ when :
43
+ - condition : flag(build-examples)
44
+ then :
45
+ buildable : true
46
+ dependencies :
47
+ - base < 4.14
48
+ - vulkan
49
+ - pretty-simple
50
+ else :
51
+ buildable : false
55
52
56
53
sdl-triangle :
57
54
main : Main.hs
58
55
source-dirs : examples/sdl-triangle
59
- dependencies :
60
- - base < 4.14
61
- - bytestring
62
- - extra
63
- - managed
64
- - pretty-show
65
- - say
66
- - sdl2
67
- - text
68
- - transformers
69
- - vector
70
- - vulkan
56
+ when :
57
+ - condition : flag(build-examples)
58
+ then :
59
+ buildable : true
60
+ dependencies :
61
+ - base < 4.14
62
+ - bytestring
63
+ - extra
64
+ - managed
65
+ - pretty-show
66
+ - say
67
+ - sdl2
68
+ - text
69
+ - transformers
70
+ - vector
71
+ - vulkan
72
+ else :
73
+ buildable : false
71
74
c-sources : examples/sdl-triangle/DebugCallback.c
72
- << : *is-example
73
75
74
76
flags :
75
77
safe-foreign-calls :
@@ -78,13 +80,13 @@ flags:
78
80
callbacks from Vulkan to Haskell will work. If you are using
79
81
these then make sure this flag is enabled.
80
82
default : yes
81
- manual : no
83
+ manual : yes
82
84
83
85
build-examples :
84
86
description :
85
87
Build example executables
86
88
default : no
87
- manual : no
89
+ manual : yes
88
90
89
91
default-extensions :
90
92
- AllowAmbiguousTypes
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ cabal-version: 1.12
4
4
--
5
5
-- see: https://github.com/sol/hpack
6
6
--
7
- -- hash: f7e72b88e88eab9cd679e001a8d67909870b2518cf620ea811ea4a85ef28355c
7
+ -- hash: 114c0fde74e474e875021865600ff7eb6f54ffb28ef52a9fd385840b8e68d414
8
8
9
9
name : vulkan
10
10
version : 3.0.0.0
@@ -29,12 +29,12 @@ source-repository head
29
29
30
30
flag build-examples
31
31
description : Build example executables
32
- manual : False
32
+ manual : True
33
33
default : False
34
34
35
35
flag safe-foreign-calls
36
36
description : Do not mark foreign imports as 'unsafe'. This means that callbacks from Vulkan to Haskell will work. If you are using these then make sure this flag is enabled.
37
- manual : False
37
+ manual : True
38
38
default : True
39
39
40
40
library
@@ -482,11 +482,11 @@ executable info
482
482
hs-source-dirs :
483
483
examples/info
484
484
default-extensions : AllowAmbiguousTypes CPP DataKinds DefaultSignatures DeriveAnyClass DerivingStrategies DuplicateRecordFields FlexibleContexts FlexibleInstances GADTs GeneralizedNewtypeDeriving InstanceSigs LambdaCase MagicHash NoMonomorphismRestriction OverloadedStrings PartialTypeSignatures PatternSynonyms PolyKinds QuantifiedConstraints RankNTypes RecordWildCards RoleAnnotations ScopedTypeVariables StandaloneDeriving Strict TypeApplications TypeFamilyDependencies TypeOperators TypeSynonymInstances UndecidableInstances ViewPatterns
485
- build-depends :
486
- base < 4.14
487
- , pretty-simple
488
- , vulkan
489
485
if flag(build-examples)
486
+ build-depends :
487
+ base < 4.14
488
+ , pretty-simple
489
+ , vulkan
490
490
buildable : True
491
491
else
492
492
buildable : False
@@ -501,19 +501,19 @@ executable sdl-triangle
501
501
default-extensions : AllowAmbiguousTypes CPP DataKinds DefaultSignatures DeriveAnyClass DerivingStrategies DuplicateRecordFields FlexibleContexts FlexibleInstances GADTs GeneralizedNewtypeDeriving InstanceSigs LambdaCase MagicHash NoMonomorphismRestriction OverloadedStrings PartialTypeSignatures PatternSynonyms PolyKinds QuantifiedConstraints RankNTypes RecordWildCards RoleAnnotations ScopedTypeVariables StandaloneDeriving Strict TypeApplications TypeFamilyDependencies TypeOperators TypeSynonymInstances UndecidableInstances ViewPatterns
502
502
c-sources :
503
503
examples/sdl-triangle/DebugCallback.c
504
- build-depends :
505
- base < 4.14
506
- , bytestring
507
- , extra
508
- , managed
509
- , pretty-show
510
- , say
511
- , sdl2
512
- , text
513
- , transformers
514
- , vector
515
- , vulkan
516
504
if flag(build-examples)
505
+ build-depends :
506
+ base < 4.14
507
+ , bytestring
508
+ , extra
509
+ , managed
510
+ , pretty-show
511
+ , say
512
+ , sdl2
513
+ , text
514
+ , transformers
515
+ , vector
516
+ , vulkan
517
517
buildable : True
518
518
else
519
519
buildable : False
You can’t perform that action at this time.
0 commit comments