From 668c888d364942042e60ec6a82a16960f6eb48e8 Mon Sep 17 00:00:00 2001 From: Lucas Bollen Date: Tue, 6 Aug 2024 12:07:23 +0200 Subject: [PATCH] Downgrade GHC from 9.4.8 to 9.4.7 9.4.8 throws a slow start error: https://github.com/clash-lang/clash-compiler/pull/2711/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R80 --- cabal.project | 4 ++-- cabal.project.freeze | 20 +++++++++----------- shell.nix | 5 ++++- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/cabal.project b/cabal.project index 917a2475e..14f1fbaa8 100644 --- a/cabal.project +++ b/cabal.project @@ -14,8 +14,8 @@ 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-12-05T05:33:28Z -with-compiler: ghc-9.4.8 +index-state: 2024-08-06T03:18:13Z +with-compiler: ghc-9.4.7 tests: True package bittide diff --git a/cabal.project.freeze b/cabal.project.freeze index aef5e03b3..b2f47b35e 100644 --- a/cabal.project.freeze +++ b/cabal.project.freeze @@ -33,7 +33,7 @@ constraints: any.Cabal ==3.8.1.0, attoparsec -developer, any.attoparsec-aeson ==2.2.0.1, any.barbies ==2.0.5.0, - any.base ==4.17.2.1, + any.base ==4.17.2.0, any.base-compat ==0.13.1, any.base-orphans ==0.9.1, any.base16-bytestring ==1.0.2.0, @@ -50,7 +50,7 @@ constraints: any.Cabal ==3.8.1.0, any.boring ==0.2.1, boring +tagged, any.byteorder ==1.0.4, - any.bytestring ==0.11.5.3, + any.bytestring ==0.11.5.2, any.cabal-doctest ==1.0.9, any.call-stack ==0.4.0, any.case-insensitive ==1.2.1.0, @@ -69,7 +69,7 @@ constraints: any.Cabal ==3.8.1.0, any.clash-lib ==1.9.0, clash-lib -debug +doctests +unittests -workaround-ghc-mmap-crash, any.clash-prelude ==1.9.0, - clash-prelude +benchmarks +doctests -large-tuples -multiple-hidden -strict-mapsignal -super-strict +unittests -workaround-ghc-mmap-crash, + clash-prelude +benchmarks +doctests -large-tuples -strict-mapsignal -super-strict +unittests -workaround-ghc-mmap-crash, any.clash-prelude-hedgehog ==1.9.0, any.clash-protocols ==0.1, clash-protocols -ci -large-tuples, @@ -129,11 +129,11 @@ constraints: any.Cabal ==3.8.1.0, foldable1-classes-compat +tagged, any.free ==5.2, any.generically ==0.1.1, - any.ghc ==9.4.8, + any.ghc ==9.4.7, any.ghc-bignum ==1.3, - any.ghc-boot ==9.4.8, - any.ghc-boot-th ==9.4.8, - any.ghc-heap ==9.4.8, + any.ghc-boot ==9.4.7, + any.ghc-boot-th ==9.4.7, + any.ghc-heap ==9.4.7, any.ghc-paths ==0.1.0.12, any.ghc-prim ==0.9.1, any.ghc-tcplugins-extra ==0.4.5, @@ -144,7 +144,7 @@ constraints: any.Cabal ==3.8.1.0, ghc-typelits-knownnat -deverror, any.ghc-typelits-natnormalise ==0.7.9, ghc-typelits-natnormalise -deverror, - any.ghci ==9.4.8, + any.ghci ==9.4.7, any.half ==0.3.1, any.happy ==1.20.1.1, any.happy-dot ==1.0.0.0, @@ -221,7 +221,7 @@ constraints: any.Cabal ==3.8.1.0, any.prettyprinter-ansi-terminal ==1.1.3, any.prettyprinter-interp ==0.2.0.0, any.primitive ==0.8.0.0, - any.process ==1.6.18.0, + any.process ==1.6.17.0, any.profunctors ==5.6.2, any.random ==1.2.1.1, any.recursion-schemes ==5.2.2.5, @@ -261,8 +261,6 @@ constraints: any.Cabal ==3.8.1.0, any.strict-tuple ==0.1.5.3, any.string-interpolate ==0.3.2.1, string-interpolate -bytestring-builder -extended-benchmarks -text-builder, - any.stringsearch ==0.3.6.6, - stringsearch -base3 +base4, any.syb ==0.7.2.4, any.tagged ==0.8.8, tagged +deepseq +transformers, diff --git a/shell.nix b/shell.nix index 702437952..18a999506 100644 --- a/shell.nix +++ b/shell.nix @@ -17,7 +17,10 @@ pkgs.mkShell { pkgs.haskellPackages.cabal-gild pkgs.dtc pkgs.gcc - pkgs.haskell.compiler.ghc94 + + # Clash throws an error on 9.4.8 to 9.6.2 + # See https://github.com/clash-lang/clash-compiler/pull/2711/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R80 + pkgs.haskell.compiler.ghc947 pkgs.pkg-config pkgs.python311Full pkgs.python311Packages.matplotlib