From a3c754b4d374e1bb00b5152a2fcc4c59a5cd4d9c Mon Sep 17 00:00:00 2001 From: Bodigrim Date: Thu, 5 Dec 2024 00:45:43 +0000 Subject: [PATCH] Revert strictly-speaking breaking change to instance IsList ByteString in #672 --- Data/ByteString/Internal/Type.hs | 1 - 1 file changed, 1 deletion(-) diff --git a/Data/ByteString/Internal/Type.hs b/Data/ByteString/Internal/Type.hs index 534dad3d..7f042410 100644 --- a/Data/ByteString/Internal/Type.hs +++ b/Data/ByteString/Internal/Type.hs @@ -337,7 +337,6 @@ instance Read ByteString where instance IsList ByteString where type Item ByteString = Word8 fromList = packBytes - fromListN n = fst . packUptoLenBytes n toList = unpackBytes -- | Beware: 'fromString' truncates multi-byte characters to octets.