Skip to content

Commit

Permalink
fix(testgen-hs): fix the macOS build (different GHC)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrus committed Nov 22, 2024
1 parent 882278d commit fc9c661
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testgen-hs/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Data.Proxy (Proxy (..))
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import qualified Data.Text.Encoding.Error as T
import Data.Time.Clock.POSIX (getPOSIXTime)
import qualified Deserialize as D
import GHC.Generics (Generic)
Expand Down Expand Up @@ -80,7 +81,7 @@ mkTestCase :: forall a. (Show a, G.OurCBOR a) => a -> TestCase a
mkTestCase a =
TestCase
{ cbor =
T.decodeUtf8Lenient
T.decodeUtf8With T.lenientDecode
. B16.encode
. BL.toStrict
. C.toLazyByteString
Expand All @@ -104,7 +105,7 @@ runDeserialize cbor' =
(J.defConfig {J.confIndent = J.Spaces 2})
TestCase
{ cbor =
T.decodeUtf8Lenient
T.decodeUtf8With T.lenientDecode
. B16.encode
$ cbor',
haskellRepr = T.pack haskellRepr',
Expand Down

0 comments on commit fc9c661

Please sign in to comment.