-- Initial cdar.cabal generated by cabal init.  For further documentation, 
-- see http://haskell.org/cabal/users-guide/

name:                cdar-mBound
version:             0.1.0.1
synopsis:            Exact real arithmetic using Centred Dyadic Approximations
description:         Please see https://github.com/michalkonecny/cdar/tree/mBound#readme
license:             BSD3
license-file:        LICENSE
author:              Jens Blanck, Michal Konecny
maintainer:          mikkonecny@gmail.com
-- copyright:           
category:            Data
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10

source-repository head
  type: git
  location: https://github.com/michalkonecny/cdar
  branch: mBound

library
  exposed-modules:
      Data.CDAR
    , Data.CDAR.Classes
    , Data.CDAR.Extended
--    , Data.CDAR.POrd
    , Data.CDAR.Approx
    , Data.CDAR.Dyadic
--    , Data.CDAR.Interval
    , Data.CDAR.IntegerLog
  -- other-modules:       
  other-extensions:    BangPatterns, GADTs, TypeSynonymInstances, FlexibleInstances, DeriveFunctor, MagicHash
  build-depends:
    base >= 4.7 && < 4.15,
    containers,deepseq,integer-gmp
    --   base >=4.7 && <4.10
    -- , containers >=0.5 && <0.6
    -- , deepseq >=1.3 && <1.5
    -- , integer-gmp >=0.5 && <1.1
    -- , QuickCheck >=2.6 && <3
    -- , parallel >=3.2 && <3.3
  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -Wall -fno-warn-type-defaults -O2

-- test-suite test
--   type: exitcode-stdio-1.0
--   main-is: QT.hs
--   build-depends: base, QuickCheck, cdar
--   hs-source-dirs: test
--   default-language: Haskell2010

test-suite test
  type:      exitcode-stdio-1.0
  main-is:    Test.hs
  build-depends:
    base, containers, deepseq, integer-gmp, QuickCheck, smallcheck, tasty-hunit, tasty-quickcheck, tasty-smallcheck, tasty, cdar-mBound
    --   base >=4.7 && <4.10
    -- , containers >=0.5 && <0.6
    -- , deepseq >=1.3 && <1.5
    -- , integer-gmp >=0.5 && <1.1
    -- , QuickCheck >=2.6 && <3
    -- , smallcheck >= 1.1 && < 1.2
    -- , tasty-hunit >= 0.8 && < 0.10
    -- , tasty-quickcheck >= 0.8 && < 0.9
    -- , tasty-smallcheck >= 0.8 && < 0.9
    -- , tasty >= 0.8 && < 0.12
    -- , cdar >= 0.1
    -- , parallel >=3.2 && <3.3
  hs-source-dirs: test
  default-language: Haskell2010

-- Benchmark bench-transcend
--   type:                 exitcode-stdio-1.0
--   main-is:              bench-transcend.hs
--   build-depends:
--       base >=4.7 && <4.9
--     , containers >=0.5 && <0.6
--     , deepseq >=1.3 && <1.5
--     , integer-gmp >=0.5 && <1.1
--     , cdar >= 0.1
--     , criterion >= 1.1 && <1.2
--     , parallel >=3.2 && <3.3
--   hs-source-dirs:       bench
--   default-language: Haskell2010

Benchmark bench
  type:                 exitcode-stdio-1.0
  main-is:              bench.hs
  build-depends:
    base, containers, deepseq, integer-gmp, cdar-mBound, criterion, parallel
    --   base >=4.7 && <4.10
    -- , containers >=0.5 && <0.6
    -- , deepseq >=1.3 && <1.5
    -- , integer-gmp >=0.5 && <1.1
    -- , cdar >= 0.1
    -- , criterion >= 1.1 && <1.2
    -- , parallel >=3.2 && <3.3
  hs-source-dirs:       bench
  default-language: Haskell2010
  ghc-options:         -O2 -rtsopts

-- Benchmark bench-thread
--   type:                 exitcode-stdio-1.0
--   main-is:              bench-thread.hs
--   build-depends:
--       base >=4.7 && <4.10
--     , containers >=0.5 && <0.6
--     , deepseq >=1.3 && <1.5
--     , integer-gmp >=0.5 && <1.1
--     , cdar >= 0.1
--     , criterion >= 1.1 && <1.2
--     , parallel >=3.2 && <3.3
--   hs-source-dirs:       bench
--   default-language: Haskell2010
--   ghc-options:         -threaded -O2 -rtsopts

-- Benchmark BinSplitPar
--   type:                 exitcode-stdio-1.0
--   main-is:              BinSplitPar.hs
--   build-depends:
--       base >=4.7 && <4.10
--     , containers >=0.5 && <0.6
--     , deepseq >=1.3 && <1.5
--     , integer-gmp >=0.5 && <1.1
--     , cdar >= 0.1
--     , criterion >= 1.1 && <1.2
--     , parallel >=3.2 && <3.3
--     , monad-par 
--   hs-source-dirs:       bench
--   default-language: Haskell2010
--   ghc-options:         -threaded -O2 -rtsopts

Executable examples
  hs-source-dirs:      examples
  main-is:             Main.hs
  other-modules:       ExamplesRump
  build-depends:
    base, containers, deepseq, integer-gmp, cdar-mBound
    --   base >= 4 && < 5
    -- , cdar >= 0.1
    -- , containers >= 0.5 && < 0.6
    -- , deepseq >=1.3 && <1.5
    -- , integer-gmp >=0.5 && <1.1
    -- , cdar >= 0.1
    -- , criterion >= 1.1 && <1.2
    -- , parallel >=3.2 && <3.3
  default-language: Haskell2010

Executable logistic
  hs-source-dirs:	examples
  main-is:		Logistic.hs
  build-depends:        base, cdar-mBound
  default-language:	Haskell2010

--SinBorwein, Time,