From 537b8ac7389a0f5dbd1e4e4e4afdf9f44f5e06a2 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 #670 --- 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.