Skip to content

Commit

Permalink
Merge pull request #200 from gloaming/master
Browse files Browse the repository at this point in the history
Fix build for reactive-banana-wx
  • Loading branch information
HeinrichApfelmus authored Nov 26, 2023
2 parents df59d01 + ad0dc2a commit 652ab3b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 60 deletions.
38 changes: 26 additions & 12 deletions reactive-banana-wx/reactive-banana-wx.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ License-file: LICENSE
Author: Heinrich Apfelmus
Maintainer: Heinrich Apfelmus <apfelmus quantentunnel de>
Category: FRP, GUI
Cabal-version: >= 1.8
Cabal-version: >= 1.24


Build-type: Custom
Expand All @@ -31,17 +31,22 @@ Extra-source-files: CHANGELOG.md,
data-dir: data
data-files: *.ico, *.wav, *.png

custom-setup
setup-depends:
cabal-macosx >= 0.1 && < 0.3,
base >= 4.2 && < 5,
Cabal

flag buildExamples
description: Build example executables
default: False

Library
hs-source-dirs: src
build-depends: base >= 4.2 && < 5,
cabal-macosx >= 0.1 && < 0.3,
reactive-banana >= 1.1 && < 1.2,
wxcore (>= 0.13.2.1 && < 0.90) || (>= 0.90.0.1 && < 0.93),
wx (>= 0.13.2.1 && < 0.90) || (>= 0.90.0.1 && < 0.93)
reactive-banana >= 1.1 && < 1.3,
wxcore (>= 0.13.2.1 && < 0.90) || (>= 0.90.0.1 && < 0.94),
wx (>= 0.13.2.1 && < 0.90) || (>= 0.90.0.1 && < 0.94)
extensions: ExistentialQuantification
exposed-modules: Reactive.Banana.WX

Expand All @@ -53,16 +58,16 @@ Source-repository head
Executable Animation
if flag(buildExamples)
build-depends:
process >= 1.0 && < 1.4,
process >= 1.0 && < 1.7,
random >= 1.0 && <= 1.1,
executable-path == 0.0.*,
filepath >= 1.1 && <= 1.4.0.0,
filepath >= 1.1 && < 1.5.0.0,
reactive-banana, wx, wxcore, base
cpp-options: -DbuildExamples
else
buildable: False
hs-source-dirs: src
other-modules: Paths_reactive_banana_wx, Paths
other-modules: Paths_reactive_banana_wx, Paths, Reactive.Banana.WX
main-is: Animation.hs

Executable Arithmetic
Expand All @@ -71,20 +76,21 @@ Executable Arithmetic
else
buildable: False
hs-source-dirs: src
other-modules: Reactive.Banana.WX
main-is: Arithmetic.hs

Executable Asteroids
if flag(buildExamples)
build-depends:
random >= 1.0 && <= 1.1,
executable-path == 0.0.*,
filepath >= 1.1 && <= 1.4.0.0,
filepath >= 1.1 && < 1.5.0.0,
reactive-banana, wx, wxcore, base
cpp-options: -DbuildExamples
else
buildable: False
hs-source-dirs: src
other-modules: Paths_reactive_banana_wx, Paths
other-modules: Paths_reactive_banana_wx, Paths, Reactive.Banana.WX
main-is: Asteroids.hs

Executable BarTab
Expand All @@ -93,6 +99,7 @@ Executable BarTab
else
buildable: False
hs-source-dirs: src
other-modules: Reactive.Banana.WX
main-is: BarTab.hs

Executable Counter
Expand All @@ -101,6 +108,7 @@ Executable Counter
else
buildable: False
hs-source-dirs: src
other-modules: Reactive.Banana.WX
main-is: Counter.hs

Executable CurrencyConverter
Expand All @@ -109,25 +117,28 @@ Executable CurrencyConverter
else
buildable: False
hs-source-dirs: src
other-modules: Reactive.Banana.WX
main-is: CurrencyConverter.hs

Executable CRUD
if flag(buildExamples)
build-depends: containers >= 0.3 && < 0.6,
build-depends: containers >= 0.3 && < 0.7,
reactive-banana, wx, wxcore, base
else
buildable: False
hs-source-dirs: src
other-modules: Reactive.Banana.WX
main-is: CRUD.hs
other-modules: Tidings

Executable NetMonitor
if flag(buildExamples)
build-depends: process >= 1.0 && < 1.4,
build-depends: process >= 1.0 && < 1.7,
reactive-banana, wx, wxcore, base
else
buildable: False
hs-source-dirs: src
other-modules: Reactive.Banana.WX
main-is: NetMonitor.hs

Executable TicTacToe
Expand All @@ -137,6 +148,7 @@ Executable TicTacToe
else
buildable: False
hs-source-dirs: src
other-modules: Reactive.Banana.WX
main-is: TicTacToe.hs

Executable TwoCounters
Expand All @@ -145,6 +157,7 @@ Executable TwoCounters
else
buildable: False
hs-source-dirs: src
other-modules: Reactive.Banana.WX
main-is: TwoCounters.hs

Executable Wave
Expand All @@ -153,4 +166,5 @@ Executable Wave
else
buildable: False
hs-source-dirs: src
other-modules: Reactive.Banana.WX
main-is: Wave.hs
48 changes: 0 additions & 48 deletions reactive-banana-wx/stack.yaml

This file was deleted.

0 comments on commit 652ab3b

Please sign in to comment.