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" $