packages feed

hquantlib-0.0.5.2: hquantlib.cabal

cabal-version:  3.0
name:           hquantlib
version:        0.0.5.2
license:        LGPL-3.0-only
license-file:   LICENSE
author:         Pavel Ryzhov
maintainer:     Pavel Ryzhov <pavel.ryzhov@gmail.com>
category:       Finance
synopsis:       HQuantLib is a port of essencial parts of QuantLib to Haskell
description:    HQuantLib is intended to be a functional style port of QuantLib (<http://quantlib.org>)
build-type:     Simple
stability:      alpha
homepage:       http://github.com/paulrzcz/hquantlib.git
extra-doc-files: readme.md, changelog.md


source-repository head
        type:           git
        location:       https://github.com/paulrzcz/hquantlib.git

source-repository this
        type:           git
        location:       https://github.com/paulrzcz/hquantlib.git
        tag:            0.0.5.2

flag optimize
        description : Enable optimizations for library and benchmarks
        default     : True

library
        default-language: Haskell2010
        exposed-modules:
                QuantLib
                QuantLib.Event
                QuantLib.Instruments
                QuantLib.Currencies
                QuantLib.Stochastic
                QuantLib.Priceable
                QuantLib.PricingEngines
                QuantLib.PricingEngines.BlackFormula
                QuantLib.Quotes
                QuantLib.TimeSeries
                QuantLib.Money
                QuantLib.Math
                QuantLib.Math.Copulas
                QuantLib.Models
                QuantLib.Models.Volatility
                QuantLib.Prices
                QuantLib.Position
                QuantLib.Options
                QuantLib.Methods.MonteCarlo
                QuantLib.Methods.Pricer

        other-modules:
                QuantLib.Currencies.America
                QuantLib.Currencies.Europe
                QuantLib.Instruments.Instrument
                QuantLib.Instruments.Stock
                QuantLib.Stochastic.Discretize
                QuantLib.Stochastic.Process
                QuantLib.Stochastic.Random
                QuantLib.Currency
                QuantLib.Math.InverseNormal
                QuantLib.Stochastic.PureMT

        build-depends:
                        base                    >3              && <5,
                        random                  >= 1.0          && < 2.0,
                        time                    >= 1.9.0.0      && < 1.15.0.0,
                        containers              >= 0.6.0.0      && < 0.8.0.0,
                        hmatrix                 >= 0.20.0.0     && < 0.21.0.0,
                        hmatrix-gsl             >= 0.19.0.0     && < 0.20.0.0,
                        hmatrix-special         >= 0.19.0       && < 0.20.0,
                        parallel                >= 3.2.0.0      && < 3.3.0.0,
                        mersenne-random-pure64  >= 0.2.0.0      && < 0.3.0.0,
                        statistics              >= 0.15.0.0     && < 0.16.0.0,
                        vector                  >= 0.11.0.0     && < 0.13.0.0,
                        vector-algorithms       >= 0.8.0.0      && < 0.9.0.0,
                        hquantlib-time          >= 0.0.5.1      && < 0.0.6.0

        hs-source-dirs: src
        ghc-options:    -Wall
        if flag(optimize)
                ghc-options: -funbox-strict-fields -fspec-constr -fdicts-cheap

executable mctest
      default-language:     Haskell2010
      main-is         :     Tests/McTest.hs
      hs-source-dirs  :     src
      ghc-options     :     -threaded -rtsopts
      other-modules   :     QuantLib.Math.InverseNormal
                            QuantLib.Methods.MonteCarlo
                            QuantLib.Methods.Pricer
                            QuantLib.Stochastic
                            QuantLib.Stochastic.Discretize
                            QuantLib.Stochastic.Process
                            QuantLib.Stochastic.Random
                            QuantLib.Stochastic.PureMT
      build-depends   :     base,
                            hquantlib,
                            parallel,
                            mersenne-random-pure64,
                            containers,
                            time

Test-Suite main-test
        default-language:   Haskell2010
        type            :   exitcode-stdio-1.0
        main-is         :   Test.hs
        hs-source-dirs  :   src
        build-depends   :   base                    >3              && <5,
                            test-framework  >= 0.8                && < 0.9,
                            test-framework-hunit >= 0.3.0         && < 0.4.0,
                            test-framework-quickcheck2 >= 0.3.0.0 && < 0.4.0,
                            QuickCheck      >= 2.8.0              && < 3.0.0,
                            HUnit           >= 1.2.5.2            && < 2.0.0.0