packages feed

exchangealgebra-0.5.0.0: exchangealgebra.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.39.6.
--
-- see: https://github.com/sol/hpack

name:           exchangealgebra
version:        0.5.0.0
synopsis:       Exchange Algebra for bookkeeping and economic simulation
description:    Please see the README on GitHub at <https://github.com/yakagika/ExchangeAlgebra#readme>
category:       Accounting, Finance, Math
homepage:       https://github.com/yakagika/ExchangeAlgebra#readme
bug-reports:    https://github.com/yakagika/ExchangeAlgebra/issues
author:         Kaya Akagi
maintainer:     yakagika@icloud.com
copyright:      2018-2026 Kaya Akagi
license:        OtherLicense
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    ChangeLog.md
    docs/migration-0.5-derived-metrics.md

source-repository head
  type: git
  location: https://github.com/yakagika/ExchangeAlgebra

flag visualize
  description: Build ExchangeAlgebra.Simulate.Visualize, which needs Chart, Chart-cairo and a cairo / pango toolchain. Disable with --flag exchangealgebra:-visualize to use the accounting algebra without plotting.
  manual: True
  default: True

library
  exposed-modules:
      ExchangeAlgebra
      ExchangeAlgebra.Accounting.PostingPolicy
      ExchangeAlgebra.Algebra
      ExchangeAlgebra.Algebra.Base
      ExchangeAlgebra.Algebra.Base.Account.JcciAliases
      ExchangeAlgebra.Algebra.Base.Account.Registry
      ExchangeAlgebra.Algebra.Base.Account.Types
      ExchangeAlgebra.Algebra.Base.Element
      ExchangeAlgebra.Algebra.Internal
      ExchangeAlgebra.Algebra.Transfer
      ExchangeAlgebra.Assist
      ExchangeAlgebra.Assist.Descriptions
      ExchangeAlgebra.Bookkeeping
      ExchangeAlgebra.Consolidation.Worksheet
      ExchangeAlgebra.Convert
      ExchangeAlgebra.Convert.Checked
      ExchangeAlgebra.Convert.Csv
      ExchangeAlgebra.Journal
      ExchangeAlgebra.Journal.Transfer
      ExchangeAlgebra.Optimize
      ExchangeAlgebra.Optimize.Annealing
      ExchangeAlgebra.Optimize.GA
      ExchangeAlgebra.Reporting.Group
      ExchangeAlgebra.Reporting.Metric
      ExchangeAlgebra.Reporting.Presentation
      ExchangeAlgebra.Simulate
      ExchangeAlgebra.Simulate.Lite
      ExchangeAlgebra.Simulate.Network
      ExchangeAlgebra.Simulate.Policy
      ExchangeAlgebra.Simulate.Spill
      ExchangeAlgebra.TrialBalance.Balance
      ExchangeAlgebra.TrialBalance.Validation
      ExchangeAlgebra.Value
      ExchangeAlgebra.Write
  other-modules:
      Paths_exchangealgebra
  hs-source-dirs:
      src
  ghc-options: -feager-blackholing
  build-depends:
      Decimal ==0.5.*
    , array >=0.5.5 && <0.6
    , async ==2.2.*
    , base >=4.17 && <5
    , binary ==0.8.*
    , bytestring >=0.11 && <0.13
    , containers >=0.6 && <0.8
    , deepseq >=1.4 && <1.6
    , hashable >=1.4 && <1.6
    , non-negative >=0.1.2 && <0.2
    , numeric-prelude >=0.4.4 && <0.5
    , parallel ==3.2.*
    , random ==1.2.*
    , scientific >=0.3.7 && <0.4
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , unicode-show ==0.1.*
    , unordered-containers >=0.2.19 && <0.3
    , vector ==0.13.*
  default-language: Haskell2010
  if flag(visualize)
    exposed-modules:
        ExchangeAlgebra.Simulate.Visualize
    build-depends:
        Chart ==1.9.*
      , Chart-cairo ==1.9.*
  else

test-suite ExchangeAlgebra-doctest
  type: exitcode-stdio-1.0
  main-is: test/doctests.hs
  other-modules:
      Paths_exchangealgebra
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      Decimal ==0.5.*
    , array >=0.5.5 && <0.6
    , async ==2.2.*
    , base >=4.17 && <5
    , binary ==0.8.*
    , bytestring >=0.11 && <0.13
    , containers >=0.6 && <0.8
    , deepseq >=1.4 && <1.6
    , doctest
    , exchangealgebra
    , hashable >=1.4 && <1.6
    , non-negative >=0.1.2 && <0.2
    , numeric-prelude >=0.4.4 && <0.5
    , parallel ==3.2.*
    , random ==1.2.*
    , scientific >=0.3.7 && <0.4
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , unicode-show ==0.1.*
    , unordered-containers >=0.2.19 && <0.3
    , vector ==0.13.*
  default-language: Haskell2010
  if os(darwin)
    ghc-options: -optl-Wl,-no_warn_duplicate_libraries

test-suite ExchangeAlgebra-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_exchangealgebra
  hs-source-dirs:
      test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      Decimal ==0.5.*
    , QuickCheck >=2.14 && <3
    , array >=0.5.5 && <0.6
    , async ==2.2.*
    , base >=4.17 && <5
    , binary ==0.8.*
    , bytestring >=0.11 && <0.13
    , containers >=0.6 && <0.8
    , deepseq >=1.4 && <1.6
    , directory ==1.3.*
    , exchangealgebra
    , hashable >=1.4 && <1.6
    , mtl ==2.3.*
    , non-negative >=0.1.2 && <0.2
    , numeric-prelude >=0.4.4 && <0.5
    , parallel ==3.2.*
    , random ==1.2.*
    , scientific >=0.3.7 && <0.4
    , text >=2.0 && <2.2
    , time >=1.12 && <1.15
    , unicode-show ==0.1.*
    , unordered-containers >=0.2.19 && <0.3
    , vector ==0.13.*
  default-language: Haskell2010
  if os(darwin)
    ghc-options: -optl-Wl,-no_warn_duplicate_libraries