diff options
| author | tv <tv@krebsco.de> | 2025-03-11 01:20:13 +0100 | 
|---|---|---|
| committer | tv <tv@krebsco.de> | 2025-03-11 01:49:34 +0100 | 
| commit | ee7cc48b0814f2188277305d03b5297fcee36eeb (patch) | |
| tree | 5f8694c0d089a4831cdc9ada71e596a23c5e479a /src | |
| parent | 2cfd3f1f5372144f5c60687422f3363a5a0a5728 (diff) | |
Add support for Data.ByteString
Diffstat (limited to 'src')
| -rw-r--r-- | src/Blessings/ByteString.hs | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/src/Blessings/ByteString.hs b/src/Blessings/ByteString.hs new file mode 100644 index 0000000..d914818 --- /dev/null +++ b/src/Blessings/ByteString.hs @@ -0,0 +1,17 @@ +{-# OPTIONS_GHC -fno-warn-orphans #-} + +module Blessings.ByteString +    ( module Blessings +    ) where + +import Blessings +import Blessings.Internal +import qualified Data.ByteString.Char8 as B + + +instance Blessable B.ByteString where +  length = B.length +  drop = B.drop +  take = B.take +  intercalate = B.intercalate +  fromWord8 = B.pack . show | 
