name: data-default-instances-text
version: 0.0.1
synopsis:
Default instances for (lazy and strict) Text and Text Builder.
description:
Orphan instances for @Default@ type class, which is defined in package
<https://hackage.haskell.org/package/data-default-class 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
<https://hackage.haskell.org/package/text text> >=0.8, since that it the
version that introduced @Builder@:
.
> instance Default Builder where
> def = mempty
homepage: https://github.com/trskop/data-default-extra
bug-reports: https://github.com/trskop/data-default-extra/issues
license: BSD3
license-file: LICENSE
author: Peter Trško
maintainer: peter.trsko@gmail.com
copyright: (c) 2016, Peter Trško
category: Data
build-type: Simple
cabal-version: >=1.10
extra-source-files:
ChangeLog.md
, README.md
library
hs-source-dirs: src
exposed-modules: Data.Default.Instances.Text
default-language: Haskell2010
other-extensions: CPP, NoImplicitPrelude
build-depends:
base <6
-- ^ Only using mempty method of Monoid class, therefore the bounds do not
-- really matter, unless Monoid class is drastically changed.
, text >=0.2 && <2
-- ^ Version 0.2 is the first that provided both strict and lazy Text.
, data-default-class ==0.0.*
ghc-options: -Wall -fwarn-tabs
source-repository head
type: git
location: git://github.com/trskop/data-default-extra.git
source-repository this
type: git
location: git://github.com/trskop/data-default-extra.git
tag: text-v0.0.1