packages feed

hmpfr-0.3.3.2: hmpfr.cabal

name:                hmpfr
version:             0.3.3.2
synopsis:            Haskell binding to the MPFR library
description:         Haskell binding to the MPFR library. This version is compatible
                     with MPFR 2.4.* and later and will not work with previous releases
                     of the MPFR library.
                     .
                     /Since MPFR uses GMP, this library features infrequent but serious errors/
                     /with a ghc that has been compiled with the default integer-gmp./  
                     /When using ghc, it is recommended to use one compiled with a modified integer-gmp,/
                     /as described at http://code.google.com/p/hmpfr/wiki/GHCWithRenamedGMP, or/
                     /with integer-simple, as described at http://code.google.com/p/hmpfr/wiki/GHCWithoutGMP./
                     /There is a hope that at some point future versions of ghc will not need any modification for/
                     /hmpfr to work with them correctly./
                     .
                     The library includes both a pure and a mutable interface.
                     The mutable interface should have a lot less overhead 
                     than the pure one.
                     .
                     Some simple examples of usage can be found in demo/Demo.hs.
category:            Data, Math
license:             BSD3
license-file:        LICENSE
Stability:           experimental
Tested-with:
                GHC==6.12.3,
                GHC==7.2.2,
                GHC==7.4.1
author:              Aleš Bizjak, Michal Konečný
maintainer:          Michal Konečný <mikkonecny@gmail.com>
Homepage:            http://code.google.com/p/hmpfr/
build-type:          Simple
cabal-version:       >= 1.6
Extra-source-files:  demo/Demo.hs

Data-files:          README
                     dict.txt
                     ChangeLog

source-repository head
  type:     mercurial
  location: https://code.google.com/p/hmpfr/

source-repository this
  type:     mercurial
  location: https://code.google.com/p/hmpfr/
  tag:      0.3.3.1


flag use-integer-simple
  description: Use this when compiling using a ghc that uses integer-simple instead of integer-gmp.
  default: False

Library
  build-Depends:       base > 3 && < 5
  if flag(use-integer-simple)
     build-Depends:    integer-simple
     cpp-options: -DINTEGER_SIMPLE
  else
     build-Depends:    integer-gmp
     cpp-options: -DINTEGER_GMP

  Other-modules:       Data.Number.MPFR.FFIhelper
                       Data.Number.MPFR.Internal
                       Data.Number.MPFR.Mutable.Internal

                       Data.Number.MPFR.Mutable.Arithmetic
                       Data.Number.MPFR.Mutable.Special
                       Data.Number.MPFR.Mutable.Integer
                       Data.Number.MPFR.Mutable.Misc
                       
                       Data.Number.MPFR.Assignment
                       Data.Number.MPFR.Conversion
                       Data.Number.MPFR.Arithmetic
                       Data.Number.MPFR.Comparison
                       Data.Number.MPFR.Special
                       Data.Number.MPFR.Integer
                       Data.Number.MPFR.Misc

  Exposed-modules:     Data.Number.MPFR.Instances.Near
                       Data.Number.MPFR.Instances.Up
                       Data.Number.MPFR.Instances.Down
                       Data.Number.MPFR.Instances.Zero

                       Data.Number.MPFR

                       Data.Number.MPFR.Mutable
                       
  build-tools:         hsc2hs
  GHC-options:         -Wall -fno-warn-orphans
  GHC-prof-options:    -prof -auto
  hs-source-dirs:      src
  include-dirs:        cbits
  includes:            mpfr.h
  install-includes:    chsmpfr.h
  c-sources:           cbits/chsmpfr.c

  extra-libraries:     mpfr