Skip to content

Commit

Permalink
Merge pull request #818 from avh4/update-dependencies
Browse files Browse the repository at this point in the history
Update to GHC 9.4.4
  • Loading branch information
avh4 authored Apr 13, 2023
2 parents af3f182 + 55557eb commit c99aa91
Show file tree
Hide file tree
Showing 20 changed files with 162 additions and 125 deletions.
4 changes: 2 additions & 2 deletions .github/actions/haskell/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ runs:
name: Setup Haskell
id: setup-haskell
with:
ghc-version: 9.2.5
ghc-version: 9.4.4
- name: Verify Haskell version
shell: bash
run: |
cabal --version
ghc --version
[[ $(ghc --numeric-version) == 9.2.5 ]]
[[ $(ghc --numeric-version) == 9.4.4 ]]
file "$(which cabal)"
file "$(which ghc)"
- name: Cache ~/.cabal/store
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Build release (lamdera-community).yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runner: [ self-hosted, macOS, ARM64 ]
archive-label: macOS-arm64
ghc:
version: "9.2.5"
version: "9.4.4"
build-platform: aarch64-apple-darwin

name: release-${{ matrix.build.name }}
Expand Down
4 changes: 2 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ tasks:
init: |
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh
source "$GHCUP_INSTALL_BASE_PREFIX/.ghcup/env"
ghcup install ghc 9.2.5
ghcup set ghc 9.2.5
ghcup install ghc 9.4.4
ghcup set ghc 9.4.4
ghcup install cabal
cabal update
./dev/build.sh
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:latest as build

ENV GHC_VERSION 9.2.5
ENV GHC_VERSION 9.4.4

ENV LANG C.UTF-8

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ git clone https://github.com/avh4/elm-format.git
cd elm-format
# initial setup
ghcup install ghc 9.2.5
ghcup set ghc 9.2.5
ghcup install ghc 9.4.4
ghcup set ghc 9.4.4
cabal install hpack
# build
Expand Down
2 changes: 1 addition & 1 deletion Shakefile/src/Shakefiles/Haskell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ cabalProject name sourceFiles sourcePatterns deps testPatterns testDeps =
cabalBuildDir :: String -> Action FilePath
cabalBuildDir projectName = do
version <- readFile' ("_build/cabal" </> projectName </> "version")
return $ "dist-newstyle" </> "build" </> Shakefiles.Platform.cabalInstallOs </> "ghc-9.2.5" </> projectName ++ "-" ++ version
return $ "dist-newstyle" </> "build" </> Shakefiles.Platform.cabalInstallOs </> "ghc-9.4.4" </> projectName ++ "-" ++ version


executable :: String -> String -> String -> Rules ()
Expand Down
8 changes: 4 additions & 4 deletions Shakefile/src/Shakefiles/Haskell/Hpc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ mergeTixFiles tixs out = do
rules :: String -> Rules ()
rules gitSha = do
let hpcConfig =
[ "--hpcdir=./dist-newstyle/_coverage/build/x86_64-linux/ghc-9.2.5/elm-format-0.8.7/hpc/vanilla/mix/elm-format"
, "--hpcdir=./dist-newstyle/_coverage/build/x86_64-linux/ghc-9.2.5/avh4-lib-0.0.0.1/hpc/vanilla/mix/avh4-lib-0.0.0.1"
, "--hpcdir=./dist-newstyle/_coverage/build/x86_64-linux/ghc-9.2.5/elm-format-lib-0.0.0.1/hpc/vanilla/mix/elm-format-lib-0.0.0.1"
, "--hpcdir=./dist-newstyle/_coverage/build/x86_64-linux/ghc-9.2.5/elm-format-markdown-0.0.0.1/hpc/vanilla/mix/elm-format-markdown-0.0.0.1"
[ "--hpcdir=./dist-newstyle/_coverage/build/x86_64-linux/ghc-9.4.4/elm-format-0.8.7/hpc/vanilla/mix/elm-format"
, "--hpcdir=./dist-newstyle/_coverage/build/x86_64-linux/ghc-9.4.4/avh4-lib-0.0.0.1/hpc/vanilla/mix/avh4-lib-0.0.0.1"
, "--hpcdir=./dist-newstyle/_coverage/build/x86_64-linux/ghc-9.4.4/elm-format-lib-0.0.0.1/hpc/vanilla/mix/elm-format-lib-0.0.0.1"
, "--hpcdir=./dist-newstyle/_coverage/build/x86_64-linux/ghc-9.4.4/elm-format-markdown-0.0.0.1/hpc/vanilla/mix/elm-format-markdown-0.0.0.1"
, "--srcdir=."
, "--srcdir=avh4-lib"
, "--srcdir=elm-format-lib"
Expand Down
7 changes: 3 additions & 4 deletions avh4-lib/avh4-lib.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2

-- This file has been generated from package.yaml by hpack version 0.35.1.
-- This file has been generated from package.yaml by hpack version 0.35.2.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -49,7 +49,7 @@ library
, mtl >=2.2.2 && <3
, pooled-io >=0.0.2 && <0.1
, process >=1.6.13.2 && <2
, relude >=1.1.0.0 && <1.2
, relude >=1.1.0.0 && <1.3
, text >=2.0 && <3
default-language: Haskell2010

Expand Down Expand Up @@ -94,9 +94,8 @@ test-suite al-tests
, mtl >=2.2.2 && <3
, pooled-io >=0.0.2 && <0.1
, process >=1.6.13.2 && <2
, relude >=1.1.0.0 && <1.2
, relude >=1.1.0.0 && <1.3
, tasty >=1.2 && <2
, tasty-hspec >=1.2.0.1 && <1.3
, tasty-hunit >=0.10.0.1 && <0.11
, text >=2.0 && <3
default-language: Haskell2010
3 changes: 1 addition & 2 deletions avh4-lib/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies:
mtl: ">= 2.2.2 && < 3"
pooled-io: ">= 0.0.2 && < 0.1"
process: ">= 1.6.13.2 && < 2"
relude: ">= 1.1.0.0 && < 1.2"
relude: ">= 1.1.0.0 && < 1.3"
text: ">= 2.0 && < 3"


Expand All @@ -52,7 +52,6 @@ tests:

dependencies:
tasty: ">= 1.2 && < 2"
tasty-hspec: ">= 1.2.0.1 && < 1.3"
tasty-hunit: ">= 0.10.0.1 && < 0.11"

build-tools:
Expand Down
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ packages:
./elm-format-test-lib,
./
./Shakefile
with-compiler: ghc-9.2.5
with-compiler: ghc-9.4.4

constraints:
-- ansi-terminal-0.11.1 has issues with Win32-2.10.* (which is packaged with ghc-9.0)
Expand Down
62 changes: 35 additions & 27 deletions cabal.project.freeze
Original file line number Diff line number Diff line change
Expand Up @@ -4,67 +4,71 @@ constraints: any.Glob ==0.10.2,
any.OneTuple ==0.3.1,
any.QuickCheck ==2.14.2,
any.StateVar ==1.2.2,
any.aeson ==2.1.1.0,
any.aeson ==2.1.2.1,
any.ansi-terminal ==0.11,
ansi-terminal -example,
any.ansi-wl-pprint ==0.6.9,
ansi-wl-pprint -example,
any.array ==0.5.4.0,
any.assoc ==1.0.2,
any.attoparsec ==0.14.4,
any.base ==4.16.4.0,
any.base ==4.17.0.0,
any.base-compat ==0.12.2,
any.base-compat-batteries ==0.12.2,
any.base-orphans ==0.8.7,
any.bifunctors ==5.5.14,
any.base-orphans ==0.8.8.2,
any.bifunctors ==5.5.15,
any.bimap ==0.5.0,
any.binary ==0.8.9.0,
any.binary ==0.8.9.1,
any.bytestring ==0.11.3.1,
any.call-stack ==0.4.0,
any.clock ==0.8.3,
any.colour ==2.3.6,
any.comonad ==5.0.8,
any.concurrent-split ==0.0.1.1,
any.containers ==0.6.5.1,
any.conduit ==1.3.4.3,
any.containers ==0.6.6,
any.contravariant ==1.5.5,
any.data-fix ==0.3.2,
any.deepseq ==1.4.6.1,
any.directory ==1.3.6.2,
any.deepseq ==1.4.8.0,
any.directory ==1.3.7.1,
any.distributive ==0.6.2.1,
any.dlist ==1.0,
any.exceptions ==0.10.4,
any.exceptions ==0.10.5,
any.extra ==1.7.12,
any.filepath ==1.4.2.2,
any.filepattern ==0.1.3,
any.generically ==0.1,
any.ghc-bignum ==1.2,
any.ghc-boot-th ==9.2.5,
any.ghc-prim ==0.8.0,
any.hashable ==1.4.1.0,
any.generically ==0.1.1,
any.ghc-bignum ==1.3,
any.ghc-boot-th ==9.4.4,
any.ghc-prim ==0.9.0,
any.hashable ==1.4.2.0,
any.haskell-lexer ==1.1.1,
any.heaps ==0.4,
any.hspec ==2.10.10,
any.hspec-core ==2.10.10,
any.hspec-discover ==2.10.10,
any.hspec-expectations ==0.8.2,
any.hspec-golden ==0.2.0.1,
any.indexed-traversable ==0.1.2,
any.indexed-traversable-instances ==0.1.1.1,
any.indexed-traversable ==0.1.2.1,
any.indexed-traversable-instances ==0.1.1.2,
any.integer-logarithms ==1.0.3.1,
any.js-dgtable ==0.5.2,
any.js-flot ==0.8.3,
any.js-jquery ==3.3.1,
any.libyaml ==0.1.2,
any.logict ==0.8.0.0,
any.mono-traversable ==1.0.15.3,
any.mtl ==2.2.2,
any.optparse-applicative ==0.17.0.0,
optparse-applicative +process,
any.pooled-io ==0.0.2.2,
any.pooled-io ==0.0.2.3,
any.pretty ==1.1.3.6,
any.primitive ==0.7.3.0,
any.primitive ==0.7.4.0,
any.process ==1.6.16.0,
any.quickcheck-io ==0.2.0,
any.random ==1.2.1.1,
any.relude ==1.1.0.0,
any.relude ==1.2.0.0,
any.resourcet ==1.2.6,
any.rts ==1.0.2,
any.scientific ==0.3.7.0,
any.semialign ==1.2.0.1,
Expand All @@ -74,8 +78,9 @@ constraints: any.Glob ==0.10.2,
any.smallcheck ==1.2.1,
any.split ==0.2.3.5,
any.splitmix ==0.1.0.4,
any.stm ==2.5.0.2,
any.stm ==2.5.1.0,
any.strict ==0.4.0.1,
any.system-cxx-std-lib ==1.0,
any.tagged ==0.8.6.1,
any.tasty ==1.4.3,
tasty +unix,
Expand All @@ -84,22 +89,25 @@ constraints: any.Glob ==0.10.2,
any.tasty-hunit ==0.10.0.3,
any.tasty-quickcheck ==0.10.2,
any.tasty-smallcheck ==0.8.2,
any.template-haskell ==2.18.0.0,
any.text ==2.0.1,
any.template-haskell ==2.19.0.0,
any.text ==2.0.2,
any.text-short ==0.1.5,
any.tf-random ==0.5,
any.th-abstraction ==0.4.5.0,
any.th-abstraction ==0.5.0.0,
any.these ==1.1.1.1,
any.time ==1.11.1.1,
any.time ==1.12.2,
any.time-compat ==1.9.6.1,
any.transformers ==0.5.6.2,
any.transformers-compat ==0.7.2,
any.unix ==2.7.2.2,
any.unix ==2.7.3,
any.unliftio-core ==0.2.1.0,
any.unordered-containers ==0.2.19.1,
any.unsafe ==0.0,
any.utf8-string ==1.0.2,
any.utility-ht ==0.0.16,
any.uuid-types ==1.0.5,
any.vector ==0.12.3.1,
any.witherable ==0.4.2
index-state: hackage.haskell.org 2023-03-08T17:09:46Z
any.vector-algorithms ==0.8.0.4,
any.witherable ==0.4.2,
any.yaml ==0.11.11.0
index-state: hackage.haskell.org 2023-04-12T20:00:51Z
19 changes: 9 additions & 10 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ sources ? import ./nix/sources.nix, compiler ? "ghc925" }:
{ sources ? import ./nix/sources.nix, compiler ? "ghc944" }:

let
gitignore = import sources."gitignore.nix" { };
Expand All @@ -7,8 +7,8 @@ let
haskellPackageOverrides = pkgs: self: super:
with pkgs.haskell.lib; rec {
hedgehog = self.hedgehog_1_2;
relude = overrideCabal super.relude (orig: { doCheck = false; });
text = self.text_2_0_1;
relude = overrideCabal super.relude_1_2_0_0 (orig: { doCheck = false; });
text = self.text_2_0_2;
unordered-containers =
overrideCabal super.unordered-containers (orig: { doCheck = false; });
};
Expand All @@ -18,8 +18,8 @@ let
let
inherit (pkgs) lib;

aeson = self.aeson_2_1_1_0;
text = self.text_2_0_1;
aeson = self.aeson_2_1_2_1;
text = self.text_2_0_2;

mkPkg = name: path: args:
overrideCabal (self.callCabal2nix name path args) (orig: {
Expand Down Expand Up @@ -51,9 +51,8 @@ let
avh4-lib = mkPkg "avh4-lib" ./avh4-lib { inherit text; };
elm-format-lib =
mkPkg "elm-format-lib" ./elm-format-lib { inherit aeson text; };
elm-format-test-lib = mkPkg "elm-format-test-lib" ./elm-format-test-lib {
inherit text;
};
elm-format-test-lib =
mkPkg "elm-format-test-lib" ./elm-format-test-lib { inherit text; };
elm-format-markdown =
mkPkg "elm-format-markdown" ./elm-format-markdown { inherit text; };
};
Expand Down Expand Up @@ -81,9 +80,9 @@ let
# This is the haskell package set that includes elm-format and all its dependencies
haskellPackages = mkHaskellPackages pkgs;

# This is a haskell package set for the same ghc version that does not have any package overries
# This is a haskell package set for the same ghc version that does not have our project package overries
# (Because our override aren't compatible with haskell-language-server, etc)
haskellTools = pkgs.haskell.packages."${compiler}";
haskellTools = import ./nix/tools.nix { inherit sources compiler; };
in {
elm-format = haskellPackages.elm-format;
dist = {
Expand Down
6 changes: 3 additions & 3 deletions elm-format-lib/elm-format-lib.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2

-- This file has been generated from package.yaml by hpack version 0.35.1.
-- This file has been generated from package.yaml by hpack version 0.35.2.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -99,7 +99,7 @@ library
, elm-format-markdown
, mtl >=2.2.2 && <3
, optparse-applicative >=0.17.0.0 && <0.18
, relude >=1.1.0.0 && <1.2
, relude >=1.1.0.0 && <1.3
, text >=2.0 && <3
default-language: Haskell2010

Expand Down Expand Up @@ -206,7 +206,7 @@ test-suite efl-tests
, hspec >=2.7.4 && <3
, mtl >=2.2.2 && <3
, optparse-applicative >=0.17.0.0 && <0.18
, relude >=1.1.0.0 && <1.2
, relude >=1.1.0.0 && <1.3
, split >=0.2.3.4 && <0.3
, tasty >=1.2 && <2
, tasty-hspec >=1.2.0.1 && <1.3
Expand Down
2 changes: 1 addition & 1 deletion elm-format-lib/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies:
containers: ">= 0.6.5.1 && < 0.7"
mtl: ">= 2.2.2 && < 3"
optparse-applicative: ">= 0.17.0.0 && < 0.18"
relude: ">= 1.1.0.0 && < 1.2"
relude: ">= 1.1.0.0 && < 1.3"
text: ">= 2.0 && < 3"
avh4-lib: {}
elm-format-markdown: {}
Expand Down
6 changes: 3 additions & 3 deletions elm-format.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2

-- This file has been generated from package.yaml by hpack version 0.35.1.
-- This file has been generated from package.yaml by hpack version 0.35.2.
--
-- see: https://github.com/sol/hpack

Expand Down Expand Up @@ -53,7 +53,7 @@ executable elm-format
, bytestring >=0.11.3.0 && <0.12
, elm-format-lib
, optparse-applicative >=0.17.0.0 && <0.18
, relude >=1.1.0.0 && <1.2
, relude >=1.1.0.0 && <1.3
, text >=2.0 && <3
default-language: Haskell2010

Expand Down Expand Up @@ -96,7 +96,7 @@ test-suite elm-format-tests
, hspec >=2.7.4 && <3
, optparse-applicative >=0.17.0.0 && <0.18
, quickcheck-io >=0.2.0 && <0.3
, relude >=1.1.0.0 && <1.2
, relude >=1.1.0.0 && <1.3
, tasty >=1.2 && <2
, tasty-hspec >=1.2.0.1 && <1.3
, tasty-hunit >=0.10.0.1 && <0.11
Expand Down
6 changes: 3 additions & 3 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"homepage": "",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3954218cf613eba8e0dcefa9abe337d26bc48fd0",
"sha256": "0bagqy53mknghz112swzb7zyjc07kfvam2wmc919bq0jxv8vj2i6",
"rev": "6b70761ea8c896aff8994eb367d9526686501860",
"sha256": "08np8p4h040jq4p2jlps99z38lhwg3yr2q64dqh8rbhq1kx6jzpm",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/3954218cf613eba8e0dcefa9abe337d26bc48fd0.tar.gz",
"url": "https://github.com/NixOS/nixpkgs/archive/6b70761ea8c896aff8994eb367d9526686501860.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}
Loading

0 comments on commit c99aa91

Please sign in to comment.