Skip to content

Commit 7f6c4bb

Browse files
authored
Merge pull request #1433 from Concordium/plt-ghc-9.10.2
Update to LTS 24.0, GHC 9.10.2
2 parents beecde8 + 9b91514 commit 7f6c4bb

File tree

73 files changed

+255
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+255
-244
lines changed

.github/workflows/build-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ jobs:
6868
- name: Download fourmolu
6969
uses: supplypike/setup-bin@v1
7070
with:
71-
uri: 'https://github.com/fourmolu/fourmolu/releases/download/v0.13.1.0/fourmolu-0.13.1.0-linux-x86_64'
71+
uri: 'https://github.com/fourmolu/fourmolu/releases/download/v0.18.0.0/fourmolu-0.18.0.0-linux-x86_64'
7272
name: 'fourmolu'
73-
version: '0.13.1.0'
73+
version: '0.18.0.0'
7474

7575
- name: Download hpack
7676
run: |
@@ -137,7 +137,7 @@ jobs:
137137
matrix:
138138
plan:
139139
- rust: 1.82
140-
ghc: 9.6.6
140+
ghc: 9.10.2
141141

142142
steps:
143143
- name: Remove unnecessary files

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ on:
2121

2222
env:
2323
UBUNTU_VERSION: '20.04'
24-
STATIC_LIBRARIES_IMAGE_TAG: 'rust-1.82_ghc-9.6.6-0'
24+
STATIC_LIBRARIES_IMAGE_TAG: 'rust-1.82_ghc-9.10.2'
2525
RUST_VERSION: '1.82'
26-
STACK_VERSION: '3.1.1'
26+
STACK_VERSION: '3.7.1'
2727
FLATBUFFERS_VERSION: '23.5.26'
28-
GHC_VERSION: '9.6.6'
28+
GHC_VERSION: '9.10.2'
2929
PROTOC_VERSION: '28.3'
3030
STATIC_NODE_BINARY_IMAGE_NAME: 'static-node-binaries'
3131
ARTIFACT_FILE_NAME: 'image'

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## Unreleased changes
44
- Add P8 -> P9 update.
55

6+
- Update GHC version to 9.10.2 (lts-24.0).
7+
68
## 9.0.6 (DevNet)
79

810
- Protocol-level tokens:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ dependencies must be pre-build, which is done automatically by the cabal setup
7474
script.
7575

7676
Code should be formatted using [`fourmolu`](https://github.com/fourmolu/fourmolu)
77-
version `0.13.1.0` and using the config `fourmolu.yaml` found in the project root.
77+
version `0.18.0.0` and using the config `fourmolu.yaml` found in the project root.
7878
The CI is setup to ensure the code follows this style.
7979

8080
To check the formatting locally run the following command from the project root:

concordium-consensus/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rustup default stable-x86_64-pc-windows-gnu
2929
```
3030

3131
### `user specified .o/.so/.DLL could not be loaded (addDLL: pthread or dependencies not loaded. (Win32 error 5)) whilst trying to load: (dynamic) pthread`
32-
Copy `%LOCALAPPDATA%\Programs\stack\x86_64-windows\ghc-9.6.6\mingw\bin\libwinpthread-1.dll` to `%LOCALAPPDATA%\Programs\stack\x86_64-windows\ghc-9.6.6\mingw\bin\pthread.dll`.
32+
Copy `%LOCALAPPDATA%\Programs\stack\x86_64-windows\ghc-9.10.2\mingw\bin\libwinpthread-1.dll` to `%LOCALAPPDATA%\Programs\stack\x86_64-windows\ghc-9.10.2\mingw\bin\pthread.dll`.
3333

3434
# The library and dependencies
3535

concordium-consensus/src-lib/Concordium/External/DryRun.hs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{-# LANGUAGE GADTs #-}
44
{-# LANGUAGE RankNTypes #-}
55
{-# LANGUAGE ScopedTypeVariables #-}
6+
{-# LANGUAGE TypeAbstractions #-}
67
{-# LANGUAGE TypeApplications #-}
78
{-# LANGUAGE TypeFamilies #-}
89

@@ -238,7 +239,8 @@ runWithEBlockStateContext mvr (EBlockStateContextV1 vc1 drs) operation = do
238239
mvr
239240

240241
-- | Handle that identifies a particular dry-run session.
241-
data DryRunHandle = forall finconf.
242+
data DryRunHandle
243+
= forall finconf.
242244
DryRunHandle
243245
{ -- | Wrap the multi-version runner from the consensus runner.
244246
drhMVR :: !(MultiVersionRunner finconf),
@@ -686,7 +688,9 @@ dryRunTransaction dryRunPtr senderPtr energyLimit payloadPtr payloadLen sigPairs
686688
key <- KeyIndex <$> peekByteOff sigPairs (2 * i + 1)
687689
addSigs (i + 1) $!
688690
m
689-
& at' cred . nonEmpty . at' key
691+
& at' cred
692+
. nonEmpty
693+
. at' key
690694
?~ Sig.dummySignatureEd25519
691695
| otherwise = return m
692696
addSigs 0 Map.empty

concordium-consensus/src/Concordium/Afgjort/CSS.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ module Concordium.Afgjort.CSS (
106106

107107
import Control.Monad
108108
import Control.Monad.RWS.Strict
109-
import Data.List (foldl')
110109
import Data.Map.Strict (Map)
111110
import qualified Data.Map.Strict as Map
112111
import Data.Maybe

concordium-consensus/src/Concordium/Afgjort/Finalize.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,8 @@ receiveFinalizationMessage msg@FinalizationMessage{msgHeader = FinalizationMessa
682682
FinalizationState{..} <- use finState
683683
-- Check this is the right session
684684
if _finsSessionId == msgSessionId
685-
then -- Check the finalization index is not out of date
686-
case compare msgFinalizationIndex _finsIndex of
685+
-- Check the finalization index is not out of date
686+
then case compare msgFinalizationIndex _finsIndex of
687687
LT -> tryAddQueuedWitness msg
688688
GT ->
689689
-- Message is from the future; consider it invalid if it's not the index after the current one.

concordium-consensus/src/Concordium/GlobalState/Account.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
module Concordium.GlobalState.Account where
1212

1313
import Data.Bits
14-
import Data.Foldable
1514
import qualified Data.Map.Strict as Map
1615
import Data.Maybe
1716
import qualified Data.Sequence as Seq

0 commit comments

Comments
 (0)