@hackage data-default-instances-bytestring0.0.1
Default instances for (lazy and strict) ByteString, Builder and ShortByteString.
Categories
License
BSD-3-Clause
Maintainer
peter.trsko@gmail.com
Links
Versions
- 0.0.1 Thu, 5 Jan 2017
Installation
Dependencies (3)
- base <6
- bytestring >=0.9 && <1
- data-default-class >=0.0 && <0.1 || >=0.1 && <0.2 Show all…
Dependents (1)
@hackage/data-default-extra
data-default-instances-bytestring
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.