-
Notifications
You must be signed in to change notification settings - Fork 0
/
yieldfsm.cabal
188 lines (173 loc) · 4.65 KB
/
yieldfsm.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
cabal-version: 2.4
name: yieldfsm
version: 0.2.0
license: BSD-2-Clause
author: Marek Materzok <[email protected]>
maintainer: Marek Materzok <[email protected]>
category: Hardware
synopsis: YieldFSM, a DSL for describing finite state machines in Clash
source-repository head
type: git
location: https://github.com/tilk/yieldfsm
common common-options
default-extensions:
BangPatterns
BinaryLiterals
ConstraintKinds
DataKinds
DefaultSignatures
DeriveAnyClass
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveLift
DeriveTraversable
DerivingStrategies
GADTs
InstanceSigs
KindSignatures
LambdaCase
NoStarIsType
PolyKinds
RankNTypes
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeApplications
TypeFamilies
TypeOperators
ViewPatterns
-- TemplateHaskell is used to support convenience functions such as
-- 'listToVecTH' and 'bLit'.
TemplateHaskell
QuasiQuotes
-- Prelude isn't imported by default as Clash offers Clash.Prelude
NoImplicitPrelude
ghc-options:
-Wall -Wcompat
-haddock
-- Plugins to support type-level constraint solving on naturals
-fplugin GHC.TypeLits.Extra.Solver
-fplugin GHC.TypeLits.Normalise
-fplugin GHC.TypeLits.KnownNat.Solver
-- Clash needs access to the source code in compiled modules
-fexpose-all-unfoldings
-- Worker wrappers introduce unstable names for functions that might have
-- blackboxes attached for them. You can disable this, but be sure to add
-- a no-specialize pragma to every function with a blackbox.
-fno-worker-wrapper
build-depends:
base >= 4.15 && < 4.16,
Cabal,
template-haskell,
containers >= 0.6 && < 0.7,
megaparsec >= 9.2.2 && < 9.3,
unordered-containers >= 0.2 && < 0.3,
haskell-src-meta >= 0.8 && < 0.9,
haskell-src-exts >= 1.23 && < 1.24,
pretty >= 1.1 && < 1.2,
mtl >= 2.2 && < 2.3,
lens >= 5.0.1 && < 5.1,
keys >= 3.12 && < 3.13,
-- clash-prelude will set suitable version bounds for the plugins
clash-prelude >= 1.6.4 && < 1.7,
ghc-typelits-natnormalise,
ghc-typelits-extra,
ghc-typelits-knownnat
custom-setup
setup-depends:
base >= 4.11 && <5,
Cabal >= 2.4,
cabal-doctest >= 1.0.1 && <1.1
library
import: common-options
hs-source-dirs: src
exposed-modules:
FSM,
FSM.Desc,
FSM.DescGenADT,
FSM.FreeVars,
FSM.Lang,
FSM.LangQ,
FSM.Lang2Desc,
FSM.LangParser,
FSM.LangPretty,
FSM.LangProcess
other-modules:
FSM.Process.TestFreshness
FSM.Process.DesugarLoops
FSM.Process.DesugarOutputs
FSM.Process.IntegrateCase
FSM.Process.ArgumentPropagation
FSM.Process.CleanUnusedConts
FSM.Process.CleanUnusedArgs
FSM.Process.CleanUnusedConstructors
FSM.Process.FlattenTuples
FSM.Process.DesugarMagicPrimes
FSM.Process.StackReify
FSM.Process.CallGraph
FSM.Process.ReturningFuns
FSM.Process.RefreshFunctions
FSM.Process.RefreshVars
FSM.Process.Normalization
FSM.Process.MakeLocalVars
FSM.Process.RemoveEpsilon
FSM.Process.LambdaLift
FSM.Process.FoldInit
FSM.Process.TailCallSCC
FSM.Process.SimplifyCase
FSM.Process.HoistFromConstructors
FSM.Process.DeduplicateArgs
FSM.Util.MonadRefresh
FSM.Util.MonadUnique
FSM.Util.MultiSet
FSM.Util.SetClass
FSM.Util.MMaybe
FSM.Util.Qlift
default-language: Haskell2010
-- Builds the executable 'clash', with yieldfsm project in scope
executable clash
main-is: bin/Clash.hs
default-language: Haskell2010
Build-Depends: base, clash-ghc, yieldfsm
if !os(Windows)
ghc-options: -dynamic
-- Builds the executable 'clashi', with yieldfsm project in scope
executable clashi
main-is: bin/Clashi.hs
default-language: Haskell2010
if !os(Windows)
ghc-options: -dynamic
build-depends: base, clash-ghc, yieldfsm
-- test-suite doctests
-- import: common-options
-- type: exitcode-stdio-1.0
-- default-language: Haskell2010
-- main-is: doctests.hs
-- hs-source-dirs: tests
--
-- build-depends:
-- base,
-- yieldfsm,
-- process,
-- doctest >= 0.16.1 && < 0.18
--
test-suite test-library
import: common-options
default-language: Haskell2010
hs-source-dirs: tests
type: exitcode-stdio-1.0
ghc-options: -threaded
main-is: unittests.hs
other-modules:
IntersectionModel
IntersectionTest
build-depends:
yieldfsm,
QuickCheck,
hedgehog,
tasty >= 1.2 && < 1.5,
tasty-hedgehog,
tasty-hunit,
tasty-th