Default instances for (lazy and strict) Text and Text Builder.
Orphan instances for Default
type class, which is defined in package data-default-class.
Following Default
instances are provided:
-- Strict Text:
instance Default Text where
def = empty
-- Lazy Text:
instance Default Text where
def = empty
Following instances are provided only for text >=0.8, since that it the version that introduced Builder
:
instance Default Builder where
def = mempty
data-default-instances-text
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.