Source

blaze-textual / blaze-textual.cabal

name:            blaze-textual
version:         0.2.0.8
license:         BSD3
license-file:    LICENSE
category:        Text
copyright:       Copyright 2011 MailRank, Inc.
author:          Bryan O'Sullivan <bos@serpentine.com>
maintainer:      Bryan O'Sullivan <bos@serpentine.com>
stability:       experimental
synopsis:        Fast rendering of common datatypes
cabal-version:   >= 1.8
homepage:        http://github.com/bos/blaze-textual
bug-reports:     http://github.com/bos/blaze-textual/issues
build-type:      Simple
description:
    A library for efficiently rendering Haskell datatypes to
    bytestrings.
    .
    /Note/: if you use GHCi or Template Haskell, please see the
    @README@ file for important details about building this package,
    and other packages that depend on it:
    <https://github.com/bos/blaze-textual#readme>

extra-source-files:
    README.markdown
    tests/*.hs

flag developer
  description: operate in developer mode
  default: False

flag native
  description: use slow native code for double conversion
  default: True

library
  exposed-modules:
    Blaze.Text
    Blaze.Text.Double
    Blaze.Text.Int

  if flag(native)
    other-modules: Blaze.Text.Double.Native

  build-depends:
    base == 4.*,
    blaze-builder >= 0.2.1.4,
    bytestring,
    ghc-prim,
    old-locale,
    text >= 0.11.0.2,
    time,
    vector

  if !flag(native)
    build-depends:
      double-conversion >= 0.2.0.1

  if flag(developer)
    ghc-options: -Werror
    ghc-prof-options: -auto-all

  if flag(native)
    cpp-options: -DNATIVE

  ghc-options:      -Wall

  if impl(ghc >= 6.11)
    cpp-options: -DINTEGER_GMP
    build-depends: integer-gmp >= 0.2

  if impl(ghc >= 6.9) && impl(ghc < 6.11)
    cpp-options: -DINTEGER_GMP
    build-depends: integer >= 0.1 && < 0.2

test-suite tests
  type:           exitcode-stdio-1.0
  hs-source-dirs: tests
  main-is:        QC.hs
  ghc-options:    -Wall -threaded -rtsopts
  build-depends:
    QuickCheck >= 2.4.0.1,
    base,
    blaze-builder,
    blaze-textual,
    bytestring,
    double-conversion,
    test-framework >= 0.3.3,
    test-framework-quickcheck2 >= 0.2.9

source-repository head
  type:     git
  location: http://github.com/bos/blaze-textual

source-repository head
  type:     mercurial
  location: http://bitbucket.org/bos/blaze-textual
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.