hpdeifel / hledger-iadd

A terminal UI as drop-in replacement for hledger add.
BSD 3-Clause "New" or "Revised" License
77 stars 8 forks source link

hledger-iadd-1.3.13 fails one test: tests/ModelSpec.hs:191: 1) Model.isDuplicateTransaction ignores amount presentation: uncaught exception: ErrorCall: Prelude.read: no parse #53

Closed trofi closed 3 years ago

trofi commented 3 years ago

Full build.log:

 * Package:    dev-haskell/hledger-iadd-1.3.13
 * Repository: haskell
 * Maintainer: haskell@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc hscolour kernel_linux test userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox
 * Package:    dev-haskell/hledger-iadd-1.3.13
 * Repository: haskell
 * Maintainer: haskell@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc hscolour kernel_linux test userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox
>>> Unpacking source...
>>> Unpacking hledger-iadd-1.3.13.tar.gz to /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work
>>> Source unpacked in /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work
/tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13 /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work
подсказка: Using 'master' as the name for the initial branch. This default branch name
подсказка: is subject to change. To configure the initial branch name to use in all
подсказка: of your new repositories, which will suppress this warning, call:
подсказка:
подсказка:      git config --global init.defaultBranch <name>
подсказка:
подсказка: Names commonly chosen instead of 'master' are 'main', 'trunk' and
подсказка: 'development'. The just-created branch can be renamed via this command:
подсказка:
подсказка:      git branch -m <name>
Инициализирован пустой репозиторий Git в /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13/.git/
/tmp/portage/dev-haskell/hledger-iadd-1.3.13/work
>>> Preparing source in /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13 ...
>>> Source prepared.
/tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13 /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13
На ветке master
нечего коммитить, нет изменений в рабочем каталоге
/tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13
>>> Configuring source in /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13 ...
 * Using cabal-3.2.1.0.
 * Prepending /usr/lib64/ghc-8.10.4 to LD_LIBRARY_PATH
/usr/bin/ghc -package Cabal-3.2.1.0 --make /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13/Setup.hs -j4 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup
[1 of 1] Compiling Main             ( /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13/Setup.hs, /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13/Setup.o )
Linking setup ...
./setup configure --ghc --prefix=/usr --with-compiler=/usr/bin/ghc --with-hc-pkg=/usr/bin/ghc-pkg --prefix=/usr --libdir=/usr/lib64 --libsubdir=hledger-iadd-1.3.13/ghc-8.10.4 --datadir=/usr/share/ --datasubdir=hledger-iadd-1.3.13/ghc-8.10.4 --enable-tests --ghc-options=-j4 +RTS -A256M -qb0 -RTS --with-ar=x86_64-pc-linux-gnu-ar --ghc-option=-optc-march=sandybridge --ghc-option=-optc-mtune=sandybridge --ghc-option=-optc-maes --ghc-option=-optc--param=l1-cache-size=32 --ghc-option=-optc--param=l1-cache-line-size=64 --ghc-option=-optc--param=l2-cache-size=8192 --ghc-option=-optc-O2 --ghc-option=-optc-pipe --ghc-option=-optc-fdiagnostics-show-option --ghc-option=-optc-frecord-gcc-switches --ghc-option=-optc-Wall --ghc-option=-optc-Wextra --ghc-option=-optc-Wstack-protector --ghc-option=-optc-frecord-gcc-switches --ghc-option=-optc-frecord-gcc-switches --ghc-option=-optc-ggdb3 --ghc-option=-optl-Wl,-O1 --ghc-option=-optl-Wl,--as-needed --ghc-option=-optl-Wl,--hash-style=gnu --ghc-option=-optl-Wl,--defsym=__gentoo_check_ldflags__=0 --disable-executable-stripping --docdir=/usr/share/doc/hledger-iadd-1.3.13 --verbose --enable-shared --enable-executable-dynamic --sysconfdir=/etc --disable-library-stripping
Using Parsec parser
Configuring hledger-iadd-1.3.13...
Dependency base >=4.9 && <5: using base-4.14.1.0
Dependency brick >=0.27: using brick-0.52.1
Dependency containers -any: using containers-0.6.2.1
Dependency directory -any: using directory-1.3.6.0
Dependency free >=4.12.4: using free-5.1.5
Dependency hledger-lib >=1.20.99 && <1.22: using hledger-lib-1.21
Dependency megaparsec >=7.0 && <9.1: using megaparsec-9.0.1
Dependency microlens -any: using microlens-0.4.11.2
Dependency microlens-th -any: using microlens-th-0.4.3.8
Dependency optparse-applicative -any: using optparse-applicative-0.15.1.0
Dependency semigroups >=0.5.0: using semigroups-0.18.5
Dependency text -any: using text-1.2.4.1
Dependency text-zipper >=0.10: using text-zipper-0.10.1
Dependency time >=1.5: using time-1.9.3
Dependency transformers >=0.3: using transformers-0.5.6.2
Dependency unordered-containers -any: using unordered-containers-0.2.13.0
Dependency vector -any: using vector-0.12.1.2
Dependency vty >=5.4: using vty-5.27
Dependency xdg-basedir -any: using xdg-basedir-0.2.2
Dependency base >=4.9 && <5: using base-4.14.1.0
Dependency brick >=0.27: using brick-0.52.1
Dependency directory -any: using directory-1.3.6.0
Dependency free >=4.12.4: using free-5.1.5
Dependency hledger-iadd -any: using hledger-iadd-1.3.13
Dependency hledger-lib >=1.20.99 && <1.22: using hledger-lib-1.21
Dependency megaparsec >=7.0 && <9.1: using megaparsec-9.0.1
Dependency microlens -any: using microlens-0.4.11.2
Dependency optparse-applicative -any: using optparse-applicative-0.15.1.0
Dependency text -any: using text-1.2.4.1
Dependency text-zipper >=0.10: using text-zipper-0.10.1
Dependency time >=1.5: using time-1.9.3
Dependency transformers >=0.3: using transformers-0.5.6.2
Dependency unordered-containers -any: using unordered-containers-0.2.13.0
Dependency vector -any: using vector-0.12.1.2
Dependency vty >=5.4: using vty-5.27
Dependency xdg-basedir -any: using xdg-basedir-0.2.2
Dependency QuickCheck -any: using QuickCheck-2.14.2
Dependency base >=4.9 && <5: using base-4.14.1.0
Dependency free >=4.12.4: using free-5.1.5
Dependency hledger-iadd -any: using hledger-iadd-1.3.13
Dependency hledger-lib >=1.20.99 && <1.22: using hledger-lib-1.21
Dependency hspec -any: using hspec-2.7.8
Dependency megaparsec >=7.0 && <9.1: using megaparsec-9.0.1
Dependency text -any: using text-1.2.4.1
Dependency text-zipper >=0.10: using text-zipper-0.10.1
Dependency time >=1.5: using time-1.9.3
Dependency transformers >=0.3: using transformers-0.5.6.2
Dependency vector -any: using vector-0.12.1.2
Source component graph:
    component lib
    component exe:hledger-iadd dependency lib
    component test:spec dependency lib
Configured component graph:
    component hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH
        include base-4.14.1.0
        include brick-0.52.1-3RbYdykEYGGIZTmpxd3vaY
        include containers-0.6.2.1
        include directory-1.3.6.0
        include free-5.1.5-3CrVix2dkgX6K1v7F7egQ0
        include hledger-lib-1.21-SFVGI1ZXlYLHOqlBnrqHb
        include megaparsec-9.0.1-LOiN8BEVmZhGAWraflXo04
        include microlens-0.4.11.2-9caS3Frz8K54yIHXMtlddL
        include microlens-th-0.4.3.8-2I7HJ30mlnq8jMa2ukbvhr
        include optparse-applicative-0.15.1.0-At0ou1hSnbtGeeAktaduQK
        include semigroups-0.18.5-Ane5rZgHQZLBMDItXO5ZVb
        include text-1.2.4.1
        include text-zipper-0.10.1-seeyxI5xIcLsUvkRkrv5c
        include time-1.9.3
        include transformers-0.5.6.2
        include unordered-containers-0.2.13.0-BCThU5O9UAzGUwowCN4YxW
        include vector-0.12.1.2-2kVzVrpwTerLUhGUERJIPa
        include vty-5.27-4ETznU0gbsFEQSPA9KKbRb
        include xdg-basedir-0.2.2-BqCctxbjkCHCnIL6NK3wKf
    component hledger-iadd-1.3.13-DWWdqvmpk8t5HVFT2xHVI3-hledger-iadd
        include base-4.14.1.0
        include brick-0.52.1-3RbYdykEYGGIZTmpxd3vaY
        include directory-1.3.6.0
        include free-5.1.5-3CrVix2dkgX6K1v7F7egQ0
        include hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH
        include hledger-lib-1.21-SFVGI1ZXlYLHOqlBnrqHb
        include megaparsec-9.0.1-LOiN8BEVmZhGAWraflXo04
        include microlens-0.4.11.2-9caS3Frz8K54yIHXMtlddL
        include optparse-applicative-0.15.1.0-At0ou1hSnbtGeeAktaduQK
        include text-1.2.4.1
        include text-zipper-0.10.1-seeyxI5xIcLsUvkRkrv5c
        include time-1.9.3
        include transformers-0.5.6.2
        include unordered-containers-0.2.13.0-BCThU5O9UAzGUwowCN4YxW
        include vector-0.12.1.2-2kVzVrpwTerLUhGUERJIPa
        include vty-5.27-4ETznU0gbsFEQSPA9KKbRb
        include xdg-basedir-0.2.2-BqCctxbjkCHCnIL6NK3wKf
    component hledger-iadd-1.3.13-CpJJOWC4ho2f2QCg5XLji-spec
        include QuickCheck-2.14.2-CtwLZ870PF0ELdxd92nABi
        include base-4.14.1.0
        include free-5.1.5-3CrVix2dkgX6K1v7F7egQ0
        include hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH
        include hledger-lib-1.21-SFVGI1ZXlYLHOqlBnrqHb
        include hspec-2.7.8-3m4E5gZWfjx8BrGv15kRTl
        include megaparsec-9.0.1-LOiN8BEVmZhGAWraflXo04
        include text-1.2.4.1
        include text-zipper-0.10.1-seeyxI5xIcLsUvkRkrv5c
        include time-1.9.3
        include transformers-0.5.6.2
        include vector-0.12.1.2-2kVzVrpwTerLUhGUERJIPa
Linked component graph:
    unit hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH
        include base-4.14.1.0
        include brick-0.52.1-3RbYdykEYGGIZTmpxd3vaY
        include containers-0.6.2.1
        include directory-1.3.6.0
        include free-5.1.5-3CrVix2dkgX6K1v7F7egQ0
        include hledger-lib-1.21-SFVGI1ZXlYLHOqlBnrqHb
        include megaparsec-9.0.1-LOiN8BEVmZhGAWraflXo04
        include microlens-0.4.11.2-9caS3Frz8K54yIHXMtlddL
        include microlens-th-0.4.3.8-2I7HJ30mlnq8jMa2ukbvhr
        include optparse-applicative-0.15.1.0-At0ou1hSnbtGeeAktaduQK
        include semigroups-0.18.5-Ane5rZgHQZLBMDItXO5ZVb
        include text-1.2.4.1
        include text-zipper-0.10.1-seeyxI5xIcLsUvkRkrv5c
        include time-1.9.3
        include transformers-0.5.6.2
        include unordered-containers-0.2.13.0-BCThU5O9UAzGUwowCN4YxW
        include vector-0.12.1.2-2kVzVrpwTerLUhGUERJIPa
        include vty-5.27-4ETznU0gbsFEQSPA9KKbRb
        include xdg-basedir-0.2.2-BqCctxbjkCHCnIL6NK3wKf
        AmountParser=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:AmountParser,Brick.Widgets.BetterDialog=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:Brick.Widgets.BetterDialog,Brick.Widgets.Border.Utils=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:Brick.Widgets.Border.Utils,Brick.Widgets.CommentDialog=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:Brick.Widgets.CommentDialog,Brick.Widgets.Edit.EmacsBindings=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:Brick.Widgets.Edit.EmacsBindings,Brick.Widgets.HelpMessage=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:Brick.Widgets.HelpMessage,Brick.Widgets.List.Utils=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:Brick.Widgets.List.Utils,Brick.Widgets.WrappedText=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:Brick.Widgets.WrappedText,ConfigParser=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:ConfigParser,Data.Time.Ext=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:Data.Time.Ext,DateParser=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:DateParser,Model=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:Model,View=hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH:View
    unit hledger-iadd-1.3.13-DWWdqvmpk8t5HVFT2xHVI3-hledger-iadd
        include base-4.14.1.0
        include brick-0.52.1-3RbYdykEYGGIZTmpxd3vaY
        include directory-1.3.6.0
        include free-5.1.5-3CrVix2dkgX6K1v7F7egQ0
        include hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH
        include hledger-lib-1.21-SFVGI1ZXlYLHOqlBnrqHb
        include megaparsec-9.0.1-LOiN8BEVmZhGAWraflXo04
        include microlens-0.4.11.2-9caS3Frz8K54yIHXMtlddL
        include optparse-applicative-0.15.1.0-At0ou1hSnbtGeeAktaduQK
        include text-1.2.4.1
        include text-zipper-0.10.1-seeyxI5xIcLsUvkRkrv5c
        include time-1.9.3
        include transformers-0.5.6.2
        include unordered-containers-0.2.13.0-BCThU5O9UAzGUwowCN4YxW
        include vector-0.12.1.2-2kVzVrpwTerLUhGUERJIPa
        include vty-5.27-4ETznU0gbsFEQSPA9KKbRb
        include xdg-basedir-0.2.2-BqCctxbjkCHCnIL6NK3wKf
    unit hledger-iadd-1.3.13-CpJJOWC4ho2f2QCg5XLji-spec
        include QuickCheck-2.14.2-CtwLZ870PF0ELdxd92nABi
        include base-4.14.1.0
        include free-5.1.5-3CrVix2dkgX6K1v7F7egQ0
        include hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH
        include hledger-lib-1.21-SFVGI1ZXlYLHOqlBnrqHb
        include hspec-2.7.8-3m4E5gZWfjx8BrGv15kRTl
        include megaparsec-9.0.1-LOiN8BEVmZhGAWraflXo04
        include text-1.2.4.1
        include text-zipper-0.10.1-seeyxI5xIcLsUvkRkrv5c
        include time-1.9.3
        include transformers-0.5.6.2
        include vector-0.12.1.2-2kVzVrpwTerLUhGUERJIPa
Ready component graph:
    definite hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH
        depends base-4.14.1.0
        depends brick-0.52.1-3RbYdykEYGGIZTmpxd3vaY
        depends containers-0.6.2.1
        depends directory-1.3.6.0
        depends free-5.1.5-3CrVix2dkgX6K1v7F7egQ0
        depends hledger-lib-1.21-SFVGI1ZXlYLHOqlBnrqHb
        depends megaparsec-9.0.1-LOiN8BEVmZhGAWraflXo04
        depends microlens-0.4.11.2-9caS3Frz8K54yIHXMtlddL
        depends microlens-th-0.4.3.8-2I7HJ30mlnq8jMa2ukbvhr
        depends optparse-applicative-0.15.1.0-At0ou1hSnbtGeeAktaduQK
        depends semigroups-0.18.5-Ane5rZgHQZLBMDItXO5ZVb
        depends text-1.2.4.1
        depends text-zipper-0.10.1-seeyxI5xIcLsUvkRkrv5c
        depends time-1.9.3
        depends transformers-0.5.6.2
        depends unordered-containers-0.2.13.0-BCThU5O9UAzGUwowCN4YxW
        depends vector-0.12.1.2-2kVzVrpwTerLUhGUERJIPa
        depends vty-5.27-4ETznU0gbsFEQSPA9KKbRb
        depends xdg-basedir-0.2.2-BqCctxbjkCHCnIL6NK3wKf
    definite hledger-iadd-1.3.13-DWWdqvmpk8t5HVFT2xHVI3-hledger-iadd
        depends base-4.14.1.0
        depends brick-0.52.1-3RbYdykEYGGIZTmpxd3vaY
        depends directory-1.3.6.0
        depends free-5.1.5-3CrVix2dkgX6K1v7F7egQ0
        depends hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH
        depends hledger-lib-1.21-SFVGI1ZXlYLHOqlBnrqHb
        depends megaparsec-9.0.1-LOiN8BEVmZhGAWraflXo04
        depends microlens-0.4.11.2-9caS3Frz8K54yIHXMtlddL
        depends optparse-applicative-0.15.1.0-At0ou1hSnbtGeeAktaduQK
        depends text-1.2.4.1
        depends text-zipper-0.10.1-seeyxI5xIcLsUvkRkrv5c
        depends time-1.9.3
        depends transformers-0.5.6.2
        depends unordered-containers-0.2.13.0-BCThU5O9UAzGUwowCN4YxW
        depends vector-0.12.1.2-2kVzVrpwTerLUhGUERJIPa
        depends vty-5.27-4ETznU0gbsFEQSPA9KKbRb
        depends xdg-basedir-0.2.2-BqCctxbjkCHCnIL6NK3wKf
    definite hledger-iadd-1.3.13-CpJJOWC4ho2f2QCg5XLji-spec
        depends QuickCheck-2.14.2-CtwLZ870PF0ELdxd92nABi
        depends base-4.14.1.0
        depends free-5.1.5-3CrVix2dkgX6K1v7F7egQ0
        depends hledger-iadd-1.3.13-GZeS0iq9Nn6BBH3gKF9oMH
        depends hledger-lib-1.21-SFVGI1ZXlYLHOqlBnrqHb
        depends hspec-2.7.8-3m4E5gZWfjx8BrGv15kRTl
        depends megaparsec-9.0.1-LOiN8BEVmZhGAWraflXo04
        depends text-1.2.4.1
        depends text-zipper-0.10.1-seeyxI5xIcLsUvkRkrv5c
        depends time-1.9.3
        depends transformers-0.5.6.2
        depends vector-0.12.1.2-2kVzVrpwTerLUhGUERJIPa
Using Cabal-3.2.1.0 compiled by ghc-8.10
Using compiler: ghc-8.10.4
Using install prefix: /usr
Executables installed in: /usr/bin
Libraries installed in: /usr/lib64/hledger-iadd-1.3.13/ghc-8.10.4
Dynamic Libraries installed in: /usr/lib64/x86_64-linux-ghc-8.10.4
Private executables installed in:
/usr/libexec/x86_64-linux-ghc-8.10.4/hledger-iadd-1.3.13
Data files installed in: /usr/share/hledger-iadd-1.3.13/ghc-8.10.4
Documentation installed in: /usr/share/doc/hledger-iadd-1.3.13
Configuration files installed in: /etc
Using alex version 3.2.5 found on system at: /usr/bin/alex
Using ar given by user at: /usr/bin/x86_64-pc-linux-gnu-ar
Using c2hs version 0.28.7 found on system at: /usr/bin/c2hs
Using cpphs version 1.20.9 found on system at: /usr/bin/cpphs
Using doctest version 0.16.3 found on system at: /usr/bin/doctest
Using gcc version 11.0.1 found on system at: /usr/bin/x86_64-pc-linux-gnu-gcc
Using ghc version 8.10.4 given by user at: /usr/bin/ghc
Using ghc-pkg version 8.10.4 given by user at: /usr/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.0 found on system at: /usr/bin/haddock
Using happy version 1.20.0 found on system at: /usr/bin/happy
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at: /usr/bin/hpc
Using hsc2hs version 0.68.7 found on system at: /usr/bin/hsc2hs
Using hscolour version 1.24 found on system at: /usr/bin/HsColour
No jhc found
Using ld found on system at: /usr/bin/x86_64-pc-linux-gnu-ld
Using pkg-config version 0.29.2 found on system at: /usr/bin/pkg-config
Using runghc version 8.10.4 found on system at: /usr/bin/runghc
No strip found
Using tar found on system at: /bin/tar
No uhc found
>>> Source configured.
/tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13 /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13
/tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13
>>> Compiling source in /tmp/portage/dev-haskell/hledger-iadd-1.3.13/work/hledger-iadd-1.3.13 ...
./setup build
Preprocessing library for hledger-iadd-1.3.13..
Building library for hledger-iadd-1.3.13..
[ 1 of 13] Compiling AmountParser     ( src/AmountParser.hs, dist/build/AmountParser.o, dist/build/AmountParser.dyn_o )
[ 2 of 13] Compiling Brick.Widgets.BetterDialog ( src/Brick/Widgets/BetterDialog.hs, dist/build/Brick/Widgets/BetterDialog.o, dist/build/Brick/Widgets/BetterDialog.dyn_o )
[ 3 of 13] Compiling Brick.Widgets.Border.Utils ( src/Brick/Widgets/Border/Utils.hs, dist/build/Brick/Widgets/Border/Utils.o, dist/build/Brick/Widgets/Border/Utils.dyn_o )
[ 4 of 13] Compiling Brick.Widgets.Edit.EmacsBindings ( src/Brick/Widgets/Edit/EmacsBindings.hs, dist/build/Brick/Widgets/Edit/EmacsBindings.o, dist/build/Brick/Widgets/Edit/EmacsBindings.dyn_o )
[ 5 of 13] Compiling Brick.Widgets.CommentDialog ( src/Brick/Widgets/CommentDialog.hs, dist/build/Brick/Widgets/CommentDialog.o, dist/build/Brick/Widgets/CommentDialog.dyn_o )

src/Brick/Widgets/CommentDialog.hs:12:1: warning: [-Wunused-imports]
    The import of ‘Data.Semigroup’ is redundant
      except perhaps to import instances from ‘Data.Semigroup’
    To import instances alone, use: import Data.Semigroup()
   |
12 | import           Data.Semigroup ((<>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 6 of 13] Compiling Brick.Widgets.HelpMessage ( src/Brick/Widgets/HelpMessage.hs, dist/build/Brick/Widgets/HelpMessage.o, dist/build/Brick/Widgets/HelpMessage.dyn_o )

src/Brick/Widgets/HelpMessage.hs:18:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
   |
18 | import Data.Monoid ((<>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
[ 7 of 13] Compiling Brick.Widgets.List.Utils ( src/Brick/Widgets/List/Utils.hs, dist/build/Brick/Widgets/List/Utils.o, dist/build/Brick/Widgets/List/Utils.dyn_o )
[ 8 of 13] Compiling Brick.Widgets.WrappedText ( src/Brick/Widgets/WrappedText.hs, dist/build/Brick/Widgets/WrappedText.o, dist/build/Brick/Widgets/WrappedText.dyn_o )
[ 9 of 13] Compiling ConfigParser     ( src/ConfigParser.hs, dist/build/ConfigParser.o, dist/build/ConfigParser.dyn_o )

src/ConfigParser.hs:52:1: warning: [-Wunused-imports]
    The import of ‘Data.Semigroup’ is redundant
      except perhaps to import instances from ‘Data.Semigroup’
    To import instances alone, use: import Data.Semigroup()
   |
52 | import           Data.Semigroup ((<>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[10 of 13] Compiling Data.Time.Ext    ( src/Data/Time/Ext.hs, dist/build/Data/Time/Ext.o, dist/build/Data/Time/Ext.dyn_o )
[11 of 13] Compiling DateParser       ( src/DateParser.hs, dist/build/DateParser.o, dist/build/DateParser.dyn_o )
[12 of 13] Compiling Model            ( src/Model.hs, dist/build/Model.o, dist/build/Model.dyn_o )
[13 of 13] Compiling View             ( src/View.hs, dist/build/View.o, dist/build/View.dyn_o )

src/View.hs:15:1: warning: [-Wunused-imports]
    The import of ‘Data.Semigroup’ is redundant
      except perhaps to import instances from ‘Data.Semigroup’
    To import instances alone, use: import Data.Semigroup()
   |
15 | import           Data.Semigroup ((<>))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Preprocessing executable 'hledger-iadd' for hledger-iadd-1.3.13..
Building executable 'hledger-iadd' for hledger-iadd-1.3.13..
[1 of 2] Compiling Paths_hledger_iadd ( dist/build/hledger-iadd/autogen/Paths_hledger_iadd.hs, dist/build/hledger-iadd/hledger-iadd-tmp/Paths_hledger_iadd.dyn_o )
[2 of 2] Compiling Main             ( src/main/Main.hs, dist/build/hledger-iadd/hledger-iadd-tmp/Main.dyn_o )

src/main/Main.hs:34:1: warning: [-Wunused-imports]
    The import of ‘<>’ from module ‘Data.Monoid’ is redundant
   |
34 | import Data.Monoid ((<>), First(..), getFirst)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Linking dist/build/hledger-iadd/hledger-iadd ...
Preprocessing test suite 'spec' for hledger-iadd-1.3.13..
Building test suite 'spec' for hledger-iadd-1.3.13..
[1 of 5] Compiling AmountParserSpec ( tests/AmountParserSpec.hs, dist/build/spec/spec-tmp/AmountParserSpec.dyn_o )

tests/AmountParserSpec.hs:8:1: warning: [-Wunused-imports]
    The import of ‘either’ from module ‘Data.Either’ is redundant
  |
8 | import           Data.Either (either, isLeft)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2 of 5] Compiling ConfigParserSpec ( tests/ConfigParserSpec.hs, dist/build/spec/spec-tmp/ConfigParserSpec.dyn_o )
[3 of 5] Compiling DateParserSpec   ( tests/DateParserSpec.hs, dist/build/spec/spec-tmp/DateParserSpec.dyn_o )
[4 of 5] Compiling ModelSpec        ( tests/ModelSpec.hs, dist/build/spec/spec-tmp/ModelSpec.dyn_o )

tests/ModelSpec.hs:9:1: warning: [-Wunused-imports]
    The import of ‘Data.Semigroup’ is redundant
      except perhaps to import instances from ‘Data.Semigroup’
    To import instances alone, use: import Data.Semigroup()
  |
9 | import           Data.Semigroup ((<>))
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[5 of 5] Compiling Main             ( tests/Spec.hs, dist/build/spec/spec-tmp/Main.dyn_o )
Linking dist/build/spec/spec ...
./setup hscolour
Warning: the 'cabal hscolour' command is deprecated in favour of 'cabal
haddock --hyperlink-source' and will be removed in the next major release.
Running hscolour for hledger-iadd-1.3.13...
Preprocessing library for hledger-iadd-1.3.13..
Preprocessing executable 'hledger-iadd' for hledger-iadd-1.3.13..
Preprocessing test suite 'spec' for hledger-iadd-1.3.13..
>>> Source compiled.
>>> Test phase: dev-haskell/hledger-iadd-1.3.13
 * >>> Test phase [cabal test]: dev-haskell/hledger-iadd-1.3.13
./setup test --show-details=streaming
Running 1 test suites...
Test suite spec: RUNNING...

AmountParser
  parseAmount
    parses single amount
    parses a positive number
    parses a negative number
    parses a simple sum
    parses a sum with negative values
    fails to parse a trailing plus
ConfigParser
  parses a complete example
  fills in the default values
  fills in the default values for random data
    +++ OK, passed 100 tests.
  given whitespace
    parses just whitespace
    parses beginning whitespace
    parses trailing whitespace
    parses middle whitespace
    parses whitespace everywhere
  given escaped strings
    parses simple escaped strings
    parses escaped strings with quotes in them
    parses escaped strings with backslashes in them
    parses escaped strings with newlines in them
    fails to parse non-terminated escaped strings
  given bare strings
    parses a bare string correctly
    correctly trims bare strings
    fails to parse empty bare strings
  allows dashes in option names
  allows underscores in option names
  doesn't allow spaces in option names
  doesn't allow equal signs in option names
  given integers
    parses zero
    parses negative zero
    fails to parse integer with trailing stuff
    fails to parse empty string as integer
    fails to parse letters as integer
  given strings
    parses the empty string quoted
  handles a file with just comments
  handles comments and whitespace in front
  handles comments and whitespace in front
  handles comments and whitespace after
  handles comments with whitespace between
  handles comments after assignments
  handles comments around assignments
  parserExample
    works for one example
    can parse it's own example output
      +++ OK, passed 100 tests.
DateParser
  date format parser
    parses the german format correctly
  date parser
    actually requires non-optional fields
    weekDay
      actually returns the right week day
        +++ OK, passed 100 tests.
      is always smaller than the current date
        +++ OK, passed 100 tests.
  date completion
    today
    today is a leap day
    skips to previous month
    stays in month if possible
    skips to previous month to reach the 31st
    skips to an earlier month to reach the 31st
    skips to the previous year if necessary
    skips to the previous years if after a leap year
    even might skip to a leap year 8 years ago
    some date in the near future
    some date in the far future
    last october
    last november
    next november
    next january
    last january
    literally yesterday
    literally today
    literally tomorrow
    literally monday
    literally tuesday
    literally wednesday
    literally thursday
    literally friday
    literally saturday
    literally sunday
    literally satan
  date printer
    is inverse to reading
      +++ OK, passed 100 tests.
    handles short years correctly
    handles long years correctly
Model
  suggest
    at the account prompt
      suggests nothing for an empty journal
      suggests the accounts in order
    at the amount prompt
      suggests amounts from the similar transaction
      suggests the balancing amount if accounts don't match with similar transaction
      initially doesn't suggest an amount if there is no similar transaction
      suggests the balancing amount if there is no similar transaction for the second account
  accountsByFrequency
    sorts according to frequency
    includes subaccounts
    only counts explicit occurences for sorting
    includes accounts from the 'account directive'
  setCurrentComment
    works at the date prompt
    works at the description prompt
    works at the account prompt
    works at the amount prompt
    works at the final prompt
  setTransactionComment
    works at the date prompt
    works at the description prompt
    works at the account prompt
    works at the amount prompt
    works at the final prompt
  isDuplicateTransaction
    considers exact copies as duplicates
    ignores the order of postings
    ignores comments and tags
    considers date and description
    considers date, amount and account of postings
    ignores amount presentation FAILED [1]

Failures:

  tests/ModelSpec.hs:191:3:
  1) Model.isDuplicateTransaction ignores amount presentation
       uncaught exception: ErrorCall
       Prelude.read: no parse

  To rerun use: --match "/Model/isDuplicateTransaction/ignores amount presentation/"

Randomized with seed 481768385

Finished in 0.0178 seconds
101 examples, 1 failure
Test suite spec: FAIL
Test suite logged to: dist/test/hledger-iadd-1.3.13-spec.log
0 of 1 test suites (0 of 1 test cases) passed.
trofi commented 3 years ago

On hledger-lib-1.21 test

  it "ignores amount presentation" $ do
    let a1 = (HL.eur 0.5) { HL.astyle = HL.amountstyle}
        -- We use 'read' in the following because hledger-lib 1.19 changed the
        -- type of 'asprecision' from Int to 'AmountPrecision'. 'read' works in
        -- both cases.
        a2 = (HL.eur 0.5) { HL.astyle = HL.amountstyle { HL.asprecision = read "15"} }

        p1 = mkPosting ("Test", -1)
        p2 = HL.nullposting { HL.paccount = "Toast", HL.pamount = HL.Mixed [a1] }
        p3 = HL.nullposting { HL.paccount = "Toast", HL.pamount = HL.Mixed [a2] }

        t0 = mkTransaction ((2017,9,23), "Test", [])
        t1 = t0 { HL.tpostings = [p1,p2,p2] }
        t2 = t0 { HL.tpostings = [p1,p3,p3] }

    isDuplicateTransaction (HL.addTransaction t1 HL.nulljournal) t2 `shouldBe` True

fails on read "15".

Smaller reproducer:

$ ghci
GHCi, version 8.10.4: https://www.haskell.org/ghc/  :? for help
Prelude> read "15" :: Hledger.AmountPrecision
*** Exception: Prelude.read: no parse
hpdeifel commented 3 years ago

Thanks for the report. This has already been fixed in master and I will cut a new release for it today

See #52

trofi commented 3 years ago

Thank you! Completely forgot to check master branch.