Default instances for (lazy and strict) ByteString, Builder and ShortByteString.
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
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.