Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.1.0.0
Fetching contributors…

Cannot retrieve contributors at this time

file 91 lines (77 sloc) 2.431 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
name: double-conversion
version: 0.1.0.0
license: BSD3
license-file: LICENSE
homepage: https://github.com/mailrank/double-conversion
bug-reports: https://github.com/mailrank/double-conversion/issues
category: Text
author: Bryan O'Sullivan <bos@mailrank.com>
maintainer: Bryan O'Sullivan <bos@mailrank.com>
stability: experimental
tested-with: GHC == 7.0.3
synopsis: Fast conversion between double precision floating point and text
cabal-version: >= 1.8
build-type: Simple
description:
    A library that performs fast conversion between double precision
    floating point and text, implemented as bindings to the C++
    double-conversion library written by Florian Loitsch at Google.

extra-source-files:
    README.markdown
    benchmarks/*.cabal
    benchmarks/*.hs
    double-conversion/COPYING
    double-conversion/LICENSE
    double-conversion/Makefile
    double-conversion/README
    double-conversion/SConstruct
    double-conversion/src/*.cc
    double-conversion/src/*.h
    double-conversion/src/SConscript
    double-conversion/test/cctest/*.cc
    double-conversion/test/cctest/*.h
    double-conversion/test/cctest/SConscript
    include/*.h
    tests/*.cabal
    tests/*.hs

flag developer
  description: operate in developer mode
  default: False

library
  c-sources:
    cbits/hs-double-conversion.cc
    double-conversion/src/bignum.cc
    double-conversion/src/bignum-dtoa.cc
    double-conversion/src/cached-powers.cc
    double-conversion/src/diy-fp.cc
    double-conversion/src/double-conversion.cc
    double-conversion/src/fast-dtoa.cc
    double-conversion/src/fixed-dtoa.cc
    double-conversion/src/strtod.cc

  extra-libraries: stdc++

  include-dirs:
    double-conversion/src
    include

  exposed-modules:
    Data.Double.Conversion

  build-depends:
    base == 4.*,
    ghc-prim,
    text >= 0.11.0.8

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

  ghc-options: -Wall

  cpp-options: -DINTEGER_GMP

  if impl(ghc >= 6.11)
    build-depends: integer-gmp >= 0.2 && < 0.3

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

source-repository head
  type: git
  location: https://github.com/mailrank/double-conversion

source-repository head
  type: mercurial
  location: https://bitbucket.org/bos/double-conversion
Something went wrong with that request. Please try again.