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

Latest on Hackage:0.0.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed by Peter Trško
Maintained by


[Hackage][data-default-instances-bytestring] Hackage Dependencies [Haskell Programming Language][] [BSD3 License][tl;dr Legal: BSD3]



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. "Package bytestring on Hackage" [data-default]: "Package data-default on Hackage" [data-default-class]: "Package data-default-class on Hackage" [data-default-instances-bytestring]: "Package data-default-instances-bytestring on Hackage" []: "The Haskell Programming Language" [LICENSE]: "License of data-default-instances-bytestring package." [tl;dr Legal: BSD3]: "BSD 3-Clause License (Revised)"


ChangeLog / ReleaseNotes

Version 0.0.1 "HackageDB (or just Hackage) is a collection of releases of Haskell packages."

Depends on 3 packages:
Used by 1 package:
comments powered byDisqus