packages feed

SciBaseTypes-0.1.1.0: SciBaseTypes.cabal

Cabal-version:  2.2
Name:           SciBaseTypes
Version:        0.1.1.0
License:        BSD-3-Clause
License-file:   LICENSE
Author:         Christian Hoener zu Siederdissen
Maintainer:     choener@bioinf.uni-leipzig.de
Copyright:      Christian Hoener zu Siederdissen, 2018-2021
homepage:       https://github.com/choener/SciBaseTypes
bug-reports:    https://github.com/choener/SciBaseTypes/issues
Stability:      Experimental
Category:       Data
Build-type:     Simple
tested-with:    GHC == 8.8, GHC == 8.10, GHC == 9.0
Synopsis:       Base types and classes for statistics, sciences and humanities
Description:
                This library provides a set of basic types and classes for
                statistics, sciences, and the humanities.



extra-source-files:
  changelog.md
  README.md



flag debugdump
  description:  Enable dumping intermediate / core files
  default:      False
  manual:       True



common deps
  build-depends: base                     >= 4.7      &&  < 5.0
               , aeson                    >= 1.0
               , binary                   >= 0.7
               , cereal                   >= 0.4
               , deepseq                  >= 1.4
               , hashable                 >= 1.2
               , lens                     >= 4.0
               , log-domain               >= 0.12
               , mtl                      >= 2.0
               , semirings                >= 0.5
               , vector                   >= 0.10
               , vector-th-unbox          >= 0.2
               --
               , DPutils                  == 0.1.1.*
  default-language:
    Haskell2010
  ghc-options:
    -O2
    -funbox-strict-fields
  default-extensions: BangPatterns
                    , ConstraintKinds
                    , DataKinds
                    , DeriveGeneric
                    , DerivingStrategies
                    , FlexibleContexts
                    , FlexibleInstances
                    , GeneralizedNewtypeDeriving
                    , LambdaCase
                    , MultiParamTypeClasses
                    , PolyKinds
                    , RankNTypes
                    , ScopedTypeVariables
                    , StandaloneDeriving
                    , TemplateHaskell
                    , TupleSections
                    , TypeApplications
                    , TypeFamilies
                    , TypeOperators
                    , UndecidableInstances
                    , UnicodeSyntax



library
  import: deps
  exposed-modules:
    Algebra.Structure.Semiring
    Numeric.Discretized
    Numeric.Limits
    Numeric.LogDomain
    StatisticalMechanics.Ensemble
    Statistics.Odds
    Statistics.Probability
  if flag(debugdump)
    ghc-options:
      -ddump-to-file
      -ddump-simpl
      -dsuppress-all



benchmark BenchmarkSciBaseTypes
  import: deps
  build-depends: base
               , SciBaseTypes
  hs-source-dirs:
    tests
  main-is:
    Benchmark.hs
  type:
    exitcode-stdio-1.0
  ghc-options:
    -funfolding-use-threshold1000
    -funfolding-keeness-factor1000



test-suite properties
  import: deps
  type:
    exitcode-stdio-1.0
  main-is:
    properties.hs
  ghc-options:
    -O0 -threaded -rtsopts -with-rtsopts=-N
  hs-source-dirs:
    tests
  build-depends: base
               , SciBaseTypes
               , QuickCheck                   >= 2.7
               , tasty                        >= 0.11
               , tasty-quickcheck             >= 0.8
               , tasty-th                     >= 0.1



source-repository head
  type: git
  location: git://github.com/choener/SciBaseTypes