packages feed

polynomial-0.7.3: polynomial.cabal

name:                   polynomial
version:                0.7.3
stability:              provisional

cabal-version:          >= 1.8
build-type:             Simple

author:                 James Cook <mokus@deepbondi.net>
maintainer:             James Cook <mokus@deepbondi.net>
license:                PublicDomain
homepage:               https://github.com/mokus0/polynomial

category:               Math, Numerical
synopsis:               Polynomials
description:            A type for representing polynomials, several functions
                        for manipulating and evaluating them, and several
                        interesting polynomial sequences.

tested-with:            GHC == 7.8.4,
                        GHC == 7.10.3,
                        GHC == 8.0.2,
                        GHC == 8.1.*

source-repository head
  type: git
  location: git://github.com/mokus0/polynomial.git

Library
  ghc-options:          -Wall -fno-warn-name-shadowing
  if impl(ghc >= 7.4)
    ghc-options:        -fwarn-unsafe
  hs-source-dirs:       src
  exposed-modules:      Math.Polynomial
                        Math.Polynomial.Bernstein
                        Math.Polynomial.Bernoulli
                        Math.Polynomial.Chebyshev
                        Math.Polynomial.Hermite
                        Math.Polynomial.Interpolation
                        Math.Polynomial.Lagrange
                        Math.Polynomial.Legendre
                        Math.Polynomial.Newton
                        Math.Polynomial.NumInstance
                        Math.Polynomial.Type
                        Math.Polynomial.VectorSpace
  other-modules:        Data.List.ZipSum
                        Data.VectorSpace.WrappedNum
                        Math.Polynomial.Pretty
  
  build-depends:        base >= 3 && <5,
                        deepseq,
                        vector,
                        vector-space,
                        vector-th-unbox >= 0.2.1
  
  if impl(ghc < 7.10)
    build-depends:      pretty < 1.1.2, prettyclass
  else
    build-depends:      pretty >= 1.1.2

Test-Suite polynomial-test
  type:                 exitcode-stdio-1.0
  hs-source-dirs:       test
  main-is:              Tests.hs
  
  build-depends:        base >= 3 && <5, 
                        HUnit == 1.2.*,
                        polynomial,
                        QuickCheck >= 2, 
                        test-framework, 
                        test-framework-hunit,
                        test-framework-quickcheck2,
                        vector,
                        vector-space