Name: to-string-instances
Version: 0.2
Synopsis: Instances for the ToString class.
Description: This library provides the following instances
for the ToString class:
.
* ByteString
.
* Doc
.
* Text
.
Note that the instances can be enabled or disabled
based on cabal flags.
.
The idea is that eventually all packages providing string-like
types will provide instances for ToString themselves.
In the mean time this package is here to provide them.
Category: Data
License: BSD3
License-file: LICENSE
Author: Bas van Dijk <v.dijk.bas@gmail.com>
Maintainer: Bas van Dijk <v.dijk.bas@gmail.com>
Copyright: 2009 Bas van Dijk <v.dijk.bas@gmail.com>
Cabal-version: >= 1.6
Build-Type: Simple
Stability: Stable
Extra-Source-Files: LICENSE
Source-repository head
Type: darcs
Location: http://code.haskell.org/~basvandijk/code/to-string-instances/
Flag ByteString
Description: Add ByteString support.
Default: True
Flag Doc
Description: Add Doc support.
Default: True
Flag Text
Description: Add Text support.
Default: True
Library
Build-Depends: to-string-class >= 0.1.2 && < 0.1.3
Exposed-modules: Data.String.ToString.Instances
Ghc-options: -O2 -Wall -fno-warn-orphans
if flag(ByteString)
CPP-Options: -DBYTESTRING
Build-Depends: bytestring == 0.9.*
if flag(Doc)
CPP-Options: -DDOC
Build-Depends: pretty == 1.0.*
if flag(Text)
CPP-Options: -DTEXT
Build-Depends: text == 0.4.*