-
Notifications
You must be signed in to change notification settings - Fork 1
/
cache.cabal
96 lines (87 loc) · 2.43 KB
/
cache.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
cabal-version: 2.4
name: cache
version: 1.0.0
license: BSD-3-Clause
build-type: Simple
common common-options
default-extensions:
BangPatterns
BinaryLiterals
ConstraintKinds
DataKinds
DefaultSignatures
DeriveAnyClass
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveLift
DeriveTraversable
DerivingStrategies
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
-- 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
default-language: Haskell2010
library
import: common-options
build-depends: base < 5
, mtl
, containers
, lens
, clash-prelude
, ghc-typelits-natnormalise
, ghc-typelits-extra
, ghc-typelits-knownnat
hs-source-dirs: src
other-modules: Utils.Debug
exposed-modules: ICache.Types
, ICache.Cache
, ICache.Test
, DCacheAgent.Agent
, DCacheAgent.Types
, DCacheAgent.Logic
test-suite icache-test
hs-source-dirs: tests
type: exitcode-stdio-1.0
ghc-options: -threaded
main-is: Main.hs
other-modules:
build-depends: base < 5
, ghc-typelits-natnormalise
, ghc-typelits-extra
, ghc-typelits-knownnat
-- Tasty + Hedgedog for testing
, tasty
, tasty-expected-failure
, hedgehog
, tasty-hedgehog
, cache
default-language: Haskell2010