From 37b0426c86840901e9657b0a5e499c48cc04159a Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 11 Mar 2025 01:44:32 +0100 Subject: Add support for Data.ByteString.Lazy --- src/Blessings/ByteString/Lazy.hs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/Blessings/ByteString/Lazy.hs (limited to 'src') diff --git a/src/Blessings/ByteString/Lazy.hs b/src/Blessings/ByteString/Lazy.hs new file mode 100644 index 0000000..a32f29b --- /dev/null +++ b/src/Blessings/ByteString/Lazy.hs @@ -0,0 +1,17 @@ +{-# OPTIONS_GHC -fno-warn-orphans #-} + +module Blessings.ByteString.Lazy + ( module Blessings + ) where + +import Blessings +import Blessings.Internal +import qualified Data.ByteString.Lazy.Char8 as L + + +instance Blessable L.ByteString where + length = fromIntegral . L.length + drop = L.drop . fromIntegral + take = L.take . fromIntegral + intercalate = L.intercalate + fromWord8 = L.pack . show -- cgit v1.2.3