Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit 270d2d0

Browse files
committed
fix build with ghc-9.12
1 parent 69d6377 commit 270d2d0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Pact/Types/SPV.hs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import Control.Lens
2727

2828
import Data.Aeson hiding (Object)
2929
import Data.ByteString
30-
import Data.Text
31-
import Data.Text.Encoding
30+
import qualified Data.Text as T
31+
import qualified Data.Text.Encoding as T
3232

3333
import GHC.Generics hiding (to)
3434

@@ -48,24 +48,24 @@ instance Wrapped ContProof
4848
instance NFData ContProof
4949

5050
instance J.Encode ContProof where
51-
build (ContProof bs) = J.build $ decodeUtf8 bs
51+
build (ContProof bs) = J.build $ T.decodeUtf8 bs
5252
{-# INLINE build #-}
5353

5454
instance FromJSON ContProof where
55-
parseJSON = withText "ByteString" (return . ContProof . encodeUtf8)
55+
parseJSON = withText "ByteString" (return . ContProof . T.encodeUtf8)
5656
instance Pretty ContProof where
5757
pretty = prettyString . show
5858

5959
instance Arbitrary ContProof where
60-
arbitrary = ContProof . encodeUtf8 <$> arbitrary
60+
arbitrary = ContProof . T.encodeUtf8 <$> arbitrary
6161

6262
-- | Backend for SPV support
6363
data SPVSupport = SPVSupport
64-
{ _spvSupport :: !(Text -> (Object Name) -> IO (Either Text (Object Name)))
64+
{ _spvSupport :: !(T.Text -> (Object Name) -> IO (Either T.Text (Object Name)))
6565
-- ^ Attempt to verify an SPV proof of a given type,
6666
-- given a payload object. On success, returns the
6767
-- specific data represented by the proof.
68-
, _spvVerifyContinuation :: !(ContProof -> IO (Either Text PactExec))
68+
, _spvVerifyContinuation :: !(ContProof -> IO (Either T.Text PactExec))
6969
-- ^ Attempt to verify an SPV proof of a continuation given
7070
-- a continuation payload object bytestring. On success, returns
7171
-- the 'PactExec' associated with the proof.

0 commit comments

Comments
 (0)