Skip to content

Commit b3ba779

Browse files
committed
Support io-classes-1.7
1 parent 8d31814 commit b3ba779

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

cabal.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repository cardano-haskell-packages
1212

1313
index-state:
1414
hackage.haskell.org 2024-08-27T18:06:30Z
15-
, cardano-haskell-packages 2024-06-27T10:53:24Z
15+
, cardano-haskell-packages 2024-07-24T14:16:32Z
1616

1717
packages: ./typed-protocols
1818
./typed-protocols-cborg

typed-protocols-stateful-cborg/src/Network/TypedProtocol/Stateful/Codec/CBOR.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ mkCodecCborStrictBS cborMsgEncode cborMsgDecode =
7272
:: (forall s. CBOR.Decoder s a)
7373
-> m (DecodeStep BS.ByteString DeserialiseFailure m a)
7474
convertCborDecoder cborDecode =
75-
withLiftST (convertCborDecoderBS cborDecode)
75+
convertCborDecoderBS cborDecode stToIO
7676

7777
-- | Construct a 'Codec' for a CBOR based serialisation format, using lazy
7878
-- 'BS.ByteString's.
@@ -114,7 +114,7 @@ mkCodecCborLazyBS cborMsgEncode cborMsgDecode =
114114
:: (forall s. CBOR.Decoder s a)
115115
-> m (DecodeStep LBS.ByteString CBOR.DeserialiseFailure m a)
116116
convertCborDecoder cborDecode =
117-
withLiftST (convertCborDecoderLBS cborDecode)
117+
convertCborDecoderLBS cborDecode stToIO
118118

119119
{-# NOINLINE toLazyByteString #-}
120120
toLazyByteString :: BS.Builder -> LBS.ByteString

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 3.0
12
name: typed-protocols-stateful-cborg
23
version: 0.2.0.0
34
synopsis: CBOR codecs for typed-protocols
@@ -15,8 +16,6 @@ build-type: Simple
1516
-- These should probably be added at some point.
1617
extra-source-files: ChangeLog.md, README.md
1718

18-
cabal-version: >=1.10
19-
2019
library
2120
exposed-modules: Network.TypedProtocol.Stateful.Codec.CBOR
2221

0 commit comments

Comments
 (0)