name:                hmpfr
version:             0.4.3
synopsis:            Haskell binding to the MPFR library
description:
  Haskell binding to the MPFR library.
  .
  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==7.10.3
                GHC==8.0.1
author:              Aleš Bizjak, Michal Konečný
maintainer:          Michal Konečný <mikkonecny@gmail.com>
Homepage:            https://github.com/michalkonecny/hmpfr
build-type:          Simple
cabal-version:       >= 1.6
Extra-source-files:  demo/Demo.hs

Data-files:
  README.md
  dict.txt
  ChangeLog

source-repository head
  type:     git
  location: https://github.com/michalkonecny/hmpfr

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 >= 4.8 && < 5
  if flag(use-integer-simple)
     build-Depends:    integer-simple
     cpp-options: -DINTEGER_SIMPLE
  else
     build-Depends:    integer-gmp >= 1.0 && < 1.1
     cpp-options: -DINTEGER_GMP

  Exposed-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

                       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

  GHC-options:         -Wall -fno-warn-orphans
  hs-source-dirs:      src
  include-dirs:        cbits
  includes:            mpfr.h
  install-includes:    chsmpfr.h
  c-sources:           cbits/chsmpfr.c

  extra-libraries:     mpfr