The data-default-instances-bytestring package

[Tags:bsd3, library]

Orphan instances for Default type class, which is defined in package data-default-class.

Following Default instances are provided:

 -- Strict ByteString:
 instance Default ByteString where
     def = empty

 -- Lazy ByteString:
 instance Default ByteString where
     def = empty

Following instance is provided only for bytestring >=0.10, since that it the version that introduced Builder:

 instance Default Builder where
     def = mempty

Following instance is provided only for bytestring >=0.10.4, since that it the version that introduced ShortByteString:

 instance Default ShortByteString where
     def = empty

[Skip to Readme]

Properties

Versions 0.0.1
Change log ChangeLog.md
Dependencies base (<6), bytestring (>=0.9 && <1), data-default-class (>=0.0 && <0.2) [details]
License BSD3
Copyright (c) 2016, Peter Trško
Author Peter Trško
Maintainer peter.trsko@gmail.com
Stability Unknown
Category Data
Home page https://github.com/trskop/data-default-extra
Bug tracker https://github.com/trskop/data-default-extra/issues
Source repository head: git clone git://github.com/trskop/data-default-extra.git
this: git clone git://github.com/trskop/data-default-extra.git(tag bytestring-v0.0.1)
Uploaded Sun Feb 7 14:04:09 UTC 2016 by PeterTrsko
Updated Thu Jan 5 20:05:29 UTC 2017 by PeterTrsko to revision 1
Distributions NixOS:0.0.1
Downloads 76 total (5 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2016-02-12 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for data-default-instances-bytestring

Readme for data-default-instances-bytestring-0.0.1

data-default-instances-bytestring

Hackage Hackage Dependencies Haskell Programming Language BSD3 License

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.