e850f722da937889b21f36c5625e6c126a07c06a
[packages/utf8-string.git] / utf8-string.cabal
1 Name:               utf8-string
2 Version:            0.3.6
3 Author:             Eric Mertens
4 Maintainer:         emertens@galois.com
5 License:            BSD3
6 License-file:       LICENSE
7 Homepage:           http://github.com/glguy/utf8-string/
8 Synopsis:           Support for reading and writing UTF8 Strings
9 Description:        A UTF8 layer for IO and Strings. The utf8-string
10                     package provides operations for encoding UTF8
11                     strings to Word8 lists and back, and for reading and
12                     writing UTF8 without truncation.
13 Category:           Codec
14 Build-type:         Simple
15 cabal-version:      >= 1.2
16
17 flag bytestring-in-base
18
19 library
20   Ghc-options:        -W -O2
21
22   if flag(bytestring-in-base)
23     build-depends: base >= 2.0 && < 2.2
24     cpp-options: -DBYTESTRING_IN_BASE
25   else
26     build-depends: base < 2.0 || >= 3, bytestring >= 0.9
27
28   Extensions:         CPP
29   Exposed-modules:    Codec.Binary.UTF8.String
30                       Codec.Binary.UTF8.Generic
31                       System.IO.UTF8
32                       System.Environment.UTF8
33                       Data.String.UTF8
34                       Data.ByteString.UTF8
35                       Data.ByteString.Lazy.UTF8