Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit d553d7f

Browse files
author
Nick Waywood
committed
Refactored examples into their own directly so they don't recompile
Signed-off-by: Nick Waywood <nwaywood@au1.ibm.com>
1 parent 4a8a75c commit d553d7f

File tree

5 files changed

+74
-74
lines changed

5 files changed

+74
-74
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

hie.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ cradle:
33
- path: "./src"
44
component: "fabric-chaincode-haskell:lib"
55

6-
- path: "./examples/Fabcar.hs"
6+
- path: "./examples/fabcar/Fabcar.hs"
77
component: "fabric-chaincode-haskell:exe:fabcar-exe"
88

9-
- path: "./examples/Sacc.hs"
9+
- path: "./examples/sacc/Sacc.hs"
1010
component: "fabric-chaincode-haskell:exe:sacc-exe"
1111

12-
- path: "./examples/Marbles.hs"
12+
- path: "./examples/marbles/Marbles.hs"
1313
component: "fabric-chaincode-haskell:exe:marbles-exe"
1414

1515
- path: "./test"

package.yaml

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: fabric-chaincode-haskell
2-
version: 0.1.0.0
3-
github: "nwaywood/fabric-chaincode-haskell"
4-
license: Apache-2
5-
author: "Nick Waywood, Allison Irvin"
6-
maintainer: "n.waywood@gmail.com"
7-
copyright: "2020 Nick Waywood"
1+
name: fabric-chaincode-haskell
2+
version: 0.1.0.0
3+
github: "nwaywood/fabric-chaincode-haskell"
4+
license: Apache-2
5+
author: "Nick Waywood, Allison Irvin"
6+
maintainer: "n.waywood@gmail.com"
7+
copyright: "2020 Nick Waywood"
88

99
# Metadata used when publishing your package
1010
# synopsis: Short description of your package
@@ -13,75 +13,75 @@ copyright: "2020 Nick Waywood"
1313
# To avoid duplicated efforts in documentation and dealing with the
1414
# complications of embedding Haddock markup inside cabal files, it is
1515
# common to point users to the README.md file.
16-
description: Please see the README on GitHub at <https://github.com/nwaywood/fabric-chaincode-haskell>
16+
description: Please see the README on GitHub at <https://github.com/nwaywood/fabric-chaincode-haskell>
1717

1818
dependencies:
19-
- base >= 4.7 && < 5
20-
- grpc-haskell-core
21-
- grpc-haskell
22-
- proto3-suite
23-
- proto3-wire
24-
- vector
25-
- bytestring
26-
- text
27-
- deepseq
28-
- containers
29-
- utf8-string
30-
- aeson
31-
- mtl
19+
- base >= 4.7 && < 5
20+
- grpc-haskell-core
21+
- grpc-haskell
22+
- proto3-suite
23+
- proto3-wire
24+
- vector
25+
- bytestring
26+
- text
27+
- deepseq
28+
- containers
29+
- utf8-string
30+
- aeson
31+
- mtl
3232

3333
library:
34-
source-dirs:
35-
- src
36-
- protos-hs
34+
source-dirs:
35+
- src
36+
- protos-hs
3737

3838
executables:
39-
sacc-exe:
40-
main: Sacc.hs
41-
source-dirs: examples
42-
ghc-options:
43-
- -threaded
44-
- -rtsopts
45-
- -with-rtsopts=-N
46-
- -Wall
47-
- -Wincomplete-uni-patterns
48-
- -main-is Sacc
49-
dependencies:
50-
- fabric-chaincode-haskell
51-
marbles-exe:
52-
main: Marbles.hs
53-
source-dirs: examples
54-
ghc-options:
55-
- -threaded
56-
- -rtsopts
57-
- -with-rtsopts=-N
58-
- -Wall
59-
- -Wincomplete-uni-patterns
60-
- -main-is Marbles
61-
dependencies:
62-
- fabric-chaincode-haskell
63-
fabcar-exe:
64-
main: Fabcar.hs
65-
source-dirs: examples
66-
ghc-options:
67-
- -threaded
68-
- -rtsopts
69-
- -with-rtsopts=-N
70-
- -Wall
71-
- -Wincomplete-uni-patterns
72-
- -main-is Fabcar
73-
dependencies:
74-
- fabric-chaincode-haskell
39+
sacc-exe:
40+
main: Sacc.hs
41+
source-dirs: examples/sacc
42+
ghc-options:
43+
- -threaded
44+
- -rtsopts
45+
- -with-rtsopts=-N
46+
- -Wall
47+
- -Wincomplete-uni-patterns
48+
- -main-is Sacc
49+
dependencies:
50+
- fabric-chaincode-haskell
51+
marbles-exe:
52+
main: Marbles.hs
53+
source-dirs: examples/marbles
54+
ghc-options:
55+
- -threaded
56+
- -rtsopts
57+
- -with-rtsopts=-N
58+
- -Wall
59+
- -Wincomplete-uni-patterns
60+
- -main-is Marbles
61+
dependencies:
62+
- fabric-chaincode-haskell
63+
fabcar-exe:
64+
main: Fabcar.hs
65+
source-dirs: examples/fabcar
66+
ghc-options:
67+
- -threaded
68+
- -rtsopts
69+
- -with-rtsopts=-N
70+
- -Wall
71+
- -Wincomplete-uni-patterns
72+
- -main-is Fabcar
73+
dependencies:
74+
- fabric-chaincode-haskell
7575

7676
tests:
77-
fabric-chaincode-haskell-test:
78-
main: Spec.hs
79-
source-dirs: test
80-
ghc-options:
81-
- -threaded
82-
- -rtsopts
83-
- -with-rtsopts=-N
84-
dependencies:
85-
- fabric-chaincode-haskell
86-
- tasty
87-
- tasty-hunit
77+
fabric-chaincode-haskell-test:
78+
main: Spec.hs
79+
source-dirs: test
80+
ghc-options:
81+
- -threaded
82+
- -rtsopts
83+
- -with-rtsopts=-N
84+
dependencies:
85+
- fabric-chaincode-haskell
86+
- tasty
87+
- tasty-hunit

0 commit comments

Comments
 (0)