-
Notifications
You must be signed in to change notification settings - Fork 154
/
cabal.project
94 lines (78 loc) · 2.8 KB
/
cabal.project
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
-- there are no top level packages. any package can be checked out under the
-- root directory (i.e. patched copies, or forks) and will automatically be
-- preferred by the solver over other versions.
packages:
./clash-ffi
./clash-ghc
./clash-lib
./clash-lib-hedgehog
./clash-prelude
./clash-prelude-hedgehog
./clash-cores
./tests
write-ghc-environment-files: always
-- index state, to go along with the cabal.project.freeze file. update the index
-- state by running `cabal update` twice and looking at the index state it
-- displays to you (as the second update will be a no-op)
index-state: 2024-07-18T12:39:16Z
-- For some reason the `clash-testsuite` executable fails to run without
-- this, as it cannot find the related library...
tests: True
package clash-ghc
ghc-options: +RTS -qn4 -A128M -RTS -j4
executable-dynamic: True
package clash-prelude
ghc-options: +RTS -qn4 -A128M -RTS -j4
-- workaround for plugins not loading in Haddock with GHC-8.6
haddock-options: --optghc=-fdefer-type-errors
-- Workaround for Haddock/CPP #if issues https://github.com/haskell/haddock/issues/1382
haddock-options: --optghc="-optP -P"
-- Don't pollute docs with 1024 SNat literals
haddock-options: --optghc=-DHADDOCK_ONLY
-- Tweak haddock stylesheet to enable word wrapping of types.
-- We specify the default Linuwial theme as an alnernate
-- so we're able to import its css file from the custom theme.
haddock-options: --theme=doc/linuwial-wrap-types.css --theme=Linuwial
package clash-testsuite
flags: +cosim
package clash-lib
ghc-options: +RTS -qn4 -A128M -RTS -j4
flags: +debug
package clash-cores
-- Tweak haddock stylesheet to enable word wrapping of types.
-- We specify the default Linuwial theme as an alnernate
-- so we're able to import its css file from the custom theme.
haddock-options: --theme=doc/linuwial-wrap-types.css --theme=Linuwial
ghc-options: +RTS -qn4 -A128M -RTS -j4
package clash-benchmark
executable-dynamic: True
optional-packages:
./benchmark
./benchmark/profiling/prepare
./benchmark/profiling/run
./clash-cosim
./clash-term
allow-newer:
brick:base,
brick:deepseq,
hashable,
hedgehog-fakedata:hedgehog,
rewrite-inspector:binary,
rewrite-inspector:containers,
vty:deepseq,
derive-storable-plugin:ghc,
derive-storable-plugin:ghci,
string-random:text,
string-random:containers,
string-interpolate:template-haskell,
string-interpolate:text,
hint:ghc
-- Works around: https://github.com/recursion-schemes/recursion-schemes/issues/128. This
-- shouldn't harm (runtime) performance of Clash, as we only use recursion-schemes with
-- TemplateHaskell.
package recursion-schemes
optimization: 0
package regex-tdfa
optimization: 2
-- rewrite-inspector-0.1.0.11 uses brick-0.50 which doesn't compile with vty-6.0
constraints: vty < 6.0