Skip to content

Commit b192112

Browse files
committed
stack.yaml for reactive-banana-example
The examples in this repository are quite different from one another, and I won't be surprised if they end up requiring conflicting versions of GHC or of common dependencies. So even though they must all use my Buttons, using a separate stack project for each example is more likely to work than using a multi-package project for all the examples.
1 parent f2ac26b commit b192112

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
cabal.sandbox.config
22
.cabal-sandbox
3+
.stack-work
34
.ghci
45
dist

reactive-banana-example/reactive-banana-example.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ cabal-version: >=1.10
1010
executable reactive-banana-example
1111
hs-source-dirs: ., ../shared
1212
main-is: Main.hs
13-
build-depends: base >=4.6 && <4.10
14-
, gloss >=1.9.2.1
15-
, gloss-algorithms >=1.9.2.1
16-
, reactive-banana >=1.1 && <1.2
13+
build-depends: base
14+
, gloss
15+
, gloss-algorithms
16+
, reactive-banana
1717
default-language: Haskell2010
1818
ghc-options: -W -Wall

reactive-banana-example/stack.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
resolver: lts-9.0
2+
3+
packages:
4+
- ../shared
5+
- .
6+
7+
extra-deps:
8+
- gloss-algorithms-1.11.1.1

shared/buttons-gui.cabal

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: buttons-gui
2+
version: 0.1.0.0
3+
synopsis: The gloss GUI with which all of frp-zoo's examples interact
4+
homepage: https://github.com/gelisam/frp-zoo
5+
license: PublicDomain
6+
author: Samuel Gélineau
7+
maintainer: [email protected]
8+
category: Graphics
9+
build-type: Simple
10+
cabal-version: >=1.10
11+
12+
library
13+
exposed-modules: Buttons
14+
build-depends: base
15+
, gloss
16+
, gloss-algorithms
17+
default-language: Haskell2010

0 commit comments

Comments
 (0)