packages feed

deka-0.4.0.2: deka.cabal

name:                deka
version:             0.4.0.2
synopsis:            Decimal floating point arithmetic

description:
  deka provides decimal floating point arithmetic.  It
  is based on the decNumber C library, which is available
  at
  .
  <http://speleotrove.com/decimal/decnumber.html>
  .
  decNumber, in turn, implements the General Decimal Arithmetic
  Specification, which is available at
  .
  <http://speleotrove.com/decimal/>
  .
  To use deka, you will first need to install the decNumber
  C library.  To make this easy for users of UNIX-like operating
  systems, I have packaged decNumber; the package is at
  .
  <https://github.com/massysett/decnumber/releases>
  .
  For more on deka, please see the Github home page at
  .
  <https://github.com/massysett/deka>

homepage:            http://www.github.com/massysett/deka
license:             BSD3
license-file:        LICENSE
author:              Omari Norman
maintainer:          omari@smileystation.com
copyright:           2014 Omari Norman
category:            Math
build-type:          Simple
extra-source-files:  README.md ChangeLog
  current-versions.txt minimum-versions.txt
cabal-version:       >=1.10
tested-with: GHC==7.4.1 GHC==7.6.2

library
  hs-source-dirs: lib
  extra-libraries: decnumber
  
  exposed-modules:     
      Data.Deka
    , Data.Deka.Quad
    , Data.Deka.Docs
    , Data.Deka.Docs.Examples

  other-modules:
      Data.Deka.Decnumber
    , Data.Deka.Internal
  
  build-depends:
      base >=4.5.0.0 && < 5
    , bytestring >=0.9.2.1

  ghc-options: -Wall
  default-language:    Haskell2010

-- The test suite does not have deka listed in the build-depends.
-- This lengthens the compilation times but it allows the test suite
-- to have access to Data.Deka.Internal, which is critical for
-- testing.

Test-Suite tasty-test
  Build-depends:
      base >=4.5.0.0 && < 5
    , tasty-quickcheck >=0.3.1
    , tasty >=0.7
    , QuickCheck >=2.6
    , bytestring >=0.9.2.1

  extra-libraries: decnumber

  other-modules:
      Data.Deka
    , Data.Deka.Internal
    , Data.Deka.Decnumber
    , Data.Deka.Quad
    , Data.Deka.Docs
    , Data.Deka.Docs.Examples

    , DataDir
    , DataDir.DekaDir
    , DataDir.DekaTest
    , DataDir.DekaDir.QuadTest

  type: exitcode-stdio-1.0
  hs-source-dirs: test lib
  ghc-options: -Wall -rtsopts -fprof-auto
  main-is: tasty-test.hs
  default-language:    Haskell2010