Skip to content

Commit

Permalink
chore: bump to GHC 9.6.2 (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhess committed Aug 23, 2023
2 parents 2406c9a + aaebc1a commit 2c1206b
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 26 deletions.
15 changes: 8 additions & 7 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ package primer-api
package primer-service
test-options: "--size-cutoff=32768"

-- We need a newer version of Selda than what's been released to Hackage.
-- We need a newer version of Selda than what's been released to
-- Hackage, plus some GHC 9.6 fixes from a community fork.
source-repository-package
type: git
location: https://github.com/valderman/selda.git
tag: ab9619db13b93867d1a244441bb4de03d3e1dadb
location: https://github.com/guibou/selda
tag: 54c12169ce8cd46a7b3c698f65cea55e41a13fe6
subdir: selda
--sha256: 0rdpazkhx6wfxlf6izg9xzxjr9wqywzqmk0c2a23qyfvih0ylj9z
--sha256: 0q8m8asmb83mpa3j3adlrhc446xif7gv6lql20gv05k33lmbjfhg

source-repository-package
type: git
location: https://github.com/valderman/selda.git
tag: ab9619db13b93867d1a244441bb4de03d3e1dadb
location: https://github.com/guibou/selda
tag: 54c12169ce8cd46a7b3c698f65cea55e41a13fe6
subdir: selda-sqlite
--sha256: 0rdpazkhx6wfxlf6izg9xzxjr9wqywzqmk0c2a23qyfvih0ylj9z
--sha256: 0q8m8asmb83mpa3j3adlrhc446xif7gv6lql20gv05k33lmbjfhg
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
in
builtins.trace "Nix Primer version is ${v}" "git-${v}";

ghcVersion = "ghc945";
ghcVersion = "ghc962";

# We must keep the weeder version in sync with the version of
# GHC we're using.
weederVersion = "2.5.0";
weederVersion = "2.6.0";

# Fourmolu updates often alter formatting arbitrarily, and we want to
# have more control over this.
Expand Down Expand Up @@ -243,7 +243,9 @@
// primerFlake.packages;

checks = {
inherit weeder openapi-validate;
# Disabled, as it doesn't currently build with Nix.
#inherit weeder;
inherit openapi-validate;
inherit primer-sqitch-test-sqlite;
}

Expand Down Expand Up @@ -464,7 +466,8 @@
cabal = "latest";
hlint = "latest";

weeder = weederVersion;
# Disabled, as it doesn't currently build with Nix.
#weeder = weederVersion;

fourmolu = fourmoluVersion;

Expand Down
2 changes: 1 addition & 1 deletion primer-api/primer-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ library
-Wmissing-deriving-strategies -fhide-source-paths

build-depends:
, base >=4.12 && <4.18
, base >=4.12 && <4.19
, containers >=0.6.0.1 && <0.7.0
, deriving-aeson >=0.2 && <0.3.0
, extra >=1.7.10 && <1.8.0
Expand Down
4 changes: 4 additions & 0 deletions primer-api/src/Primer/API.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}

-- Temporary workaround for GHC 9.6:
-- https://gitlab.haskell.org/ghc/ghc/-/issues/23143
{-# OPTIONS -Wno-redundant-constraints #-}

-- | The Primer API.
--
-- This module defines the Primer API, which is collection of
Expand Down
4 changes: 4 additions & 0 deletions primer-api/test/Tests/Database.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}

-- Temporary workaround for GHC 9.6:
-- https://gitlab.haskell.org/ghc/ghc/-/issues/23143
{-# OPTIONS -Wno-redundant-constraints #-}

module Tests.Database where

import Foreword
Expand Down
2 changes: 1 addition & 1 deletion primer-benchmark/primer-benchmark.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ library
exposed-modules: Benchmarks
build-depends:
, aeson >=2.0 && <2.2
, base >=4.12 && <4.18
, base >=4.12 && <4.19
, containers >=0.6.0.1 && <0.7.0
, criterion ^>=1.6.0.0
, deepseq ^>=1.4.6.1
Expand Down
2 changes: 1 addition & 1 deletion primer-selda/primer-selda.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ library

build-depends:
, aeson >=2.0 && <2.2
, base >=4.12 && <4.18
, base >=4.12 && <4.19
, bytestring >=0.10.8.2 && <0.12.0
, containers >=0.6.0.1 && <0.7.0
, logging-effect ^>=1.4
Expand Down
4 changes: 4 additions & 0 deletions primer-selda/src/Primer/Database/Selda/SQLite.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{-# LANGUAGE OverloadedLabels #-}
{-# LANGUAGE UndecidableInstances #-}

-- Temporary workaround for GHC 9.6:
-- https://gitlab.haskell.org/ghc/ghc/-/issues/23143
{-# OPTIONS -Wno-redundant-constraints #-}

module Primer.Database.Selda.SQLite (
-- * The "Database.Selda.SQLite" database adapter.
MonadSeldaSQLiteDb,
Expand Down
4 changes: 2 additions & 2 deletions primer-service/primer-service.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ library

build-depends:
, aeson >=2.0 && <2.2
, base >=4.12 && <4.18
, base >=4.12 && <4.19
, containers >=0.6.0.1 && <0.7
, deriving-aeson >=0.2 && <0.3.0
, exceptions >=0.10.4 && <0.11.0
Expand Down Expand Up @@ -103,7 +103,7 @@ executable primer-service
, primer-api
, primer-selda ^>=0.7.2
, primer-service
, prometheus-client ^>=1.1.0
, prometheus-client ^>=1.1.1
, prometheus-metrics-ghc ^>=1.0.1.2
, stm
, stm-containers
Expand Down
2 changes: 1 addition & 1 deletion primer/primer.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ library
build-depends:
, aeson >=2.0 && <2.2
, assoc ^>=1.1
, base >=4.12 && <4.18
, base >=4.12 && <4.19
, containers >=0.6.0.1 && <0.7.0
, deriving-aeson >=0.2 && <0.3.0
, exceptions >=0.10.4 && <0.11.0
Expand Down
4 changes: 4 additions & 0 deletions primer/src/Primer/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ViewPatterns #-}

-- Temporary workaround for GHC 9.6:
-- https://gitlab.haskell.org/ghc/ghc/-/issues/23143
{-# OPTIONS -Wno-redundant-constraints #-}

-- This module defines the high level application functions.

module Primer.App (
Expand Down
4 changes: 4 additions & 0 deletions primer/src/Primer/Database.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE OverloadedLabels #-}

-- Temporary workaround for GHC 9.6:
-- https://gitlab.haskell.org/ghc/ghc/-/issues/23143
{-# OPTIONS -Wno-redundant-constraints #-}

module Primer.Database (
SessionId,
-- 'SessionName' is abstract. Do not export its constructors.
Expand Down
4 changes: 4 additions & 0 deletions primer/test/Tests/Database.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}

-- Temporary workaround for GHC 9.6:
-- https://gitlab.haskell.org/ghc/ghc/-/issues/23143
{-# OPTIONS -Wno-redundant-constraints #-}

module Tests.Database where

import Foreword
Expand Down

1 comment on commit 2c1206b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Primer benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 2c1206b Previous: 2406c9a Ratio
typecheck/mapOddPrim 100: outlier variance 0.49433407399646767 outlier variance 0.15738852492216354 outlier variance 3.14

This comment was automatically generated by workflow using github-action-benchmark.

CC: @dhess

Please sign in to comment.