From 5ea3f6501f751bc2cd6c06eac84701b79ba2ab17 Mon Sep 17 00:00:00 2001 From: Bodigrim Date: Fri, 29 Sep 2023 22:15:20 +0100 Subject: [PATCH] Review suggestions --- Data/ByteString/Internal/Type.hs | 2 +- tests/Properties/ByteString.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Data/ByteString/Internal/Type.hs b/Data/ByteString/Internal/Type.hs index 7dceecea7..ad0d0951f 100644 --- a/Data/ByteString/Internal/Type.hs +++ b/Data/ByteString/Internal/Type.hs @@ -364,7 +364,7 @@ packConstr :: Constr packConstr = mkConstr byteStringDataType "pack" [] Prefix byteStringDataType :: DataType -byteStringDataType = mkDataType "Data.ByteString" [packConstr] +byteStringDataType = mkDataType "Data.ByteString.ByteString" [packConstr] -- | @since 0.11.2.0 instance TH.Lift ByteString where diff --git a/tests/Properties/ByteString.hs b/tests/Properties/ByteString.hs index 693b43faf..ef3bbc77b 100644 --- a/tests/Properties/ByteString.hs +++ b/tests/Properties/ByteString.hs @@ -668,7 +668,7 @@ tests = , testProperty "toConstr is pack" $ \(x :: BYTESTRING_TYPE) -> showConstr (toConstr x) === "pack" #ifndef BYTESTRING_CHAR8 - , testProperty "gshow \"A\"" $ + , testProperty "gshow" $ \x -> gshow x === "(pack " ++ gshow (B.unpack x) ++ ")" #endif , testProperty "gread . gshow = reads . show" $