-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathcabal.project
87 lines (71 loc) · 2.64 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
-- 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: 2023-11-10T13:47:13Z
-- 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
package clash-benchmark
executable-dynamic: True
optional-packages:
./benchmark
./benchmark/profiling/prepare
./benchmark/profiling/run
./clash-cosim
./clash-term
allow-newer:
brick:base,
vector-binary-instances:base,
cryptohash-sha256:base,
hashable,
haskell-src-meta:template-haskell,
string-interpolate:template-haskell,
string-interpolate:text,
tasty-hedgehog:tasty
-- 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