git.iko.soy/distributed-process
on master help sign in
Fix .cabal file (test didn't build)
d6a40f5Edsko de Vries
distributed-process-simplelocalnet/ChangeLog+4
@@ -1,3 +1,7 @@
1+<<date>> Edsko de Vries <edsko@well-typed.com> 0.2.0.7
2+
3+* Fix cabal script so that the example program compiles
4+
12012-10-03 Edsko de Vries <edsko@well-typed.com> 0.2.0.6
52012-10-03 Edsko de Vries <edsko@well-typed.com> 0.2.0.6
2
6
3* Use new version of network-transport
7* Use new version of network-transport
distributed-process-simplelocalnet/distributed-process-simplelocalnet.cabal+22−16
@@ -1,5 +1,5 @@
1Name: distributed-process-simplelocalnet
1Name: distributed-process-simplelocalnet
2−Version: 0.2.0.6
2+Version: 0.2.0.7
3Cabal-Version: >=1.8
3Cabal-Version: >=1.8
4Build-Type: Simple
4Build-Type: Simple
5License: BSD3
5License: BSD3
@@ -23,6 +23,10 @@ Source-Repository head
23 Location: https://github.com/haskell-distributed/distributed-process
23 Location: https://github.com/haskell-distributed/distributed-process
24 SubDir: distributed-process-simplelocalnet
24 SubDir: distributed-process-simplelocalnet
25
25
26+Flag build-example
27+ Default: False
28+ Description: Build a simple example application
29+
26Library
30Library
27 Build-Depends: base >= 4.4 && < 5,
31 Build-Depends: base >= 4.4 && < 5,
28 bytestring >= 0.9 && < 0.11,
32 bytestring >= 0.9 && < 0.11,
@@ -43,22 +47,24 @@ Library
43 ghc-options: -Wall
47 ghc-options: -Wall
44 HS-Source-Dirs: src
48 HS-Source-Dirs: src
45
49
46−-- Not a proper test, but we want to use cabal to compile it
47−Test-Suite TestSimpleLocalnet
50+Executable TestSimpleLocalnet
48− Type: exitcode-stdio-1.0
49 Main-Is: TestSimpleLocalnet.hs
51 Main-Is: TestSimpleLocalnet.hs
52+ If flag(build-example)
50− Build-Depends: base >= 4.4 && < 5,
53+ Build-Depends: base >= 4.4 && < 5,
51− bytestring >= 0.9 && < 0.11,
54+ bytestring >= 0.9 && < 0.11,
52− network >= 2.3 && < 2.5,
55+ network >= 2.3 && < 2.5,
53− network-multicast >= 0.0 && < 0.1,
56+ network-multicast >= 0.0 && < 0.1,
54− data-accessor >= 0.2 && < 0.3,
57+ data-accessor >= 0.2 && < 0.3,
55− binary >= 0.5 && < 0.6,
58+ binary >= 0.5 && < 0.6,
56− containers >= 0.4 && < 0.6,
59+ containers >= 0.4 && < 0.6,
57− transformers >= 0.2 && < 0.4,
60+ transformers >= 0.2 && < 0.4,
58− network-transport >= 0.3 && < 0.4,
61+ network-transport >= 0.3 && < 0.4,
59− network-transport-tcp >= 0.3 && < 0.4,
62+ network-transport-tcp >= 0.3 && < 0.4,
60− distributed-process >= 0.2 && < 0.5
63+ distributed-process >= 0.2 && < 0.5
64+ Else
65+ Buildable: False
61 Extensions: RankNTypes,
66 Extensions: RankNTypes,
62− DeriveDataTypeable
67+ DeriveDataTypeable,
68+ CPP
63 ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
69 ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind
64 HS-Source-Dirs: tests src
70 HS-Source-Dirs: tests src