packages feed

deka-0.6.0.0: deka.cabal

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

description:

  deka provides decimal floating point arithmetic.  It is based on
  mpdecimal, the C library used to provide support for the Decimal
  module in Python 3.
  .
  You will need to install mpdecimal to use deka; otherwise your
  executables will not link.  It is available at
  .
  <http://www.bytereef.org/mpdecimal/>
  .
  mpdecimal has also been packaged for some Linux distributions,
  such as Debian (libmpdec-dev - available in Jessie and later) and
  Arch (mpdecimal).
  .
  mpdecimal, in turn, implements the General Decimal Arithmetic
  Specification, which is available at
  .
  <http://speleotrove.com/decimal/>
  .
  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.3, GHC ==7.8.2

library
  hs-source-dirs: lib
  
  exposed-modules:     
      Deka
    , Deka.Context
    , Deka.Dec
    , Deka.Docs
    , Deka.Docs.Examples
    , Deka.Native
    , Deka.Native.Abstract
    , Deka.Native.FromString

  other-modules:
      Deka.Internal.Context
    , Deka.Internal.Dec.CtxFree
    , Deka.Internal.Dec.Ctx
    , Deka.Internal.Unsafe
    , Deka.Internal.Mpdec
    , Deka.Internal.Util.Ctx

  build-depends:
      base >=4.5.0.0 && < 4.8
    , bytestring >=0.9.2.1 && < 0.11
    , parsec >= 3.1.2 && < 3.2
    , transformers >= 0.3.0.0 && < 0.4

  ghc-options: -Wall
  default-language:    Haskell2010

  extra-libraries: mpdec

Test-Suite dectest
  Build-depends:
      deka ==0.6.0.0
    , base >= 4.5.0.0 && < 4.8
    , bytestring >=0.9.2.1 && < 0.11
    , transformers >= 0.3.0.0 && < 0.4.0.0
    , containers >= 0.4.2.1 && < 0.6
    , pipes >= 4.1.1 && < 4.2

  type: exitcode-stdio-1.0
  hs-source-dirs: dectest
  ghc-options: -Wall
  main-is: dectest.hs
  other-modules:
      AllModules
    , Arity
    , Conditions
    , Directives
    , NumTests
    , Operand
    , Parse
    , Parse.Tokenizer
    , Parse.Tokens
    , Result
    , Runner
    , Specials
    , TestHelpers
    , TestLog
    , Types
    , Util
  default-language: Haskell2010
  extra-libraries: mpdec

Test-Suite native
  Build-depends:
      deka ==0.6.0.0
    , base >= 4.5.0.0 && < 4.8
    , bytestring >=0.9.2.1 && < 0.11
    , QuickCheck >= 2.7.3 && < 2.8
    , tasty >= 0.8.0.4 && < 0.9
    , tasty-quickcheck >= 0.8.0.3 && < 0.9

  type: exitcode-stdio-1.0
  hs-source-dirs: native
  ghc-options: -Wall
  main-is: native.hs
  other-modules:
      AllModules
    , Generators
    , Properties
  default-language: Haskell2010
  extra-libraries: mpdec