name: data-default-instances-bytestring
version: 0.0.1
synopsis:
Default instances for (lazy and strict) ByteString, Builder and
ShortByteString.
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 ByteString:
> instance Default ByteString where
> def = empty
>
> -- Lazy ByteString:
> instance Default ByteString where
> def = empty
.
Following instance is provided only for
<https://hackage.haskell.org/package/bytestring bytestring> >=0.10, since
that it the version that introduced @Builder@:
.
> instance Default Builder where
> def = mempty
.
Following instance is provided only for
<https://hackage.haskell.org/package/bytestring bytestring> >=0.10.4, since
that it the version that introduced @ShortByteString@:
.
> instance Default ShortByteString where
> def = empty
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.ByteString
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.
, bytestring >=0.9 && <1
-- ^ Version 0.9 is the oldest available on Hackage.
, 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: bytestring-v0.0.1