data-default-instances-text

Default instances for (lazy and strict) Text and Text Builder. 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-text

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

Build

Description

Default instances for types defined in [text][] package:

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

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

-- For text >=0.8
instance Default Builder where
    def = mempty

Following instances are provided only for [text][] >=0.8, since that it the version that introduced Builder:

instance Default Builder where
    def = mempty

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/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-text]: https://hackage.haskell.org/package/data-default-instances-text "Package data-default-instances-text on Hackage" [Haskell.org]: http://www.haskell.org "The Haskell Programming Language" [LICENSE]: https://github.com/trskop/data-default-extra/blob/master/instances-text/LICENSE "License of data-default-instances-text package." [text]: https://hackage.haskell.org/package/text "Package text on Hackage" [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."

Used by 1 package:
comments powered byDisqus