@@ -27,8 +27,8 @@ import Control.Lens
2727
2828import Data.Aeson hiding (Object )
2929import 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
3333import GHC.Generics hiding (to )
3434
@@ -48,24 +48,24 @@ instance Wrapped ContProof
4848instance NFData ContProof
4949
5050instance 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
5454instance FromJSON ContProof where
55- parseJSON = withText " ByteString" (return . ContProof . encodeUtf8)
55+ parseJSON = withText " ByteString" (return . ContProof . T. encodeUtf8)
5656instance Pretty ContProof where
5757 pretty = prettyString . show
5858
5959instance Arbitrary ContProof where
60- arbitrary = ContProof . encodeUtf8 <$> arbitrary
60+ arbitrary = ContProof . T. encodeUtf8 <$> arbitrary
6161
6262-- | Backend for SPV support
6363data 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