Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
build:
strategy:
matrix:
ghc: ["9.6.7", "9.8.4", "9.10.2", "9.12.2"]
ghc: ["9.6.7", "9.8.4", "9.10.3", "9.12.2", "9.14.1"]
os: [ubuntu-latest]
fail-fast: false

Expand Down
111 changes: 106 additions & 5 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ source-repository-package
-- NOTE: If you would like to update the above,
-- see CONTRIBUTING.md#to-update-the-referenced-agda-ledger-spec
index-state:
, hackage.haskell.org 2025-12-11T11:28:18Z
, cardano-haskell-packages 2025-12-10T11:48:32Z
, hackage.haskell.org 2026-01-22T22:06:22Z
, cardano-haskell-packages 2026-01-20T18:32:46Z

packages:
-- == Byron era ==
Expand Down Expand Up @@ -90,8 +90,109 @@ tests: true
benchmarks: true
-- The only sensible test display option
test-show-details: streaming
allow-newer:
-- https://github.com/phadej/vec/issues/121
, ral:QuickCheck
, fin:QuickCheck
, bin:QuickCheck

if impl(ghc >=9.12)
if impl(ghc >=9.14)
source-repository-package
type: git
-- https://github.com/snowleopard/alga/issues/322
location: https://github.com/snowleopard/alga/
tag: d4e43fb42db05413459fb2df493361d5a666588a

source-repository-package
type: git
location: https://github.com/IntersectMBO/plutus
tag: c65a4fa1c0985ee9411554318163b11194cc7663
subdir:
plutus-core
plutus-tx
plutus-ledger-api

if impl(ghc >=9.14)
constraints:
, containers >= 0.8
, foldl >= 1.4.18
, microlens ^>= 0.4
, microlens-th ^>= 0.4

-- cabal-allow-newer
if impl (ghc >= 9.14)
allow-newer:
-- Unique: https://github.com/kapralVV/Unique/issues/11
, Unique:hashable
, aeson:QuickCheck
, aeson:base
, aeson:containers
, aeson:template-haskell
, aeson:time-compat
, base64-bytestring-type:QuickCheck
, base64-bytestring-type:base
, base64-bytestring-type:http-api-data
, bin:base
, binary-orphans:base
, boring:base
, canonical-json:containers
, cborg:base
, cborg:containers
, config-ini:containers
, config-ini:megaparsec
, constraints:boring
, constraints-extras:template-haskell
, containers:base
, containers:template-haskell
, criterion:binary-orphans
, dec:base
, dependent-map:containers
, dictionary-sharing:containers
, fin:base
, fin:universe-base
, http-api-data:base
, http-api-data:containers
, indexed-traversable:base
, indexed-traversable:containers
, indexed-traversable-instances:base
, ledger-state:persistent
, microlens-th:containers
, microlens-th:template-haskell
, microstache:base
, microstache:containers
, monoidal-containers:base
, monoidal-containers:containers
, nonempty-vector:base
, optics-core:containers
, ordered-containers:containers
, parsec:base
, parsec:text
, persistent:template-haskell
, persistent-sqlite:persistent
, plutus-core:dependent-map
, quickcheck-instances:base
, quickcheck-instances:containers
, ral:base
, recursion-schemes:containers
, recursion-schemes:template-haskell
, semialign:base
, semialign:containers
, serialise:base
, serialise:containers
, serialise:these
, serialise:time
, size-based:template-haskell
, some:base
, text:template-haskell
, these:base
, time-compat:base
, transformers:base
, tree-diff:QuickCheck
, tree-diff:aeson
, tree-diff:base
, tree-diff:containers
, tree-diff:parsec
, tree-diff:semialign
, tree-diff:time
, tree-diff:uuid-types
, universe-base:base
, universe-base:containers
, uuid-types:template-haskell
15 changes: 14 additions & 1 deletion eras/allegra/impl/cardano-ledger-allegra.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ library
-Wpartial-fields
-Wunused-packages

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
aeson,
base >=4.18 && <5,
Expand Down Expand Up @@ -148,10 +152,19 @@ library testlib
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
-Wpartial-fields
-Wunused-packages

-- ghc-9.14 gives redundant constraint warnings on some constraints
-- that are needed for earlier compilers.
if impl(ghc <9.14)
ghc-options:
-Wredundant-constraints

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
QuickCheck,
base,
Expand Down
22 changes: 20 additions & 2 deletions eras/alonzo/impl/cardano-ledger-alonzo.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,18 @@ library
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages

-- ghc-9.14 gives redundant constraint warnings on some constraints
-- that are needed for earlier compilers.
if impl(ghc <9.14)
ghc-options:
-Wredundant-constraints

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
FailT,
aeson >=2.2,
Expand Down Expand Up @@ -180,9 +189,18 @@ library testlib
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages

-- ghc-9.14 gives redundant constraint warnings on some constraints
-- that are needed for earlier compilers.
if impl(ghc <9.14)
ghc-options:
-Wredundant-constraints

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
HUnit,
base,
Expand Down
4 changes: 4 additions & 0 deletions eras/alonzo/test-suite/cardano-ledger-alonzo-test.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ library
-Wredundant-constraints
-Wunused-packages

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
QuickCheck,
base >=4.18 && <5,
Expand Down
22 changes: 20 additions & 2 deletions eras/babbage/impl/cardano-ledger-babbage.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,18 @@ library
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages

-- ghc-9.14 gives redundant constraint warnings on some constraints
-- that are needed for earlier compilers.
if impl(ghc <9.14)
ghc-options:
-Wredundant-constraints

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
aeson >=2.2,
base >=4.18 && <5,
Expand Down Expand Up @@ -168,9 +177,18 @@ library testlib
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages

-- ghc-9.14 gives redundant constraint warnings on some constraints
-- that are needed for earlier compilers.
if impl(ghc <9.14)
ghc-options:
-Wredundant-constraints

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
QuickCheck,
base,
Expand Down
22 changes: 20 additions & 2 deletions eras/conway/impl/cardano-ledger-conway.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,18 @@ library
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages

-- ghc-9.14 gives redundant constraint warnings on some constraints
-- that are needed for earlier compilers.
if impl(ghc <9.14)
ghc-options:
-Wredundant-constraints

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
aeson >=2.2,
base >=4.18 && <5,
Expand Down Expand Up @@ -212,9 +221,18 @@ library testlib
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages

-- ghc-9.14 gives redundant constraint warnings on some constraints
-- that are needed for earlier compilers.
if impl(ghc <9.14)
ghc-options:
-Wredundant-constraints

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
FailT,
ImpSpec,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -716,11 +716,11 @@ toPTree (ChildParent childParent) root (PGraph fullGraph) = do
childToTree parent child (!graph, !acc) =
case Map.lookup child graph of
Nothing -> Left $ "Cannot find the node: " ++ show child
Just edges -> do
unless (peParent edges == parent) $
Just es -> do
unless (peParent es == parent) $
Left $
"Incorrect parent: "
++ show (peParent edges)
++ show (peParent es)
++ " listed for the node: "
++ show child
case Map.lookup child childParent of
Expand All @@ -738,7 +738,7 @@ toPTree (ChildParent childParent) root (PGraph fullGraph) = do
(graph', !subTree) <-
-- Deleting the child from the graph ensures that every node except the root
-- appears exactly once in the graph.
nodeToTree (SJust child) (peChildren edges) (Map.delete child graph)
nodeToTree (SJust child) (peChildren es) (Map.delete child graph)
pure (graph', subTree : acc)

-- | Verify invariant after addition of GovActionState to Proposals. Will print the state
Expand Down
22 changes: 20 additions & 2 deletions eras/dijkstra/impl/cardano-ledger-dijkstra.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,18 @@ library
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages

-- ghc-9.14 gives redundant constraint warnings on some constraints
-- that are needed for earlier compilers.
if impl(ghc <9.14)
ghc-options:
-Wredundant-constraints

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
FailT,
aeson,
Expand Down Expand Up @@ -147,9 +156,18 @@ library testlib
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages

-- ghc-9.14 gives redundant constraint warnings on some constraints
-- that are needed for earlier compilers.
if impl(ghc <9.14)
ghc-options:
-Wredundant-constraints

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
base,
bytestring,
Expand Down
8 changes: 8 additions & 0 deletions eras/mary/impl/cardano-ledger-mary.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ library
-Wpartial-fields
-Wunused-packages

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
aeson >=2.2,
base >=4.18 && <5,
Expand Down Expand Up @@ -160,6 +164,10 @@ library testlib
-Wpartial-fields
-Wunused-packages

-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
if impl(ghc >=9.14)
ghc-options:
-Wno-pattern-namespace-specifier
build-depends:
base,
bytestring,
Expand Down
Loading
Loading