data-default-instances-bytestring

Default instances for (lazy and strict) ByteString, Builder and ShortByteString. https://github.com/trskop/data-default-extra

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 stackage.org to host generated Haddocks.

BSD3 licensed by Peter Trško
Maintained by peter.trsko@gmail.com

data-default-instances-bytestring

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

Build

Description

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.

License

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

Contributions

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

https://hackage.haskell.org/package/bytestring "Package bytestring on Hackage" [data-default]: https://hackage.haskell.org/package/data-default "Package data-default on Hackage" [data-default-class]: https://hackage.haskell.org/package/data-default-class "Package data-default-class on Hackage" [data-default-instances-bytestring]: https://hackage.haskell.org/package/data-default-instances-bytestring "Package data-default-instances-bytestring on Hackage" [Haskell.org]: http://www.haskell.org "The Haskell Programming Language" [LICENSE]: https://github.com/trskop/data-default-extra/blob/master/instances-bytestring/LICENSE "License of data-default-instances-bytestring package." [tl;dr Legal: BSD3]: https://tldrlegal.com/license/bsd-3-clause-license-%28revised%29 "BSD 3-Clause License (Revised)"

Changes

ChangeLog / ReleaseNotes

Version 0.0.1

http://hackage.haskell.org/ "HackageDB (or just Hackage) is a collection of releases of Haskell packages."

comments powered byDisqus