Skip to content

Commit a357265

Browse files
authored
Merge pull request #70 from input-output-hk/erikd/ghc-9.12
Support ghc-9.12
2 parents afa0c71 + 360aaa2 commit a357265

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

cabal.project

+10-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ repository cardano-haskell-packages
1111
d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee
1212

1313
index-state:
14-
hackage.haskell.org 2024-08-27T18:06:30Z
15-
, cardano-haskell-packages 2024-07-24T14:16:32Z
14+
hackage.haskell.org 2025-01-30T00:54:30Z
15+
, cardano-haskell-packages 2025-01-29T20:54:25Z
1616

1717
packages: ./typed-protocols
1818
./typed-protocols-cborg
@@ -22,3 +22,11 @@ packages: ./typed-protocols
2222
-- ./typed-protocols-doc
2323

2424
test-show-details: direct
25+
26+
if impl (ghc >= 9.12)
27+
allow-newer:
28+
-- https://github.com/well-typed/cborg/pull/339
29+
, cborg:base
30+
, cborg:ghc-prim
31+
, serialise:base
32+
, serialise:ghc-prim

typed-protocols-cborg/typed-protocols-cborg.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extra-doc-files: CHANGELOG.md, README.md
1818
library
1919
exposed-modules: Network.TypedProtocol.Codec.CBOR
2020

21-
build-depends: base >=4.12 && <4.21,
21+
build-depends: base >=4.12 && <4.22,
2222
bytestring >=0.10 && <0.13,
2323
cborg >=0.2.1 && <0.3,
2424
singletons,

typed-protocols-doc/demo/DemoProtocol.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ instance Codec (DemoCodec a) where
8080
type MonadDecode (DemoCodec a) = Except String
8181

8282
data PongEnum = NormalPong | ComplexPong
83-
deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable)
83+
deriving (Show, Read, Eq, Ord, Enum, Bounded)
8484

8585
data PingEnum = PingRequest | EndPing
86-
deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable)
86+
deriving (Show, Read, Eq, Ord, Enum, Bounded)
8787

8888
deriving via (ViaEnum PongEnum)
8989
instance (Codec codec, HasInfo codec (DefEnumEncoding codec)) => HasInfo codec PongEnum

typed-protocols-doc/test/Network/TypedProtocol/Tests/TestProtocol.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ instance Codec (TestCodec a) where
8080
type MonadDecode (TestCodec a) = Except String
8181

8282
data PongEnum = NormalPong | ComplexPong
83-
deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable)
83+
deriving (Show, Read, Eq, Ord, Enum, Bounded)
8484

8585
data PingEnum = PingRequest | EndPing
86-
deriving (Show, Read, Eq, Ord, Enum, Bounded, Typeable)
86+
deriving (Show, Read, Eq, Ord, Enum, Bounded)
8787

8888
deriving via (ViaEnum PongEnum)
8989
instance (Codec codec, HasInfo codec (DefEnumEncoding codec)) => HasInfo codec PongEnum

typed-protocols-stateful-cborg/typed-protocols-stateful-cborg.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extra-doc-files: CHANGELOG.md, README.md
2020
library
2121
exposed-modules: Network.TypedProtocol.Stateful.Codec.CBOR
2222

23-
build-depends: base >=4.12 && <4.21,
23+
build-depends: base >=4.12 && <4.22,
2424
bytestring >=0.10 && <0.13,
2525
cborg >=0.2.1 && <0.3,
2626
singletons,

0 commit comments

Comments
 (0)