/
hydra-node.cabal
194 lines (185 loc) · 3.78 KB
/
hydra-node.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
cabal-version: 2.2
name: hydra-node
version: 0.1.0
description: Hydra node executable (server
author: IOHK
copyright: 2021 IOHK
license: Apache-2.0
license-files:
LICENSE
NOTICE
build-type: Simple
extra-source-files: README.md
source-repository head
type: git
location: https://github.com/input-output-hk/hydra-node
flag development
description: Disable -Werror for development
default: False
manual: True
common project-config
default-language: Haskell2010
default-extensions:
BangPatterns
BinaryLiterals
ConstraintKinds
DataKinds
DefaultSignatures
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
EmptyDataDecls
ExistentialQuantification
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
InstanceSigs
KindSignatures
LambdaCase
MultiParamTypeClasses
MultiWayIf
NamedFieldPuns
NoImplicitPrelude
NumericUnderscores
OverloadedStrings
PartialTypeSignatures
PatternGuards
RankNTypes
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeFamilies
TypeSynonymInstances
ViewPatterns
ghc-options:
-Wall
-Wcompat
-Widentities
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages
if !flag(development)
ghc-options: -Werror
library
import: project-config
hs-source-dirs: src
exposed-modules:
Hydra.API.Server
Hydra.Chain.ZeroMQ
Hydra.Network
Hydra.Network.Ouroboros
Hydra.Network.Ouroboros.Type
Hydra.Network.Ouroboros.Client
Hydra.Network.Ouroboros.Server
Hydra.Network.ZeroMQ
Hydra.Node
Hydra.Node.Version
Hydra.Ledger
Hydra.Ledger.MaryTest
Hydra.Ledger.Mock
Hydra.Logging
Hydra.Logging.Messages
Hydra.Logging.Monitoring
Hydra.HeadLogic
Hydra.Option
other-modules:
Paths_hydra_node
build-depends:
base
, async
, base
, bytestring
, cardano-binary
, cardano-ledger-shelley-ma
, cardano-ledger-shelley-ma-test
, cardano-prelude
, cardano-slotting
, cborg
, containers
, contra-tracer
, data-default
, gitrev
, io-sim-classes
, iohk-monitoring
, iproute
, network
, network-mux
, optparse-applicative
, ouroboros-network-framework
, prometheus
, serialise
, shelley-spec-ledger
, shelley-spec-ledger-test
, stm
, text
, typed-protocols
, typed-protocols-examples
, websockets
, zeromq4-haskell
ghc-options:
-haddock
executable hydra-node
import: project-config
hs-source-dirs: exe/hydra-node
main-is: Main.hs
build-depends:
base
, cardano-prelude
, hydra-node
, stm
ghc-options:
-threaded
-rtsopts
executable mock-chain
import: project-config
hs-source-dirs: exe/mock-chain
main-is: Main.hs
build-depends:
base
, cardano-prelude
, hydra-node
, optparse-applicative
, text
ghc-options:
-threaded
-rtsopts
test-suite tests
import: project-config
hs-source-dirs: test
other-modules:
Hydra.Chain.ZeroMQSpec
Hydra.FireForgetSpec
Hydra.BehaviorSpec
Hydra.HeadLogicSpec
Hydra.LedgerSpec
Hydra.NetworkSpec
Hydra.NodeSpec
Hydra.OptionSpec
Test.Util
main-is: Main.hs
type: exitcode-stdio-1.0
build-depends:
base
, cardano-binary
, cardano-prelude
, cborg
, containers
, contra-tracer
, hspec
, hspec-core
, hydra-node
, io-sim
, io-sim-classes
, QuickCheck
, serialise
, typed-protocols-examples
build-tool-depends:
hspec-discover:hspec-discover
ghc-options:
-threaded
-rtsopts