Skip to content

Commit

Permalink
Experimental ghc-9.4 support
Browse files Browse the repository at this point in the history
Requires:
```
allow-newer: cardano-binary:base,
             cardano-slotting:base
```
  • Loading branch information
coot committed Apr 28, 2023
1 parent b36fbc1 commit 25c30d7
Show file tree
Hide file tree
Showing 37 changed files with 58 additions and 30 deletions.
2 changes: 1 addition & 1 deletion cardano-client/cardano-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ library
hs-source-dirs: src
exposed-modules: Cardano.Client.Subscription
default-language: Haskell2010
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
bytestring >=0.10 && <0.12,
containers,
io-classes ^>=1.1,
Expand Down
2 changes: 1 addition & 1 deletion cardano-ping/cardano-ping.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ flag asserts
library
hs-source-dirs: src
exposed-modules: Cardano.Network.Ping
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
aeson >=2.1.1.0 && <3,
cborg >=0.2.8 && <0.3,
bytestring >=0.10 && <0.12,
Expand Down
4 changes: 2 additions & 2 deletions monoidal-synchronisation/monoidal-synchronisation.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extra-source-files: CHANGELOG.md

library
exposed-modules: Data.Monoid.Synchronisation
build-depends: base >=4.14 && <4.17
build-depends: base >=4.14 && <4.19
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
Expand All @@ -32,7 +32,7 @@ test-suite test
main-is: Main.hs
hs-source-dirs: test
other-modules: Test.Data.Monoid.Synchronisation
build-depends: base >=4.14 && <4.17
build-depends: base >=4.14 && <4.19

, QuickCheck
, tasty
Expand Down
6 changes: 3 additions & 3 deletions network-mux/network-mux.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ common demo-deps
-Wunused-packages

library
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
io-classes ^>=1.1,
strict-stm,
si-timers,
Expand Down Expand Up @@ -124,7 +124,7 @@ test-suite test
Test.Mux.ReqResp
Test.Mux.Timeout
default-language: Haskell2010
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
io-classes,
si-timers,
strict-stm,
Expand Down Expand Up @@ -167,7 +167,7 @@ executable mux-demo
hs-source-dirs: demo, test
main-is: mux-demo.hs
other-modules: Test.Mux.ReqResp
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
network-mux,
io-classes,
contra-tracer,
Expand Down
6 changes: 3 additions & 3 deletions ntp-client/ntp-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ library
other-modules: Network.NTP.Client.Packet
Network.NTP.Client.Query
build-depends: async >=2.2 && <2.3
, base >=4.14 && <4.17
, base >=4.14 && <4.19
, binary >=0.8 && <0.11
, bytestring >=0.10 && <0.12
, contra-tracer >=0.1 && <0.2
Expand All @@ -50,7 +50,7 @@ test-suite test
main-is: Test.hs
other-modules: Network.NTP.Client.Packet
type: exitcode-stdio-1.0
build-depends: base >=4.14 && <4.17
build-depends: base >=4.14 && <4.19
, binary >=0.8 && <0.11
, time >=1.9.1 && <1.14
, QuickCheck
Expand All @@ -68,7 +68,7 @@ executable demo-ntp-client
else
buildable: False
build-depends: async >=2.2 && <2.3
, base >=4.14 && <4.17
, base >=4.14 && <4.19
, contra-tracer >=0.1 && <0.2
, Win32-network >=0.1 && <0.2
, ntp-client
Expand Down
4 changes: 2 additions & 2 deletions ouroboros-network-api/ouroboros-network-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ library
Ouroboros.Network.PeerSelection.PeerSharing
Ouroboros.Network.PeerSelection.RelayAccessPoint
default-language: Haskell2010
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
aeson,
base16-bytestring,
bytestring >=0.10 && <0.12,
Expand All @@ -58,7 +58,7 @@ library
network >=3.1.2 && <3.2,
nothunks,
serialise >=0.2 && <0.3,
text >=1.2 && <1.3,
text >=1.2 && <2.1,

cardano-slotting,
cardano-strict-containers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}

module Ouroboros.Network.AnchoredFragment
( -- * AnchoredFragment type and fundamental operations
AnchoredFragment
Expand Down
1 change: 1 addition & 0 deletions ouroboros-network-api/src/Ouroboros/Network/Block.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}

-- | Abstract view over blocks
Expand Down
1 change: 1 addition & 0 deletions ouroboros-network-framework/demo/connection-manager.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}

-- just to use 'debugTracer'
{-# OPTIONS_GHC -Wno-redundant-constraints #-}
Expand Down
10 changes: 5 additions & 5 deletions ouroboros-network-framework/ouroboros-network-framework.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ library
Simulation.Network.Snocket

-- other-extensions:
build-depends: base >=4.12 && <4.17
build-depends: base >=4.12 && <4.19
, async >=2.1 && <2.3
, bytestring >=0.10 && <0.12
, cborg >=0.2.1 && <0.3
Expand Down Expand Up @@ -125,7 +125,7 @@ library testlib

other-modules:

build-depends: base >=4.14 && <4.17
build-depends: base >=4.14 && <4.19
, containers

, QuickCheck
Expand Down Expand Up @@ -158,7 +158,7 @@ test-suite test
Test.Ouroboros.Network.RateLimiting
Test.Simulation.Network.Snocket

build-depends: base >=4.14 && <4.17
build-depends: base >=4.14 && <4.19
, bytestring
, cborg
, containers
Expand Down Expand Up @@ -216,7 +216,7 @@ test-suite test
executable demo-ping-pong
hs-source-dirs: demo test
main-is: ping-pong.hs
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
async,
bytestring,
directory,
Expand All @@ -243,7 +243,7 @@ executable demo-ping-pong
executable demo-connection-manager
hs-source-dirs: demo test
main-is: connection-manager.hs
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
bytestring,
network,
optparse-applicative,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}

-- | Implementation of 'ConnectionHandler'
--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}

-- 'withInitiatorMode' has @HasInitiator muxMode ~ True@ constraint, which is
-- not redundant at all! It limits case analysis.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE LambdaCase #-}

{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}


{-# LANGUAGE TypeOperators #-}

-- 'runResponder' is using a redundant constraint.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeOperators #-}

-- 'withInitiatorMode' and 'withResponderMode' are using redundant constraints.
{-# OPTIONS_GHC -Wno-redundant-constraints #-}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}

-- it is useful to have 'HasInitiator' constraint on 'connectToNode' & friends.
{-# OPTIONS_GHC -Wno-redundant-constraints #-}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}

-- for 'debugTracer'
{-# OPTIONS_GHC -Wno-redundant-constraints #-}
Expand Down
2 changes: 1 addition & 1 deletion ouroboros-network-mock/ouroboros-network-mock.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ library

default-language: Haskell2010

build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
bytestring,
containers,
cborg,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}

-- This module is for examples and tests (not the library) so orphans are ok
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}

module Ouroboros.Network.Mock.ProducerState where

Expand Down
8 changes: 4 additions & 4 deletions ouroboros-network-protocols/ouroboros-network-protocols.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ library
TypeFamilies,
TypeInType

build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
bytestring >=0.10 && <0.12,
cborg >=0.2.1 && <0.3,

Expand Down Expand Up @@ -156,7 +156,7 @@ library testlib
Test.ChainGenerators
Test.ChainProducerState
Test.Ouroboros.Network.Testing.Utils
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
bytestring,
cborg,
containers,
Expand Down Expand Up @@ -194,7 +194,7 @@ test-suite test
other-modules: Test.AnchoredFragment
Test.Chain
default-language: Haskell2010
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
QuickCheck,
tasty,
tasty-quickcheck,
Expand All @@ -216,7 +216,7 @@ test-suite cddl
else
buildable: False
default-language: Haskell2010
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
bytestring,
cborg,
containers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}

module Ouroboros.Network.Protocol.LocalTxMonitor.Codec
( codecLocalTxMonitor
Expand Down
1 change: 1 addition & 0 deletions ouroboros-network-protocols/test/Test/AnchoredFragment.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ViewPatterns #-}

module Test.AnchoredFragment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}

module Ouroboros.Network.Protocol.ChainSync.Examples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE TypeOperators #-}

{-# OPTIONS_GHC -Wno-orphans #-}
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ prop_producer_sync2 (TestBlockChainAndUpdates chain0 us0) choices =
in consumer == producerChain producer
where
-- apply update to producer
go :: Int
-> ChainProducerState Block
-> Chain Block
-> [Bool]
-> [ChainUpdate Block Block]
-> (ChainProducerState Block, Chain Block)
go rid p c (False:bs) (u:us) =
let Just p' = applyChainUpdate u p
in go rid p' c bs us
Expand Down
4 changes: 2 additions & 2 deletions ouroboros-network-testing/ouroboros-network-testing.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ library
TypeApplications,
TypeFamilies,
TypeInType
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
containers,
contra-tracer,
deque,
Expand Down Expand Up @@ -93,7 +93,7 @@ test-suite test
hs-source-dirs: test
other-modules: Test.Ouroboros.Network.Testing.Data.AbsBearerInfo

build-depends: base >=4.14 && <4.17
build-depends: base >=4.14 && <4.19

, QuickCheck
, tasty
Expand Down
6 changes: 3 additions & 3 deletions ouroboros-network/ouroboros-network.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ library
TypeApplications,
TypeFamilies,
TypeInType
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
async >=2.2 && <2.3,
bytestring >=0.10 && <0.12,
cborg >=0.2.1 && <0.3,
Expand Down Expand Up @@ -180,7 +180,7 @@ test-suite test
Test.PeerState
Test.Version
default-language: Haskell2010
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
bytestring,
QuickCheck,
aeson,
Expand Down Expand Up @@ -241,7 +241,7 @@ test-suite test
executable demo-chain-sync
hs-source-dirs: demo
main-is: chain-sync.hs
build-depends: base >=4.14 && <4.17,
build-depends: base >=4.14 && <4.19,
async,
bytestring,
containers,
Expand Down
1 change: 1 addition & 0 deletions ouroboros-network/src/Ouroboros/Network/BlockFetch.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}

{-| Let's start with the big picture...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}

-- hic sunt dracones!
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}
Expand Down

0 comments on commit 25c30d7

Please sign in to comment.