-
Notifications
You must be signed in to change notification settings - Fork 463
/
plutus-tx-plugin.cabal
195 lines (170 loc) · 4.64 KB
/
plutus-tx-plugin.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
195
cabal-version: 3.0
name: plutus-tx-plugin
version: 1.3.0.0
license: Apache-2.0
license-files:
LICENSE
NOTICE
maintainer: michael.peyton-jones@iohk.io
author: Michael Peyton Jones
synopsis: The Plutus Tx compiler and GHC plugin
description: The Plutus Tx compiler and GHC plugin.
category: Language
build-type: Simple
extra-doc-files: README.md
source-repository head
type: git
location: https://github.com/input-output-hk/plutus
common lang
default-language: Haskell2010
default-extensions:
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveLift
DeriveTraversable
DerivingStrategies
ExplicitForAll
GeneralizedNewtypeDeriving
ImportQualifiedPost
ScopedTypeVariables
StandaloneDeriving
-- See Plutus Tx readme for why we need the following flags:
-- -fobject-code -fno-ignore-interface-pragmas and -fno-omit-interface-pragmas
ghc-options:
-Wall -Wnoncanonical-monad-instances -Wincomplete-uni-patterns
-Wincomplete-record-updates -Wredundant-constraints -Widentities
-Wunused-packages -Wmissing-deriving-strategies -fobject-code
-fno-ignore-interface-pragmas -fno-omit-interface-pragmas
-fforce-recomp
flag use-ghc-stub
description: Use the `plutus-ghc-stub` package instead of `ghc`.
default: False
manual: True
library
import: lang
if impl(ghc <9.0)
buildable: False
hs-source-dirs: src
exposed-modules:
PlutusTx.Compiler.Error
PlutusTx.Options
PlutusTx.Plugin
other-modules:
PlutusTx.Compiler.Binders
PlutusTx.Compiler.Builtins
PlutusTx.Compiler.Expr
PlutusTx.Compiler.Kind
PlutusTx.Compiler.Laziness
PlutusTx.Compiler.Names
PlutusTx.Compiler.Type
PlutusTx.Compiler.Types
PlutusTx.Compiler.Utils
PlutusTx.PIRTypes
PlutusTx.PLCTypes
build-depends:
, array
, base >=4.9 && <5
, bytestring
, containers
, either
, extra
, flat <0.5
, ghc-prim
, lens
, mtl
, plutus-core:{plutus-core, plutus-ir} ^>=1.3
, plutus-tx ^>=1.3
, prettyprinter
, PyF >=0.11.1.0
, template-haskell
, text
if flag(use-ghc-stub)
build-depends: plutus-ghc-stub
ghc-options:
-Wno-unused-packages -Wno-unused-imports -Wno-overlapping-patterns
else
build-depends: ghc >=9.2 && <9.4
executable gen-plugin-opts-doc
import: lang
if impl(ghc <9.0)
buildable: False
main-is: GeneratePluginOptionsDoc.hs
hs-source-dirs: app
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
, base >=4.7 && <5
, containers
, lens
, optparse-applicative
, plutus-tx-plugin ^>=1.3
, prettyprinter
, PyF >=0.11.1.0
, text
default-language: Haskell2010
test-suite plutus-tx-tests
import: lang
if impl(ghc <9.0)
buildable: False
if flag(use-ghc-stub)
buildable: False
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules:
Budget.Spec
IsData.Spec
Lib
Lift.Spec
Optimization.Spec
Plugin.Basic.Spec
Plugin.Coverage.Spec
Plugin.Data.Spec
Plugin.Debug.Spec
Plugin.Errors.Spec
Plugin.Functions.Spec
Plugin.Laziness.Spec
Plugin.Lib
Plugin.NoTrace.Spec
Plugin.Primitives.Spec
Plugin.Profiling.Spec
Plugin.Spec
Plugin.Strict.Spec
Plugin.Typeclasses.Lib
Plugin.Typeclasses.Spec
StdLib.Spec
TH.Spec
TH.TestTH
build-depends:
, base >=4.9 && <5
, containers
, deepseq
, flat <0.5
, hedgehog
, lens
, mtl
, plutus-core:{plutus-core, plutus-core-testlib} ^>=1.3
, plutus-tx-plugin ^>=1.3
, plutus-tx:{plutus-tx, plutus-tx-testlib} ^>=1.3
, tasty
, tasty-hedgehog
, tasty-hunit
, template-haskell
, text
-- NOTE: -g makes the plugin give better errors
ghc-options: -g
test-suite size
import: lang
if impl(ghc <9.0)
buildable: False
-- needs plutus-tx-plugin but it looks unused
ghc-options: -Wno-unused-packages
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test/size
build-depends:
, base >=4.9 && <5.0
, plutus-tx-plugin ^>=1.3
, plutus-tx:{plutus-tx, plutus-tx-testlib} ^>=1.3
, tagged
, tasty