Default instances for (lazy and strict) ByteString, Builder and ShortByteString.

LTS Haskell 22.30:0.0.1@rev:1
Stackage Nightly 2024-07-21:0.0.1@rev:1
Latest on Hackage:0.0.1@rev:1

See all snapshots data-default-instances-bytestring appears in

BSD-3-Clause licensed by Peter Trško
Maintained by [email protected]
This version can be pinned in stack with:data-default-instances-bytestring-0.0.1@sha256:592075c7d9f5bde9fe98d31dd2b7412cdb4bb29158b49bee04379fe0895aed3e,2438

Module documentation for 0.0.1


Hackage Hackage Dependencies Haskell Programming Language BSD3 License



Default instances for types defined in bytestring package:

instance Default Strict.ByteString where
    def = Strict.ByteString.empty

instance Default Lazy.ByteString where
    def = Lazy.ByteString.empty

-- For bytestring >=0.10.
instance Default Builder where
    def = mempty

-- For bytestring >=0.10.4.
instance Default ShortByteString where
    def = ShortByteString.empty

This package is intended to be used in conjunction with data-default package or directly with data-default-class package.


The BSD 3-Clause License, see LICENSE file for details.


Contributions, pull requests and bug reports are welcome! Please don’t be afraid to contact author using GitHub or by e-mail.


ChangeLog / ReleaseNotes

Version 0.0.1