author: Julien Moutinho <julm+hcompta@autogeree.net>
-bug-reports: http://doc.autogeree.net/hcompta/bugs
+-- bug-reports: http://bug.autogeree.net/hcompta
build-type: Simple
-cabal-version: >= 1.8
+cabal-version: >= 1.24
category: Finance
-- data-dir: data
-- data-files:
-description: Accounting software.
-extra-source-files: Test.hs
+description:
+ Accounting.
+extra-source-files:
extra-tmp-files:
-homepage: http://doc.autogeree.net/hcompta
-license: GPL
+-- homepage: http://doc.autogeree.net/hcompta
+license: GPL-3
license-file: COPYING
maintainer: Julien Moutinho <julm+hcompta@autogeree.net>
name: hcompta-lib
stability: experimental
-synopsis: hcompta
-tested-with: GHC==7.8.4
-version: 0.0.0
+synopsis: Accounting software.
+tested-with: GHC==8.0.1
+version: 3.20170704
-source-repository head
+Source-Repository head
location: git://git.autogeree.net/hcompta
type: git
Flag dev
Default: False
Description: Turn on development settings.
-
-Flag double
- Default: False
- Description: Use old Double number representation (instead of Decimal), for testing/benchmarking.
+ Manual: True
Flag dump
Default: False
Flag prof
Default: False
Description: Turn on profiling settings.
+ Manual: True
+
+Flag threaded
+ Default: False
+ Description: Enable threads.
+ Manual: True
Library
+ default-extensions:
+ NoImplicitPrelude
+ BangPatterns
+ DeriveDataTypeable
+ FlexibleContexts
+ FlexibleInstances
+ GeneralizedNewtypeDeriving
+ MultiParamTypeClasses
+ NamedFieldPuns
+ OverloadedStrings
+ RecordWildCards
+ ScopedTypeVariables
+ TupleSections
+ TypeApplications
+ TypeFamilies
+ TypeOperators
ghc-options: -Wall -fno-warn-tabs
if flag(dev)
cpp-options: -DDEVELOPMENT
ghc-options:
- -- -ddump-splices
- -- -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
- -- -fno-warn-type-defaults -fno-warn-orphans
- else
- ghc-options: -O2
if flag(prof)
cpp-options: -DPROFILING
- ghc-options: -O2 -fprof-auto
- if flag(double)
- cpp-options: -DDOUBLE
+ ghc-options: -fprof-auto
+ -- if flag(double)
+ -- cpp-options: -DDOUBLE
if flag(dump)
ghc-options: -ddump-simpl -ddump-stg -ddump-to-file
- -- default-language: Haskell2010
+ default-language: Haskell2010
exposed-modules:
- Hcompta.Account
- Hcompta.Account.Read
- Hcompta.Amount
- Hcompta.Amount.Quantity
- Hcompta.Amount.Read
- Hcompta.Amount.Style
- Hcompta.Amount.Unit
- Hcompta.Amount.Write
+ Hcompta
Hcompta.Balance
+ Hcompta.Data
Hcompta.Date
- Hcompta.Date.Interval
- Hcompta.Date.Read
- Hcompta.Date.Write
- Hcompta.Filter
- Hcompta.Filter.Read
- Hcompta.Filter.Reduce
- Hcompta.Format.CSV
- Hcompta.Format.Ledger
- Hcompta.Format.Ledger.Journal
- Hcompta.Format.Ledger.Read
- Hcompta.Format.Ledger.Write
Hcompta.GL
- Hcompta.Journal
- Hcompta.Lib.Consable
Hcompta.Lib.Foldable
- Hcompta.Lib.Interval
- Hcompta.Lib.Interval.Sieve
- Hcompta.Lib.Leijen
- Hcompta.Lib.Map.Strict
- Hcompta.Lib.NonEmpty
- Hcompta.Lib.Parsec
- Hcompta.Lib.Path
- Hcompta.Lib.Regex
Hcompta.Lib.Strict
- Hcompta.Lib.TreeMap
- Hcompta.Posting
- Hcompta.Stats
- Hcompta.Tag
+ Hcompta.Quantity
build-depends:
- base >= 4.7 && < 5
- , ansi-terminal >= 0.4 && < 0.7
- , array
+ base >= 4.6 && < 5
, containers >= 0.5 && < 0.6
-- NOTE: needed for Data.Map.Strict
- -- , collections-api
- -- , collections-base-instances
, Decimal
- , deepseq
+ , deepseq >= 1.4.0.0 && < 1.5
+ -- NOTE: needed for NFData (Const a b)
, directory
, filepath
- , fingertree
+ -- , integer-gmp
+ , mono-traversable
+ , semigroups
+ , strict
+ , text
+ , time
+ , transformers >= 0.4 && < 0.6
+ -- NOTE: needed for Control.Monad.Trans.Except
+ , treemap
+ , unix >= 2.7.2.0
+ -- , symantic
+ -- , trace
+ -- , ansi-terminal >= 0.4 && < 0.7
+ -- , array
+ -- , collections-api
+ -- , collections-base-instances
+ -- , fingertree
-- , HUnit
- , integer-gmp
+ -- , interval
-- , lens
-- , mmorph
-- , mtl >= 2.0
- , parsec >= 3.1.2 && < 4
+ -- , parsec >= 3.1.2 && < 4
-- NOTE: needed for Text.Parsec.Text
- , regex-base
- , regex-tdfa
- , regex-tdfa-text
+ -- , parsec-error-custom
+ -- , regex-base
+ -- , regex-tdfa
+ -- , regex-tdfa-text
-- , safe >= 0.2
- , semigroups
- , strict
- , test-framework
- , test-framework-hunit
- , text
- , time
- -- , trace
- , transformers >= 0.4 && < 0.5
- -- NOTE: needed for Control.Monad.Trans.Except
-test-suite Test
+Test-Suite hcompta-test
type: exitcode-stdio-1.0
- main-is: Main.hs
- hs-source-dirs: Test
- ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures
- ghc-options: -fno-warn-type-defaults -fno-warn-orphans -fno-warn-tabs
- -- default-language: Haskell2010
+ default-language: Haskell2010
+ default-extensions: NoImplicitPrelude
+ ghc-options: -Wall -fno-warn-tabs
+ -main-is Test
+ hs-source-dirs: Hcompta
+ main-is: Test.hs
+ other-modules:
+ -- Account.Test
+ Balance.Test
+ if flag(threaded)
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
+ if flag(dev)
+ cpp-options: -DDEVELOPMENT
+ ghc-options:
+ if flag(prof)
+ cpp-options: -DPROFILING
+ ghc-options: -fprof-auto
build-depends:
- hcompta-lib
- , base >= 4.7 && < 5
+ base >= 4.6 && < 5
, containers >= 0.5 && < 0.6
, Decimal
- , HUnit
- , parsec >= 3.1.2 && < 4
- -- , safe
+ , hcompta-lib
+ , mono-traversable
, semigroups
, strict
- , test-framework
- , test-framework-hunit
+ , tasty >= 0.11
+ , tasty-hunit
, text
- , time
- , transformers
+ , transformers >= 0.4 && < 0.6
+ , treemap