Skip to content

Commit

Permalink
Add stack.yaml (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan committed Jan 18, 2019
2 parents 0c393fd + 5c4082f commit 949a05a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clash-cosim
11 changes: 7 additions & 4 deletions clash-ghc/clash-ghc.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ executable clashi

library
HS-Source-Dirs: src-ghc
-- when we move to `cabal-version: 2.2`, we can use elif instead of these nested ifs, but ghc-8.2 comes with cabal-2.0
if impl(ghc >= 8.6.0)
HS-Source-Dirs: src-bin-861
if impl(ghc >= 8.4.1)
HS-Source-Dirs: src-bin-841
if impl(ghc >= 8.2.1)
HS-Source-Dirs: src-bin-821
else
if impl(ghc >= 8.4.1)
HS-Source-Dirs: src-bin-841
else
if impl(ghc >= 8.2.1)
HS-Source-Dirs: src-bin-821

default-language: Haskell2010
GHC-Options: -Wall -fno-warn-name-shadowing
Expand Down
2 changes: 1 addition & 1 deletion clash-lib/clash-lib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Library
filepath >= 1.3.0.1 && < 1.5,
ghc >= 8.2.0 && < 8.8,
hashable >= 1.2.1.0 && < 1.3,
hint >= 0.7 && < 0.9,
hint >= 0.7 && < 0.10,
integer-gmp >= 1.0 && < 1.1,
lens >= 3.9.2 && < 4.18,
mtl >= 2.1.2 && < 2.3,
Expand Down
2 changes: 1 addition & 1 deletion clash-prelude/clash-prelude.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Library
hashable >= 1.2.1.0 && < 1.3,
half >= 0.2.2.3 && < 1.0,
lens >= 4.9 && < 4.18,
QuickCheck >= 2.7 && < 2.12,
QuickCheck >= 2.7 && < 2.13,
reflection >= 2 && < 2.2,
singletons >= 1.0 && < 3.0,
template-haskell >= 2.12.0.0 && < 2.15,
Expand Down
10 changes: 10 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
resolver: lts-13.3

packages:
- clash-prelude
- clash-lib
- clash-ghc
# - testsuite # still uses cabal new-build internally

extra-deps:
- ./clash-cosim

0 comments on commit 949a05a

Please sign in to comment.