Skip to content

Commit

Permalink
chore: bump Nix dependencies & bump to GHC 9.6.2
Browse files Browse the repository at this point in the history
Signed-off-by: Drew Hess <[email protected]>
  • Loading branch information
dhess committed Aug 16, 2023
1 parent 93ece25 commit 9eef3da
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 61 deletions.
20 changes: 12 additions & 8 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
index-state: 2023-07-30T00:00:00Z
index-state: 2023-08-16T00:00:00Z

packages:
primer
Expand All @@ -22,17 +22,21 @@ 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.
-- Temporary during GHC 9.6 transition.
allow-newer: *:*

-- 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
90 changes: 45 additions & 45 deletions flake.lock

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

4 changes: 2 additions & 2 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
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
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: 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

0 comments on commit 9eef3da

Please sign in to comment.