0.02 s
$ /nix/store/vzx1mi9c0xfadmsm9dhd83d005cb1qs9-coreutils-9.8/bin/timeout --kill-after=15s 7200s /nix/store/99b1z08awpxj8b6mzggn59gp1shljnff-nix-2.34.5/bin/nix --extra-experimental-features nix-command --extra-experimental-features flakes --log-format internal-json build --no-link git+https://github.com/NorfairKing/sydtest?ref=remove-case-and-action-operators&rev=bcd07f26815703a2324799860ff0db824ea194b1#checks.x86_64-linux.mutation-really-safe-money --print-build-logs
0.09 s
warning: ignoring the client-specified setting 'netrc-file', because it is a restricted setting and you are not a trusted user
0.09 s
warning: ignoring the client-specified setting 'post-build-hook', because it is a restricted setting and you are not a trusted user
0.09 s
warning: ignoring untrusted substituter 'https://sydtest.cachix.org', you are not a trusted user.
0.09 s
Run `man nix.conf` for more information on the `substituters` configuration option.
0.09 s
warning: ignoring untrusted substituter 'https://cache.staging.nix-ci.com', you are not a trusted user.
0.09 s
Run `man nix.conf` for more information on the `substituters` configuration option.
0.09 s
warning: ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user
0.09 s
warning: ignoring untrusted flake configuration setting 'extra-substituters'.
0.09 s
Pass '--accept-flake-config' to trust it
0.09 s
warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys'.
0.09 s
Pass '--accept-flake-config' to trust it
0.09 s
warning: ignoring the client-specified setting 'netrc-file', because it is a restricted setting and you are not a trusted user
0.09 s
warning: ignoring the client-specified setting 'post-build-hook', because it is a restricted setting and you are not a trusted user
0.09 s
warning: ignoring untrusted substituter 'https://sydtest.cachix.org', you are not a trusted user.
0.09 s
Run `man nix.conf` for more information on the `substituters` configuration option.
0.09 s
warning: ignoring untrusted substituter 'https://cache.staging.nix-ci.com', you are not a trusted user.
0.09 s
Run `man nix.conf` for more information on the `substituters` configuration option.
0.09 s
warning: ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user
0.59 s
error (ignored): SQLite database '/var/cache/private/nix-ci-worker/eval-cache-v6/cd4609de13e7bea1dfefeba4ac89a59b3e5e6fac340dc6d97ae224e0670538a5.sqlite ' is busy
1.35 s
1.84 s
Waiting for lock on sydtest-mutation-plugin-0.0.0.0-doc
26.96 s
Building really-safe-money
27.20 s
[really-safe-money] Phase: setupCompilerEnvironmentPhase
27.22 s
[really-safe-money] Build with /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3.
27.45 s
[really-safe-money] Phase: unpackPhase
27.45 s
[really-safe-money] unpacking source archive /nix/store/pxkha6z3d3bjfgkdar4ma3wx2c1f8pmm-really-safe-money-source-0.0.0.0/really-safe-money-0.0.0.0.tar.gz
27.46 s
[really-safe-money] source root is really-safe-money-0.0.0.0
27.46 s
[really-safe-money] setting SOURCE_DATE_EPOCH to timestamp 1778687704 of file "really-safe-money-0.0.0.0/src/Numeric/DecimalLiteral.hs"
27.47 s
[really-safe-money] Phase: patchPhase
27.48 s
[really-safe-money] Phase: compileBuildDriverPhase
27.48 s
[really-safe-money] setupCompileFlags: -package-db=/build/tmp.hHZHGs9oae/setup-package.conf.d -threaded
27.53 s
[really-safe-money] [1 of 2] Compiling Main ( Setup.hs, /build/tmp.hHZHGs9oae/Main.o )
27.57 s
[really-safe-money] [2 of 2] Linking Setup
28.77 s
[really-safe-money] Phase: updateAutotoolsGnuConfigScriptsPhase
28.78 s
[really-safe-money] Phase: configurePhase
28.79 s
[really-safe-money] configureFlags: --verbose --prefix=/nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --with-gcc=gcc --package-db=/build/tmp.hHZHGs9oae/package.conf.d --ghc-option=-j16 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --disable-static --disable-executable-dynamic --disable-tests --enable-benchmarks --enable-library-vanilla --disable-library-for-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping --ghc-options=-O2 --ghc-options=-Wall --ghc-options=-Wincomplete-uni-patterns --ghc-options=-Wincomplete-record-updates --ghc-options=-Wpartial-fields --ghc-options=-Widentities --ghc-options=-Wredundant-constraints --ghc-options=-Wcpp-undef --ghc-options=-Werror --ghc-options=-fplugin-opt=Test.Syd.Mutation.Plugin:--debug --disable-optimization --ghc-option=-j1 --ghc-option=+RTS --ghc-option=-A32M --ghc-option=-M16g --ghc-option=-RTS --extra-lib-dirs=/nix/store/ffyzkisqs4vc4mg28bwwlyqjf8i9ph6b-ncurses-6.5/lib --extra-lib-dirs=/nix/store/n28qgdj8c1q41kf7n4y1jxa6ckp85m3c-libffi-3.5.2/lib --extra-lib-dirs=/nix/store/1b6h99dw7bk4wbn77kbalih42zbc67m1-elfutils-0.194/lib --extra-lib-dirs=/nix/store/hi0ar880110k6jsmmili7dh1gq3cg2a9-gmp-with-cxx-6.3.0/lib --extra-lib-dirs=/nix/store/g09cflpnp4g80q56sj9dng1qzv4v4ybc-numactl-2.0.18/lib --extra-lib-dirs=/nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/lib
28.79 s
[really-safe-money] Using Parsec parser
28.79 s
[really-safe-money] Configuring really-safe-money-0.0.0.0...
29.57 s
[really-safe-money] Dependency base >=4.7 && <5: using base-4.20.2.0
29.57 s
[really-safe-money] Dependency containers: using containers-0.7
29.57 s
[really-safe-money] Dependency deepseq: using deepseq-1.5.0.0
29.57 s
[really-safe-money] Dependency validity: using validity-0.12.1.0
29.57 s
[really-safe-money] Dependency validity-containers: using validity-containers-0.5.0.5
29.57 s
[really-safe-money] Dependency validity-scientific: using validity-scientific-0.2.0.3
29.57 s
[really-safe-money] Source component graph: component lib
29.57 s
[really-safe-money] Configured component graph:
29.57 s
[really-safe-money] component really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
29.57 s
[really-safe-money] include base-4.20.2.0-64da
29.57 s
[really-safe-money] include containers-0.7-504a
29.57 s
[really-safe-money] include deepseq-1.5.0.0-9a2c
29.57 s
[really-safe-money] include validity-0.12.1.0-2vJMqyxn6Ae2B1jlP90HgP
29.57 s
[really-safe-money] include validity-containers-0.5.0.5-JMisIHg6jT0HAhS7h7vTA4
29.57 s
[really-safe-money] include validity-scientific-0.2.0.3-6oQtdkDOQFR80MBRT1UQ1R
29.57 s
[really-safe-money] Linked component graph:
29.57 s
[really-safe-money] unit really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
29.57 s
[really-safe-money] include base-4.20.2.0-64da
29.57 s
[really-safe-money] include containers-0.7-504a
29.57 s
[really-safe-money] include deepseq-1.5.0.0-9a2c
29.57 s
[really-safe-money] include validity-0.12.1.0-2vJMqyxn6Ae2B1jlP90HgP
29.57 s
[really-safe-money] include validity-containers-0.5.0.5-JMisIHg6jT0HAhS7h7vTA4
29.57 s
[really-safe-money] include validity-scientific-0.2.0.3-6oQtdkDOQFR80MBRT1UQ1R
29.57 s
[really-safe-money] Money.Account=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Money.Account,Money.AccountOf=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Money.AccountOf,Money.Amount=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Money.Amount,Money.AmountOf=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Money.AmountOf,Money.ConversionRate=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Money.ConversionRate,Money.ConversionRateOf=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Money.ConversionRateOf,Money.Currency=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Money.Currency,Money.MultiAccount=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Money.MultiAccount,Money.MultiAmount=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Money.MultiAmount,Money.QuantisationFactor=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Money.QuantisationFactor,Numeric.DecimalLiteral=really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9:Numeric.DecimalLiteral
29.57 s
[really-safe-money] Ready component graph:
29.57 s
[really-safe-money] definite really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
29.57 s
[really-safe-money] depends base-4.20.2.0-64da
29.57 s
[really-safe-money] depends containers-0.7-504a
29.57 s
[really-safe-money] depends deepseq-1.5.0.0-9a2c
29.57 s
[really-safe-money] depends validity-0.12.1.0-2vJMqyxn6Ae2B1jlP90HgP
29.57 s
[really-safe-money] depends validity-containers-0.5.0.5-JMisIHg6jT0HAhS7h7vTA4
29.57 s
[really-safe-money] depends validity-scientific-0.2.0.3-6oQtdkDOQFR80MBRT1UQ1R
29.57 s
[really-safe-money] Using Cabal-3.12.1.0 compiled by ghc-9.10
29.57 s
[really-safe-money] Using compiler: ghc-9.10.3
29.57 s
[really-safe-money] Using install prefix:
29.57 s
[really-safe-money] /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0
29.57 s
[really-safe-money] Executables installed in:
29.57 s
[really-safe-money] /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0/bin
29.57 s
[really-safe-money] Libraries installed in:
29.57 s
[really-safe-money] /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
29.57 s
[really-safe-money] Dynamic Libraries installed in:
29.57 s
[really-safe-money] /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6
29.57 s
[really-safe-money] Private executables installed in:
29.57 s
[really-safe-money] /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0/libexec/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-0.0.0.0
29.57 s
[really-safe-money] Data files installed in:
29.57 s
[really-safe-money] /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0/share/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-0.0.0.0
29.57 s
[really-safe-money] Documentation installed in:
29.57 s
[really-safe-money] /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0/share/doc/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-0.0.0.0
29.57 s
[really-safe-money] Configuration files installed in:
29.57 s
[really-safe-money] /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0/etc
29.57 s
[really-safe-money] No alex found
29.57 s
[really-safe-money] Using ar found on system at:
29.57 s
[really-safe-money] /nix/store/iz5lckcsg66r223si2gck7csk2hihj0m-binutils-wrapper-2.44/bin/ar
29.57 s
[really-safe-money] No c2hs found
29.57 s
[really-safe-money] No cpphs found
29.57 s
[really-safe-money] No doctest found
29.57 s
[really-safe-money] Using gcc version 14.3.0 given by user at:
29.57 s
[really-safe-money] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/gcc
29.57 s
[really-safe-money] Using ghc version 9.10.3 found on system at:
29.57 s
[really-safe-money] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/ghc
29.57 s
[really-safe-money] Using ghc-pkg version 9.10.3 found on system at:
29.57 s
[really-safe-money] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/ghc-pkg-9.10.3
29.57 s
[really-safe-money] No ghcjs found
29.57 s
[really-safe-money] No ghcjs-pkg found
29.57 s
[really-safe-money] No greencard found
29.57 s
[really-safe-money] Using haddock version 2.31.1 found on system at:
29.57 s
[really-safe-money] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/haddock-ghc-9.10.3
29.57 s
[really-safe-money] No happy found
29.57 s
[really-safe-money] Using haskell-suite found on system at: haskell-suite-dummy-location
29.57 s
[really-safe-money] Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
29.57 s
[really-safe-money] No hmake found
29.57 s
[really-safe-money] Using hpc version 0.69 found on system at:
29.57 s
[really-safe-money] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/hpc-ghc-9.10.3
29.57 s
[really-safe-money] Using hsc2hs version 0.68.10 found on system at:
29.57 s
[really-safe-money] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/hsc2hs-ghc-9.10.3
29.57 s
[really-safe-money] Using hscolour version 1.25 found on system at:
29.57 s
[really-safe-money] /nix/store/f755skyzf4jvfx3crwq9mmh3x4lsaz8i-hscolour-1.25/bin/HsColour
29.57 s
[really-safe-money] No jhc found
29.57 s
[really-safe-money] Using ld found on system at:
29.57 s
[really-safe-money] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/ld
29.57 s
[really-safe-money] No pkg-config found
29.57 s
[really-safe-money] Using runghc version 9.10.3 found on system at:
29.57 s
[really-safe-money] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/runghc-9.10.3
29.57 s
[really-safe-money] Using strip version 2.44 found on system at:
29.57 s
[really-safe-money] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/strip
29.57 s
[really-safe-money] Using tar found on system at:
29.57 s
[really-safe-money] /nix/store/xl6pd2spjajwcpq09fnmnjv5psqmlmma-gnutar-1.35/bin/tar
29.57 s
[really-safe-money] No uhc found
29.78 s
[really-safe-money] Phase: buildPhase
29.78 s
[really-safe-money] mutation-nix: setting MUTATION_MANIFEST_DIR=/nix/store/nfynk6q38yhj3djq59kjh39ii2l95n4m-really-safe-money-0.0.0.0-manifest
29.86 s
[really-safe-money] Preprocessing library for really-safe-money-0.0.0.0...
29.86 s
[really-safe-money] Building library for really-safe-money-0.0.0.0...
30.14 s
[really-safe-money] [ 1 of 12] Compiling Numeric.DecimalLiteral ( src/Numeric/DecimalLiteral.hs, dist/build/Numeric/DecimalLiteral.o, dist/build/Numeric/DecimalLiteral.dyn_o )
30.61 s
[really-safe-money] mutation: instrumenting Numeric.DecimalLiteral
30.61 s
[really-safe-money] added mutation BoolLit at src/Numeric/DecimalLiteral.hs:396:23-27
30.61 s
[really-safe-money] @@ -393,5 +393,5 @@
30.61 s
[really-safe-money] DecimalLiteral mS m e -> DecimalLiteral (go mS) m e
30.61 s
[really-safe-money] where
30.61 s
[really-safe-money] go = \case
30.61 s
[really-safe-money] - Nothing -> Just True
30.61 s
[really-safe-money] + Nothing -> Just False
30.61 s
[really-safe-money] s -> s
30.64 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:368:10-39
30.64 s
[really-safe-money] @@ -365,7 +365,7 @@
30.64 s
[really-safe-money] setMinimumDigits wantedDigits dl =
30.64 s
[really-safe-money] let currentDigits :: Word8
30.64 s
[really-safe-money] currentDigits = digits dl
30.64 s
[really-safe-money] - in if wantedDigits <= currentDigits
30.64 s
[really-safe-money] + in if True
30.64 s
[really-safe-money] then dl
30.64 s
[really-safe-money] else increaseDigits (wantedDigits - currentDigits) dl
30.64 s
[really-safe-money] where
30.64 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:368:10-39
30.64 s
[really-safe-money] @@ -365,7 +365,7 @@
30.64 s
[really-safe-money] setMinimumDigits wantedDigits dl =
30.64 s
[really-safe-money] let currentDigits :: Word8
30.65 s
[really-safe-money] currentDigits = digits dl
30.65 s
[really-safe-money] - in if wantedDigits <= currentDigits
30.65 s
[really-safe-money] + in if False
30.65 s
[really-safe-money] then dl
30.65 s
[really-safe-money] else increaseDigits (wantedDigits - currentDigits) dl
30.65 s
[really-safe-money] where
30.65 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:368:10-39
30.65 s
[really-safe-money] @@ -365,7 +365,7 @@
30.65 s
[really-safe-money] setMinimumDigits wantedDigits dl =
30.65 s
[really-safe-money] let currentDigits :: Word8
30.65 s
[really-safe-money] currentDigits = digits dl
30.65 s
[really-safe-money] - in if wantedDigits <= currentDigits
30.65 s
[really-safe-money] + in if not (wantedDigits <= currentDigits)
30.65 s
[really-safe-money] then dl
30.65 s
[really-safe-money] else increaseDigits (wantedDigits - currentDigits) dl
30.65 s
[really-safe-money] where
30.65 s
[really-safe-money] added mutation CondFlip at src/Numeric/DecimalLiteral.hs:368:7-62
30.65 s
[really-safe-money] @@ -365,9 +365,9 @@
30.65 s
[really-safe-money] setMinimumDigits wantedDigits dl =
30.65 s
[really-safe-money] let currentDigits :: Word8
30.65 s
[really-safe-money] currentDigits = digits dl
30.65 s
[really-safe-money] - in if wantedDigits <= currentDigits
30.65 s
[really-safe-money] - then dl
30.65 s
[really-safe-money] - else increaseDigits (wantedDigits - currentDigits) dl
30.65 s
[really-safe-money] + in if wantedDigits <= currentDigits
30.65 s
[really-safe-money] + then dl
30.65 s
[really-safe-money] + else increaseDigits (wantedDigits - currentDigits) dl
30.65 s
[really-safe-money] where
30.65 s
[really-safe-money] increaseDigits :: Word8 -> DecimalLiteral -> DecimalLiteral
30.65 s
[really-safe-money] increaseDigits 0 = id
30.65 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:375:80-82
30.65 s
[really-safe-money] @@ -372,7 +372,7 @@
30.65 s
[really-safe-money] increaseDigits :: Word8 -> DecimalLiteral -> DecimalLiteral
30.65 s
[really-safe-money] increaseDigits 0 = id
30.65 s
[really-safe-money] increaseDigits w = \case
30.65 s
[really-safe-money] - DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 10) (succ e))
30.65 s
[really-safe-money] + DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 0) (succ e))
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Ensures that a positive literal has no sign
30.65 s
[really-safe-money] --
30.65 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:375:80-82
30.65 s
[really-safe-money] @@ -372,7 +372,7 @@
30.65 s
[really-safe-money] increaseDigits :: Word8 -> DecimalLiteral -> DecimalLiteral
30.65 s
[really-safe-money] increaseDigits 0 = id
30.65 s
[really-safe-money] increaseDigits w = \case
30.65 s
[really-safe-money] - DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 10) (succ e))
30.65 s
[really-safe-money] + DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 1) (succ e))
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Ensures that a positive literal has no sign
30.65 s
[really-safe-money] --
30.65 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:337:21-22
30.65 s
[really-safe-money] @@ -334,7 +334,7 @@
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
30.65 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
30.65 s
[really-safe-money] +numSign a = if a >= 1 then Nothing else Just False
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
30.65 s
[really-safe-money] signSignum = \case
30.65 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:337:16-22
30.65 s
[really-safe-money] @@ -334,7 +334,7 @@
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
30.65 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
30.65 s
[really-safe-money] +numSign a = if True then Nothing else Just False
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
30.65 s
[really-safe-money] signSignum = \case
30.65 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:337:16-22
30.65 s
[really-safe-money] @@ -334,7 +334,7 @@
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
30.65 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
30.65 s
[really-safe-money] +numSign a = if False then Nothing else Just False
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
30.65 s
[really-safe-money] signSignum = \case
30.65 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:337:16-22
30.65 s
[really-safe-money] @@ -334,7 +334,7 @@
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
30.65 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
30.65 s
[really-safe-money] +numSign a = if not (a >= 0) then Nothing else Just False
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
30.65 s
[really-safe-money] signSignum = \case
30.65 s
[really-safe-money] added mutation BoolLit at src/Numeric/DecimalLiteral.hs:337:46-51
30.65 s
[really-safe-money] @@ -334,7 +334,7 @@
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
30.65 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
30.65 s
[really-safe-money] +numSign a = if a >= 0 then Nothing else Just True
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
30.65 s
[really-safe-money] signSignum = \case
30.65 s
[really-safe-money] added mutation CondFlip at src/Numeric/DecimalLiteral.hs:337:13-51
30.65 s
[really-safe-money] @@ -334,7 +334,7 @@
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
30.65 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
30.65 s
[really-safe-money] +numSign a = if a >= 0 then Nothing else Just False
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
30.65 s
[really-safe-money] signSignum = \case
30.65 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:332:11-46
30.65 s
[really-safe-money] @@ -329,7 +329,7 @@
30.65 s
[really-safe-money] toInt :: DecimalLiteral -> Maybe Int
30.65 s
[really-safe-money] toInt dl = do
30.65 s
[really-safe-money] n <- toInteger dl
30.65 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Int)
30.65 s
[really-safe-money] + guard $ True
30.65 s
[really-safe-money] guard $ n >= fromIntegral (minBound :: Int)
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:332:11-46
30.65 s
[really-safe-money] @@ -329,7 +329,7 @@
30.65 s
[really-safe-money] toInt :: DecimalLiteral -> Maybe Int
30.65 s
[really-safe-money] toInt dl = do
30.65 s
[really-safe-money] n <- toInteger dl
30.65 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Int)
30.65 s
[really-safe-money] + guard $ False
30.65 s
[really-safe-money] guard $ n >= fromIntegral (minBound :: Int)
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:332:11-46
30.65 s
[really-safe-money] @@ -329,7 +329,7 @@
30.65 s
[really-safe-money] toInt :: DecimalLiteral -> Maybe Int
30.65 s
[really-safe-money] toInt dl = do
30.65 s
[really-safe-money] n <- toInteger dl
30.65 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Int)
30.65 s
[really-safe-money] + guard $ not (n <= fromIntegral (maxBound :: Int))
30.65 s
[really-safe-money] guard $ n >= fromIntegral (minBound :: Int)
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:333:11-46
30.65 s
[really-safe-money] @@ -330,7 +330,7 @@
30.65 s
[really-safe-money] toInt dl = do
30.65 s
[really-safe-money] n <- toInteger dl
30.65 s
[really-safe-money] guard $ n <= fromIntegral (maxBound :: Int)
30.65 s
[really-safe-money] - guard $ n >= fromIntegral (minBound :: Int)
30.65 s
[really-safe-money] + guard $ True
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
30.65 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:333:11-46
30.65 s
[really-safe-money] @@ -330,7 +330,7 @@
30.65 s
[really-safe-money] toInt dl = do
30.65 s
[really-safe-money] n <- toInteger dl
30.65 s
[really-safe-money] guard $ n <= fromIntegral (maxBound :: Int)
30.65 s
[really-safe-money] - guard $ n >= fromIntegral (minBound :: Int)
30.65 s
[really-safe-money] + guard $ False
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
30.65 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:333:11-46
30.65 s
[really-safe-money] @@ -330,7 +330,7 @@
30.65 s
[really-safe-money] toInt dl = do
30.65 s
[really-safe-money] n <- toInteger dl
30.65 s
[really-safe-money] guard $ n <= fromIntegral (maxBound :: Int)
30.65 s
[really-safe-money] - guard $ n >= fromIntegral (minBound :: Int)
30.65 s
[really-safe-money] + guard $ not (n >= fromIntegral (minBound :: Int))
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
30.65 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:315:67-68
30.65 s
[really-safe-money] @@ -312,7 +312,7 @@
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from an 'Integer'
30.65 s
[really-safe-money] fromInteger :: Integer -> DecimalLiteral
30.65 s
[really-safe-money] -fromInteger n = DecimalLiteral (numSign n) (fromIntegral (abs n)) 0
30.65 s
[really-safe-money] +fromInteger n = DecimalLiteral (numSign n) (fromIntegral (abs n)) 1
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into an 'Integer'
30.65 s
[really-safe-money] toInteger :: DecimalLiteral -> Maybe Integer
30.65 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:304:42-43
30.65 s
[really-safe-money] @@ -301,7 +301,7 @@
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Natural'
30.65 s
[really-safe-money] fromNatural :: Natural -> DecimalLiteral
30.65 s
[really-safe-money] -fromNatural n = DecimalLiteral Nothing n 0
30.65 s
[really-safe-money] +fromNatural n = DecimalLiteral Nothing n 1
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into a 'Natural'
30.65 s
[really-safe-money] toNatural :: DecimalLiteral -> Maybe Natural
30.65 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:299:11-47
30.65 s
[really-safe-money] @@ -296,7 +296,7 @@
30.65 s
[really-safe-money] toWord :: DecimalLiteral -> Maybe Word
30.65 s
[really-safe-money] toWord dl = do
30.65 s
[really-safe-money] n <- toNatural dl
30.65 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Word)
30.65 s
[really-safe-money] + guard $ True
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Natural'
30.65 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:299:11-47
30.65 s
[really-safe-money] @@ -296,7 +296,7 @@
30.65 s
[really-safe-money] toWord :: DecimalLiteral -> Maybe Word
30.65 s
[really-safe-money] toWord dl = do
30.65 s
[really-safe-money] n <- toNatural dl
30.65 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Word)
30.65 s
[really-safe-money] + guard $ False
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Natural'
30.65 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:299:11-47
30.65 s
[really-safe-money] @@ -296,7 +296,7 @@
30.65 s
[really-safe-money] toWord :: DecimalLiteral -> Maybe Word
30.65 s
[really-safe-money] toWord dl = do
30.65 s
[really-safe-money] n <- toNatural dl
30.65 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Word)
30.65 s
[really-safe-money] + guard $ not (n <= fromIntegral (maxBound :: Word))
30.65 s
[really-safe-money] pure $ fromIntegral n
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Natural'
30.65 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
30.65 s
[really-safe-money] @@ -286,7 +286,7 @@
30.65 s
[really-safe-money] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
30.65 s
[really-safe-money] toRatio (DecimalLiteral mSign m e) = case mSign of
30.65 s
[really-safe-money] Just False -> Nothing
30.65 s
[really-safe-money] - _ -> Just $ fromIntegral m / (10 ^ e)
30.65 s
[really-safe-money] + _ -> Just $ fromIntegral m / (0 ^ e)
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Word'
30.65 s
[really-safe-money] fromWord :: Word -> DecimalLiteral
30.65 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
30.65 s
[really-safe-money] @@ -286,7 +286,7 @@
30.65 s
[really-safe-money] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
30.65 s
[really-safe-money] toRatio (DecimalLiteral mSign m e) = case mSign of
30.65 s
[really-safe-money] Just False -> Nothing
30.65 s
[really-safe-money] - _ -> Just $ fromIntegral m / (10 ^ e)
30.65 s
[really-safe-money] + _ -> Just $ fromIntegral m / (1 ^ e)
30.65 s
[really-safe-money]
30.65 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Word'
30.65 s
[really-safe-money] fromWord :: Word -> DecimalLiteral
30.65 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
30.65 s
[really-safe-money] @@ -286,7 +286,7 @@
30.65 s
[really-safe-money] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
30.65 s
[really-safe-money] toRatio (DecimalLiteral mSign m e) = case mSign of
30.65 s
[really-safe-money] Just False -> Nothing
30.66 s
[really-safe-money] - _ -> Just $ fromIntegral m / (10 ^ e)
30.66 s
[really-safe-money] + _ -> Just $ fromIntegral m / (-10 ^ e)
30.66 s
[really-safe-money]
30.66 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Word'
30.66 s
[really-safe-money] fromWord :: Word -> DecimalLiteral
30.66 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:287:38-40
30.66 s
[really-safe-money] @@ -284,9 +284,9 @@
30.66 s
[really-safe-money] -- >>> toRatio (DecimalLiteral (Just False) 3 1)
30.66 s
[really-safe-money] -- Nothing
30.66 s
[really-safe-money] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
30.66 s
[really-safe-money] -toRatio (DecimalLiteral mSign m e) = case mSign of
30.66 s
[really-safe-money] - Just False -> Nothing
30.66 s
[really-safe-money] - _ -> Just $ fromIntegral m / (10 ^ e)
30.66 s
[really-safe-money] +toRatio (DecimalLiteral mSign m e) = case mSign of
30.66 s
[really-safe-money] + Just False -> Nothing
30.66 s
[really-safe-money] + _ -> Just $ fromIntegral m / (10 ^ e)
30.66 s
[really-safe-money]
30.66 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Word'
30.66 s
[really-safe-money] fromWord :: Word -> DecimalLiteral
30.66 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:287:38-40
30.66 s
[really-safe-money] @@ -284,9 +284,9 @@
30.66 s
[really-safe-money] -- >>> toRatio (DecimalLiteral (Just False) 3 1)
30.66 s
[really-safe-money] -- Nothing
30.66 s
[really-safe-money] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
30.66 s
[really-safe-money] -toRatio (DecimalLiteral mSign m e) = case mSign of
30.66 s
[really-safe-money] - Just False -> Nothing
30.66 s
[really-safe-money] - _ -> Just $ fromIntegral m / (10 ^ e)
30.66 s
[really-safe-money] +toRatio (DecimalLiteral mSign m e) = case mSign of
30.66 s
[really-safe-money] + Just False -> Nothing
30.66 s
[really-safe-money] + _ -> Just $ fromIntegral m / (10 ^ e)
30.66 s
[really-safe-money]
30.66 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Word'
30.66 s
[really-safe-money] fromWord :: Word -> DecimalLiteral
30.66 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:236:41-44
30.66 s
[really-safe-money] @@ -233,7 +233,7 @@
30.66 s
[really-safe-money] -- >>> fromRatio (1 % 3)
30.66 s
[really-safe-money] -- Nothing
30.66 s
[really-safe-money] fromRatio :: Ratio Natural -> Maybe DecimalLiteral
30.66 s
[really-safe-money] -fromRatio = fromRationalRepetendLimited 256
30.66 s
[really-safe-money] +fromRatio = fromRationalRepetendLimited 0
30.66 s
[really-safe-money] where
30.66 s
[really-safe-money] fromRationalRepetendLimited ::
30.66 s
[really-safe-money] -- limit
30.66 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:236:41-44
30.66 s
[really-safe-money] @@ -233,7 +233,7 @@
30.66 s
[really-safe-money] -- >>> fromRatio (1 % 3)
30.66 s
[really-safe-money] -- Nothing
30.66 s
[really-safe-money] fromRatio :: Ratio Natural -> Maybe DecimalLiteral
30.66 s
[really-safe-money] -fromRatio = fromRationalRepetendLimited 256
30.66 s
[really-safe-money] +fromRatio = fromRationalRepetendLimited 1
30.66 s
[really-safe-money] where
30.66 s
[really-safe-money] fromRationalRepetendLimited ::
30.66 s
[really-safe-money] -- limit
30.66 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:236:41-44
30.66 s
[really-safe-money] @@ -233,7 +233,7 @@
30.66 s
[really-safe-money] -- >>> fromRatio (1 % 3)
30.66 s
[really-safe-money] -- Nothing
30.66 s
[really-safe-money] fromRatio :: Ratio Natural -> Maybe DecimalLiteral
30.66 s
[really-safe-money] -fromRatio = fromRationalRepetendLimited 256
30.66 s
[really-safe-money] +fromRatio = fromRationalRepetendLimited -256
30.66 s
[really-safe-money] where
30.66 s
[really-safe-money] fromRationalRepetendLimited ::
30.66 s
[really-safe-money] -- limit
30.66 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:244:14-15
30.66 s
[really-safe-money] @@ -241,7 +241,7 @@
30.66 s
[really-safe-money] Ratio Natural ->
30.66 s
[really-safe-money] Maybe DecimalLiteral
30.66 s
[really-safe-money] fromRationalRepetendLimited l rational
30.66 s
[really-safe-money] - | d == 0 = Nothing
30.66 s
[really-safe-money] + | d == 1 = Nothing
30.66 s
[really-safe-money] | otherwise = toLiteral Nothing <$> longDiv num
30.66 s
[really-safe-money] where
30.66 s
[really-safe-money] toLiteral mSign (m, e) = DecimalLiteral mSign m (fromIntegral e)
30.66 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:244:9-15
30.66 s
[really-safe-money] @@ -241,7 +241,7 @@
30.66 s
[really-safe-money] Ratio Natural ->
30.66 s
[really-safe-money] Maybe DecimalLiteral
30.66 s
[really-safe-money] fromRationalRepetendLimited l rational
30.66 s
[really-safe-money] - | d == 0 = Nothing
30.66 s
[really-safe-money] + | True = Nothing
30.66 s
[really-safe-money] | otherwise = toLiteral Nothing <$> longDiv num
30.66 s
[really-safe-money] where
30.66 s
[really-safe-money] toLiteral mSign (m, e) = DecimalLiteral mSign m (fromIntegral e)
30.66 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:244:9-15
30.66 s
[really-safe-money] @@ -241,7 +241,7 @@
30.66 s
[really-safe-money] Ratio Natural ->
30.66 s
[really-safe-money] Maybe DecimalLiteral
30.66 s
[really-safe-money] fromRationalRepetendLimited l rational
30.66 s
[really-safe-money] - | d == 0 = Nothing
30.66 s
[really-safe-money] + | not (d == 0) = Nothing
30.66 s
[really-safe-money] | otherwise = toLiteral Nothing <$> longDiv num
30.66 s
[really-safe-money] where
30.66 s
[really-safe-money] toLiteral mSign (m, e) = DecimalLiteral mSign m (fromIntegral e)
30.66 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:264:13-26
30.66 s
[really-safe-money] @@ -261,7 +261,7 @@
30.66 s
[really-safe-money] Just (c, e)
30.66 s
[really-safe-money] longDivWithLimit !c !e ns !n
30.66 s
[really-safe-money] -- If there's a repetend, we can't turn it into a decimal literal
30.66 s
[really-safe-money] - | S.member n ns = Nothing
30.66 s
[really-safe-money] + | True = Nothing
30.66 s
[really-safe-money] -- Over the limit, stop trying
30.66 s
[really-safe-money] | e >= l = Nothing
30.66 s
[really-safe-money] | n < d =
30.66 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:264:13-26
30.66 s
[really-safe-money] @@ -261,7 +261,7 @@
30.66 s
[really-safe-money] Just (c, e)
30.66 s
[really-safe-money] longDivWithLimit !c !e ns !n
30.66 s
[really-safe-money] -- If there's a repetend, we can't turn it into a decimal literal
30.66 s
[really-safe-money] - | S.member n ns = Nothing
30.66 s
[really-safe-money] + | not (S.member n ns) = Nothing
30.66 s
[really-safe-money] -- Over the limit, stop trying
30.66 s
[really-safe-money] | e >= l = Nothing
30.66 s
[really-safe-money] | n < d =
30.66 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:266:13-19
30.66 s
[really-safe-money] @@ -263,7 +263,7 @@
30.66 s
[really-safe-money] -- If there's a repetend, we can't turn it into a decimal literal
30.66 s
[really-safe-money] | S.member n ns = Nothing
30.66 s
[really-safe-money] -- Over the limit, stop trying
30.66 s
[really-safe-money] - | e >= l = Nothing
30.66 s
[really-safe-money] + | True = Nothing
30.66 s
[really-safe-money] | n < d =
30.66 s
[really-safe-money] let !ns' = S.insert n ns
30.66 s
[really-safe-money] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
30.66 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:266:13-19
30.66 s
[really-safe-money] @@ -263,7 +263,7 @@
30.66 s
[really-safe-money] -- If there's a repetend, we can't turn it into a decimal literal
30.66 s
[really-safe-money] | S.member n ns = Nothing
30.66 s
[really-safe-money] -- Over the limit, stop trying
30.66 s
[really-safe-money] - | e >= l = Nothing
30.66 s
[really-safe-money] + | not (e >= l) = Nothing
30.66 s
[really-safe-money] | n < d =
30.66 s
[really-safe-money] let !ns' = S.insert n ns
30.66 s
[really-safe-money] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
30.66 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:267:13-18
30.66 s
[really-safe-money] @@ -264,7 +264,7 @@
30.66 s
[really-safe-money] | S.member n ns = Nothing
30.66 s
[really-safe-money] -- Over the limit, stop trying
30.66 s
[really-safe-money] | e >= l = Nothing
30.66 s
[really-safe-money] - | n < d =
30.66 s
[really-safe-money] + | True =
30.66 s
[really-safe-money] let !ns' = S.insert n ns
30.66 s
[really-safe-money] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
30.66 s
[really-safe-money] | otherwise =
30.66 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:267:13-18
30.66 s
[really-safe-money] @@ -264,7 +264,7 @@
30.66 s
[really-safe-money] | S.member n ns = Nothing
30.66 s
[really-safe-money] -- Over the limit, stop trying
30.66 s
[really-safe-money] | e >= l = Nothing
30.66 s
[really-safe-money] - | n < d =
30.66 s
[really-safe-money] + | not (n < d) =
30.66 s
[really-safe-money] let !ns' = S.insert n ns
30.66 s
[really-safe-money] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
30.66 s
[really-safe-money] | otherwise =
30.66 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:269:41-43
30.66 s
[really-safe-money] @@ -266,7 +266,7 @@
30.66 s
[really-safe-money] | e >= l = Nothing
30.66 s
[really-safe-money] | n < d =
30.66 s
[really-safe-money] let !ns' = S.insert n ns
30.66 s
[really-safe-money] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
30.66 s
[really-safe-money] + in longDivWithLimit (c * 0) (succ e) ns' (n * 10)
30.66 s
[really-safe-money] | otherwise =
30.66 s
[really-safe-money] let (q, r') = n `quotRem` d
30.66 s
[really-safe-money] in longDivWithLimit (c + q) e ns r'
30.66 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:269:41-43
30.66 s
[really-safe-money] @@ -266,7 +266,7 @@
30.66 s
[really-safe-money] | e >= l = Nothing
30.66 s
[really-safe-money] | n < d =
30.66 s
[really-safe-money] let !ns' = S.insert n ns
30.66 s
[really-safe-money] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
30.66 s
[really-safe-money] + in longDivWithLimit (c * 1) (succ e) ns' (n * 10)
30.66 s
[really-safe-money] | otherwise =
30.66 s
[really-safe-money] let (q, r') = n `quotRem` d
30.66 s
[really-safe-money] in longDivWithLimit (c + q) e ns r'
30.66 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:269:63-65
30.66 s
[really-safe-money] @@ -266,7 +266,7 @@
30.66 s
[really-safe-money] | e >= l = Nothing
30.66 s
[really-safe-money] | n < d =
30.66 s
[really-safe-money] let !ns' = S.insert n ns
30.66 s
[really-safe-money] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
30.67 s
[really-safe-money] + in longDivWithLimit (c * 10) (succ e) ns' (n * 0)
30.67 s
[really-safe-money] | otherwise =
30.67 s
[really-safe-money] let (q, r') = n `quotRem` d
30.67 s
[really-safe-money] in longDivWithLimit (c + q) e ns r'
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:269:63-65
30.67 s
[really-safe-money] @@ -266,7 +266,7 @@
30.67 s
[really-safe-money] | e >= l = Nothing
30.67 s
[really-safe-money] | n < d =
30.67 s
[really-safe-money] let !ns' = S.insert n ns
30.67 s
[really-safe-money] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
30.67 s
[really-safe-money] + in longDivWithLimit (c * 10) (succ e) ns' (n * 1)
30.67 s
[really-safe-money] | otherwise =
30.67 s
[really-safe-money] let (q, r') = n `quotRem` d
30.67 s
[really-safe-money] in longDivWithLimit (c + q) e ns r'
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:252:36-37
30.67 s
[really-safe-money] @@ -249,7 +249,7 @@
30.67 s
[really-safe-money] num = numerator rational
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] longDiv :: Natural -> Maybe (Natural, Int)
30.67 s
[really-safe-money] - longDiv = longDivWithLimit 0 0 S.empty
30.67 s
[really-safe-money] + longDiv = longDivWithLimit 1 0 S.empty
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] longDivWithLimit ::
30.67 s
[really-safe-money] Natural ->
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:252:38-39
30.67 s
[really-safe-money] @@ -249,7 +249,7 @@
30.67 s
[really-safe-money] num = numerator rational
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] longDiv :: Natural -> Maybe (Natural, Int)
30.67 s
[really-safe-money] - longDiv = longDivWithLimit 0 0 S.empty
30.67 s
[really-safe-money] + longDiv = longDivWithLimit 0 1 S.empty
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] longDivWithLimit ::
30.67 s
[really-safe-money] Natural ->
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:223:39-41
30.67 s
[really-safe-money] @@ -220,7 +220,7 @@
30.67 s
[really-safe-money] -- (-3) % 10
30.67 s
[really-safe-money] toRational :: DecimalLiteral -> Rational
30.67 s
[really-safe-money] toRational (DecimalLiteral mSign m e) =
30.67 s
[really-safe-money] - signSignum mSign (fromIntegral m / (10 ^ e))
30.67 s
[really-safe-money] + signSignum mSign (fromIntegral m / (0 ^ e))
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] -- | Parse a 'DecimalLiteral' from a 'Ratio Natural'
30.67 s
[really-safe-money] --
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:223:39-41
30.67 s
[really-safe-money] @@ -220,7 +220,7 @@
30.67 s
[really-safe-money] -- (-3) % 10
30.67 s
[really-safe-money] toRational :: DecimalLiteral -> Rational
30.67 s
[really-safe-money] toRational (DecimalLiteral mSign m e) =
30.67 s
[really-safe-money] - signSignum mSign (fromIntegral m / (10 ^ e))
30.67 s
[really-safe-money] + signSignum mSign (fromIntegral m / (1 ^ e))
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] -- | Parse a 'DecimalLiteral' from a 'Ratio Natural'
30.67 s
[really-safe-money] --
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:223:39-41
30.67 s
[really-safe-money] @@ -220,7 +220,7 @@
30.67 s
[really-safe-money] -- (-3) % 10
30.67 s
[really-safe-money] toRational :: DecimalLiteral -> Rational
30.67 s
[really-safe-money] toRational (DecimalLiteral mSign m e) =
30.67 s
[really-safe-money] - signSignum mSign (fromIntegral m / (10 ^ e))
30.67 s
[really-safe-money] + signSignum mSign (fromIntegral m / (-10 ^ e))
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] -- | Parse a 'DecimalLiteral' from a 'Ratio Natural'
30.67 s
[really-safe-money] --
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:208:9-10
30.67 s
[really-safe-money] @@ -205,7 +205,7 @@
30.67 s
[really-safe-money] -- Nothing
30.67 s
[really-safe-money] fromRational :: Rational -> Maybe DecimalLiteral
30.67 s
[really-safe-money] fromRational (n :% d)
30.67 s
[really-safe-money] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
30.67 s
[really-safe-money] + | n < 1 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
30.67 s
[really-safe-money] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into a 'Rational'
30.67 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:208:5-10
30.67 s
[really-safe-money] @@ -205,7 +205,7 @@
30.67 s
[really-safe-money] -- Nothing
30.67 s
[really-safe-money] fromRational :: Rational -> Maybe DecimalLiteral
30.67 s
[really-safe-money] fromRational (n :% d)
30.67 s
[really-safe-money] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
30.67 s
[really-safe-money] + | True = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
30.67 s
[really-safe-money] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into a 'Rational'
30.67 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:208:5-10
30.67 s
[really-safe-money] @@ -205,7 +205,7 @@
30.67 s
[really-safe-money] -- Nothing
30.67 s
[really-safe-money] fromRational :: Rational -> Maybe DecimalLiteral
30.67 s
[really-safe-money] fromRational (n :% d)
30.67 s
[really-safe-money] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
30.67 s
[really-safe-money] + | not (n < 0) = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
30.67 s
[really-safe-money] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into a 'Rational'
30.67 s
[really-safe-money] added mutation BoolLit at src/Numeric/DecimalLiteral.hs:208:62-67
30.67 s
[really-safe-money] @@ -205,7 +205,7 @@
30.67 s
[really-safe-money] -- Nothing
30.67 s
[really-safe-money] fromRational :: Rational -> Maybe DecimalLiteral
30.67 s
[really-safe-money] fromRational (n :% d)
30.67 s
[really-safe-money] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
30.67 s
[really-safe-money] + | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just True) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
30.67 s
[really-safe-money] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into a 'Rational'
30.67 s
[really-safe-money] added mutation ListLit at src/Numeric/DecimalLiteral.hs:186:15-25
30.67 s
[really-safe-money] @@ -183,7 +183,7 @@
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] goFrac m e = reverse (go e (reverse (show m)))
30.67 s
[really-safe-money] go :: Word8 -> String -> String
30.67 s
[really-safe-money] - go 0 [] = ['.', '0']
30.67 s
[really-safe-money] + go 0 [] = []
30.67 s
[really-safe-money] go 0 s = '.' : s
30.67 s
[really-safe-money] go e [] = '0' : go (pred e) []
30.67 s
[really-safe-money] go e (c : cs) = c : go (pred e) cs
30.67 s
[really-safe-money] added mutation ListLit at src/Numeric/DecimalLiteral.hs:186:15-25
30.67 s
[really-safe-money] @@ -183,7 +183,7 @@
30.67 s
[really-safe-money]
30.67 s
[really-safe-money] goFrac m e = reverse (go e (reverse (show m)))
30.67 s
[really-safe-money] go :: Word8 -> String -> String
30.67 s
[really-safe-money] - go 0 [] = ['.', '0']
30.67 s
[really-safe-money] + go 0 [] = ['.', '0']
30.67 s
[really-safe-money] go 0 s = '.' : s
30.67 s
[really-safe-money] go e [] = '0' : go (pred e) []
30.67 s
[really-safe-money] go e (c : cs) = c : go (pred e) cs
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:145:28-30
30.67 s
[really-safe-money] @@ -142,7 +142,7 @@
30.67 s
[really-safe-money] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
30.67 s
[really-safe-money] parseDigits f z = do
30.67 s
[really-safe-money] c <- ReadP.satisfy Char.isDigit
30.67 s
[really-safe-money] - let digit = Char.ord c - 48
30.67 s
[really-safe-money] + let digit = Char.ord c - 0
30.67 s
[really-safe-money] case f z digit of
30.67 s
[really-safe-money] Nothing -> fail "Failed to step the first digit"
30.67 s
[really-safe-money] Just a -> ReadP.look >>= go a
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:145:28-30
30.67 s
[really-safe-money] @@ -142,7 +142,7 @@
30.67 s
[really-safe-money] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
30.67 s
[really-safe-money] parseDigits f z = do
30.67 s
[really-safe-money] c <- ReadP.satisfy Char.isDigit
30.67 s
[really-safe-money] - let digit = Char.ord c - 48
30.67 s
[really-safe-money] + let digit = Char.ord c - 1
30.67 s
[really-safe-money] case f z digit of
30.67 s
[really-safe-money] Nothing -> fail "Failed to step the first digit"
30.67 s
[really-safe-money] Just a -> ReadP.look >>= go a
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:145:28-30
30.67 s
[really-safe-money] @@ -142,7 +142,7 @@
30.67 s
[really-safe-money] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
30.67 s
[really-safe-money] parseDigits f z = do
30.67 s
[really-safe-money] c <- ReadP.satisfy Char.isDigit
30.67 s
[really-safe-money] - let digit = Char.ord c - 48
30.67 s
[really-safe-money] + let digit = Char.ord c - -48
30.67 s
[really-safe-money] case f z digit of
30.67 s
[really-safe-money] Nothing -> fail "Failed to step the first digit"
30.67 s
[really-safe-money] Just a -> ReadP.look >>= go a
30.67 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:152:9-23
30.67 s
[really-safe-money] @@ -149,7 +149,7 @@
30.67 s
[really-safe-money] where
30.67 s
[really-safe-money] go !a [] = return a
30.67 s
[really-safe-money] go !a (c : cs)
30.67 s
[really-safe-money] - | Char.isDigit c = do
30.67 s
[really-safe-money] + | True = do
30.67 s
[really-safe-money] _ <- ReadP.get
30.67 s
[really-safe-money] let digit = Char.ord c - 48
30.67 s
[really-safe-money] case f a digit of
30.67 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:152:9-23
30.67 s
[really-safe-money] @@ -149,7 +149,7 @@
30.67 s
[really-safe-money] where
30.67 s
[really-safe-money] go !a [] = return a
30.67 s
[really-safe-money] go !a (c : cs)
30.67 s
[really-safe-money] - | Char.isDigit c = do
30.67 s
[really-safe-money] + | not (Char.isDigit c) = do
30.67 s
[really-safe-money] _ <- ReadP.get
30.67 s
[really-safe-money] let digit = Char.ord c - 48
30.67 s
[really-safe-money] case f a digit of
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:154:36-38
30.67 s
[really-safe-money] @@ -151,7 +151,7 @@
30.67 s
[really-safe-money] go !a (c : cs)
30.67 s
[really-safe-money] | Char.isDigit c = do
30.67 s
[really-safe-money] _ <- ReadP.get
30.67 s
[really-safe-money] - let digit = Char.ord c - 48
30.67 s
[really-safe-money] + let digit = Char.ord c - 0
30.67 s
[really-safe-money] case f a digit of
30.67 s
[really-safe-money] Nothing -> fail "Failed to step the digit"
30.67 s
[really-safe-money] Just a' -> go a' cs
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:154:36-38
30.67 s
[really-safe-money] @@ -151,7 +151,7 @@
30.67 s
[really-safe-money] go !a (c : cs)
30.67 s
[really-safe-money] | Char.isDigit c = do
30.67 s
[really-safe-money] _ <- ReadP.get
30.67 s
[really-safe-money] - let digit = Char.ord c - 48
30.67 s
[really-safe-money] + let digit = Char.ord c - 1
30.67 s
[really-safe-money] case f a digit of
30.67 s
[really-safe-money] Nothing -> fail "Failed to step the digit"
30.67 s
[really-safe-money] Just a' -> go a' cs
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:154:36-38
30.67 s
[really-safe-money] @@ -151,7 +151,7 @@
30.67 s
[really-safe-money] go !a (c : cs)
30.67 s
[really-safe-money] | Char.isDigit c = do
30.67 s
[really-safe-money] _ <- ReadP.get
30.67 s
[really-safe-money] - let digit = Char.ord c - 48
30.67 s
[really-safe-money] + let digit = Char.ord c - -48
30.67 s
[really-safe-money] case f a digit of
30.67 s
[really-safe-money] Nothing -> fail "Failed to step the digit"
30.67 s
[really-safe-money] Just a' -> go a' cs
30.67 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:139:27-29
30.67 s
[really-safe-money] @@ -136,7 +136,7 @@
30.68 s
[really-safe-money] stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] step :: Natural -> Int -> Maybe Natural
30.68 s
[really-safe-money] -step a digit = Just $ a * 10 + fromIntegral digit
30.68 s
[really-safe-money] +step a digit = Just $ a * 0 + fromIntegral digit
30.68 s
[really-safe-money] {-# INLINE step #-}
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
30.68 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:139:27-29
30.68 s
[really-safe-money] @@ -136,7 +136,7 @@
30.68 s
[really-safe-money] stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] step :: Natural -> Int -> Maybe Natural
30.68 s
[really-safe-money] -step a digit = Just $ a * 10 + fromIntegral digit
30.68 s
[really-safe-money] +step a digit = Just $ a * 1 + fromIntegral digit
30.68 s
[really-safe-money] {-# INLINE step #-}
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
30.68 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:136:39-41
30.68 s
[really-safe-money] @@ -133,7 +133,7 @@
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] stepFraction :: (Natural, Word8) -> Int -> Maybe (Natural, Word8)
30.68 s
[really-safe-money] stepFraction (_, 255) _ = Nothing
30.68 s
[really-safe-money] -stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
30.68 s
[really-safe-money] +stepFraction (m, e) digit = Just (m * 0 + fromIntegral digit, succ e)
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] step :: Natural -> Int -> Maybe Natural
30.68 s
[really-safe-money] step a digit = Just $ a * 10 + fromIntegral digit
30.68 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:136:39-41
30.68 s
[really-safe-money] @@ -133,7 +133,7 @@
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] stepFraction :: (Natural, Word8) -> Int -> Maybe (Natural, Word8)
30.68 s
[really-safe-money] stepFraction (_, 255) _ = Nothing
30.68 s
[really-safe-money] -stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
30.68 s
[really-safe-money] +stepFraction (m, e) digit = Just (m * 1 + fromIntegral digit, succ e)
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] step :: Natural -> Int -> Maybe Natural
30.68 s
[really-safe-money] step a digit = Just $ a * 10 + fromIntegral digit
30.68 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-30
30.68 s
[really-safe-money] @@ -116,7 +116,7 @@
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] let isSignChar :: Char -> Bool
30.68 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
30.68 s
[really-safe-money] + isSignChar c = True || c == '+'
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-30
30.68 s
[really-safe-money] @@ -116,7 +116,7 @@
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] let isSignChar :: Char -> Bool
30.68 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
30.68 s
[really-safe-money] + isSignChar c = False || c == '+'
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:119:22-30
30.68 s
[really-safe-money] @@ -116,7 +116,7 @@
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] let isSignChar :: Char -> Bool
30.68 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
30.68 s
[really-safe-money] + isSignChar c = not (c == '-') || c == '+'
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:34-42
30.68 s
[really-safe-money] @@ -116,7 +116,7 @@
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] let isSignChar :: Char -> Bool
30.68 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
30.68 s
[really-safe-money] + isSignChar c = c == '-' || True
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:34-42
30.68 s
[really-safe-money] @@ -116,7 +116,7 @@
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] let isSignChar :: Char -> Bool
30.68 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
30.68 s
[really-safe-money] + isSignChar c = c == '-' || False
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:119:34-42
30.68 s
[really-safe-money] @@ -116,7 +116,7 @@
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] let isSignChar :: Char -> Bool
30.68 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
30.68 s
[really-safe-money] + isSignChar c = c == '-' || not (c == '+')
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-42
30.68 s
[really-safe-money] @@ -116,7 +116,7 @@
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] let isSignChar :: Char -> Bool
30.68 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
30.68 s
[really-safe-money] + isSignChar c = True
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-42
30.68 s
[really-safe-money] @@ -116,7 +116,7 @@
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] let isSignChar :: Char -> Bool
30.68 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
30.68 s
[really-safe-money] + isSignChar c = False
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:119:22-42
30.68 s
[really-safe-money] @@ -116,7 +116,7 @@
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] let isSignChar :: Char -> Bool
30.68 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
30.68 s
[really-safe-money] + isSignChar c = not (c == '-' || c == '+')
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:123:19-34
30.68 s
[really-safe-money] @@ -120,7 +120,7 @@
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] - pure $ Just $ signChar == '+'
30.68 s
[really-safe-money] + pure $ Just $ True
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] units <- parseDigits step 0
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:123:19-34
30.68 s
[really-safe-money] @@ -120,7 +120,7 @@
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] - pure $ Just $ signChar == '+'
30.68 s
[really-safe-money] + pure $ Just $ False
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] units <- parseDigits step 0
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:123:19-34
30.68 s
[really-safe-money] @@ -120,7 +120,7 @@
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] - pure $ Just $ signChar == '+'
30.68 s
[really-safe-money] + pure $ Just $ not (signChar == '+')
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] units <- parseDigits step 0
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:125:29-30
30.68 s
[really-safe-money] @@ -122,7 +122,7 @@
30.68 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
30.68 s
[really-safe-money] pure $ Just $ signChar == '+'
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] - units <- parseDigits step 0
30.68 s
[really-safe-money] + units <- parseDigits step 1
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] ReadP.option (DecimalLiteral mSign units 0) $ do
30.68 s
[really-safe-money] _ <- ReadP.satisfy (== '.')
30.68 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:127:44-45
30.68 s
[really-safe-money] @@ -124,7 +124,7 @@
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] units <- parseDigits step 0
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] - ReadP.option (DecimalLiteral mSign units 0) $ do
30.68 s
[really-safe-money] + ReadP.option (DecimalLiteral mSign units 1) $ do
30.68 s
[really-safe-money] _ <- ReadP.satisfy (== '.')
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] (m, e) <- parseDigits stepFraction (units, 0)
30.68 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:130:48-49
30.68 s
[really-safe-money] @@ -127,7 +127,7 @@
30.68 s
[really-safe-money] ReadP.option (DecimalLiteral mSign units 0) $ do
30.68 s
[really-safe-money] _ <- ReadP.satisfy (== '.')
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] - (m, e) <- parseDigits stepFraction (units, 0)
30.68 s
[really-safe-money] + (m, e) <- parseDigits stepFraction (units, 1)
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] pure $ DecimalLiteral mSign m e
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:112:17-21
30.68 s
[really-safe-money] @@ -109,9 +109,9 @@
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] -- | Like 'fromString' but in a 'MonadFail'
30.68 s
[really-safe-money] fromStringM :: (MonadFail m) => String -> m DecimalLiteral
30.68 s
[really-safe-money] -fromStringM s = case Numeric.DecimalLiteral.fromString s of
30.68 s
[really-safe-money] - Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
30.68 s
[really-safe-money] - Just dl -> pure dl
30.68 s
[really-safe-money] +fromStringM s = case Numeric.DecimalLiteral.fromString s of
30.68 s
[really-safe-money] + Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
30.68 s
[really-safe-money] + Just dl -> pure dl
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:112:17-21
30.68 s
[really-safe-money] @@ -109,9 +109,9 @@
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] -- | Like 'fromString' but in a 'MonadFail'
30.68 s
[really-safe-money] fromStringM :: (MonadFail m) => String -> m DecimalLiteral
30.68 s
[really-safe-money] -fromStringM s = case Numeric.DecimalLiteral.fromString s of
30.68 s
[really-safe-money] - Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
30.68 s
[really-safe-money] - Just dl -> pure dl
30.68 s
[really-safe-money] +fromStringM s = case Numeric.DecimalLiteral.fromString s of
30.68 s
[really-safe-money] + Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
30.68 s
[really-safe-money] + Just dl -> pure dl
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
30.68 s
[really-safe-money] decimalLiteralP = do
30.68 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:86:18-18
30.68 s
[really-safe-money] @@ -83,9 +83,9 @@
30.68 s
[really-safe-money] instance NFData DecimalLiteral
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] instance IsString DecimalLiteral where
30.68 s
[really-safe-money] - fromString s = case Numeric.DecimalLiteral.fromString s of
30.68 s
[really-safe-money] - Nothing -> error $ "Invalid DecimalLiteral: " <> show s
30.68 s
[really-safe-money] - Just dl -> dl
30.68 s
[really-safe-money] + fromString s = case Numeric.DecimalLiteral.fromString s of
30.68 s
[really-safe-money] + Nothing -> error $ "Invalid DecimalLiteral: " <> show s
30.68 s
[really-safe-money] + Just dl -> dl
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] -- | Parse a decimal literal from a string
30.68 s
[really-safe-money] --
30.68 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:86:18-18
30.68 s
[really-safe-money] @@ -83,9 +83,9 @@
30.68 s
[really-safe-money] instance NFData DecimalLiteral
30.68 s
[really-safe-money]
30.68 s
[really-safe-money] instance IsString DecimalLiteral where
30.68 s
[really-safe-money] - fromString s = case Numeric.DecimalLiteral.fromString s of
30.68 s
[really-safe-money] - Nothing -> error $ "Invalid DecimalLiteral: " <> show s
30.68 s
[really-safe-money] - Just dl -> dl
30.68 s
[really-safe-money] + fromString s = case Numeric.DecimalLiteral.fromString s of
30.69 s
[really-safe-money] + Nothing -> error $ "Invalid DecimalLiteral: " <> show s
30.69 s
[really-safe-money] + Just dl -> dl
30.69 s
[really-safe-money]
30.69 s
[really-safe-money] -- | Parse a decimal literal from a string
30.69 s
[really-safe-money] --
30.69 s
[really-safe-money] added 87 mutations
32.30 s
[really-safe-money] [ 2 of 12] Compiling Money.QuantisationFactor ( src/Money/QuantisationFactor.hs, dist/build/Money/QuantisationFactor.o, dist/build/Money/QuantisationFactor.dyn_o )
32.43 s
[really-safe-money] mutation: instrumenting Money.QuantisationFactor
32.43 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:87:27-28
32.43 s
[really-safe-money] @@ -84,7 +84,7 @@
32.43 s
[really-safe-money] fromDecimalLiteral dl = do
32.43 s
[really-safe-money] irat <-
32.43 s
[really-safe-money] let r = DecimalLiteral.toRational dl
32.43 s
[really-safe-money] - in if numerator r == 0
32.43 s
[really-safe-money] + in if numerator r == 1
32.43 s
[really-safe-money] then Nothing
32.43 s
[really-safe-money] else pure r
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:87:12-28
32.43 s
[really-safe-money] @@ -84,7 +84,7 @@
32.43 s
[really-safe-money] fromDecimalLiteral dl = do
32.43 s
[really-safe-money] irat <-
32.43 s
[really-safe-money] let r = DecimalLiteral.toRational dl
32.43 s
[really-safe-money] - in if numerator r == 0
32.43 s
[really-safe-money] + in if True
32.43 s
[really-safe-money] then Nothing
32.43 s
[really-safe-money] else pure r
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:87:12-28
32.43 s
[really-safe-money] @@ -84,7 +84,7 @@
32.43 s
[really-safe-money] fromDecimalLiteral dl = do
32.43 s
[really-safe-money] irat <-
32.43 s
[really-safe-money] let r = DecimalLiteral.toRational dl
32.43 s
[really-safe-money] - in if numerator r == 0
32.43 s
[really-safe-money] + in if False
32.43 s
[really-safe-money] then Nothing
32.43 s
[really-safe-money] else pure r
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] added mutation Negate at src/Money/QuantisationFactor.hs:87:12-28
32.43 s
[really-safe-money] @@ -84,7 +84,7 @@
32.43 s
[really-safe-money] fromDecimalLiteral dl = do
32.43 s
[really-safe-money] irat <-
32.43 s
[really-safe-money] let r = DecimalLiteral.toRational dl
32.43 s
[really-safe-money] - in if numerator r == 0
32.43 s
[really-safe-money] + in if not (numerator r == 0)
32.43 s
[really-safe-money] then Nothing
32.43 s
[really-safe-money] else pure r
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] added mutation CondFlip at src/Money/QuantisationFactor.hs:87:9-22
32.43 s
[really-safe-money] @@ -84,9 +84,9 @@
32.43 s
[really-safe-money] fromDecimalLiteral dl = do
32.43 s
[really-safe-money] irat <-
32.43 s
[really-safe-money] let r = DecimalLiteral.toRational dl
32.43 s
[really-safe-money] - in if numerator r == 0
32.43 s
[really-safe-money] - then Nothing
32.43 s
[really-safe-money] - else pure r
32.43 s
[really-safe-money] + in if numerator r == 0
32.43 s
[really-safe-money] + then Nothing
32.43 s
[really-safe-money] + else pure r
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] rat <-
32.43 s
[really-safe-money] let r = 1 / irat
32.43 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:92:13-14
32.43 s
[really-safe-money] @@ -89,7 +89,7 @@
32.43 s
[really-safe-money] else pure r
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] rat <-
32.43 s
[really-safe-money] - let r = 1 / irat
32.43 s
[really-safe-money] + let r = 0 / irat
32.43 s
[really-safe-money] in if r < 0
32.43 s
[really-safe-money] then Nothing
32.43 s
[really-safe-money] else Just r
32.43 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:92:13-14
32.43 s
[really-safe-money] @@ -89,7 +89,7 @@
32.43 s
[really-safe-money] else pure r
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] rat <-
32.43 s
[really-safe-money] - let r = 1 / irat
32.43 s
[really-safe-money] + let r = -1 / irat
32.43 s
[really-safe-money] in if r < 0
32.43 s
[really-safe-money] then Nothing
32.43 s
[really-safe-money] else Just r
32.43 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:93:16-17
32.43 s
[really-safe-money] @@ -90,7 +90,7 @@
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] rat <-
32.43 s
[really-safe-money] let r = 1 / irat
32.43 s
[really-safe-money] - in if r < 0
32.43 s
[really-safe-money] + in if r < 1
32.43 s
[really-safe-money] then Nothing
32.43 s
[really-safe-money] else Just r
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:93:12-17
32.43 s
[really-safe-money] @@ -90,7 +90,7 @@
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] rat <-
32.43 s
[really-safe-money] let r = 1 / irat
32.43 s
[really-safe-money] - in if r < 0
32.43 s
[really-safe-money] + in if True
32.43 s
[really-safe-money] then Nothing
32.43 s
[really-safe-money] else Just r
32.43 s
[really-safe-money]
32.43 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:93:12-17
32.43 s
[really-safe-money] @@ -90,7 +90,7 @@
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] rat <-
32.44 s
[really-safe-money] let r = 1 / irat
32.44 s
[really-safe-money] - in if r < 0
32.44 s
[really-safe-money] + in if False
32.44 s
[really-safe-money] then Nothing
32.44 s
[really-safe-money] else Just r
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] added mutation Negate at src/Money/QuantisationFactor.hs:93:12-17
32.44 s
[really-safe-money] @@ -90,7 +90,7 @@
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] rat <-
32.44 s
[really-safe-money] let r = 1 / irat
32.44 s
[really-safe-money] - in if r < 0
32.44 s
[really-safe-money] + in if not (r < 0)
32.44 s
[really-safe-money] then Nothing
32.44 s
[really-safe-money] else Just r
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] added mutation CondFlip at src/Money/QuantisationFactor.hs:93:9-22
32.44 s
[really-safe-money] @@ -90,9 +90,9 @@
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] rat <-
32.44 s
[really-safe-money] let r = 1 / irat
32.44 s
[really-safe-money] - in if r < 0
32.44 s
[really-safe-money] - then Nothing
32.44 s
[really-safe-money] - else Just r
32.44 s
[really-safe-money] + in if r < 0
32.44 s
[really-safe-money] + then Nothing
32.44 s
[really-safe-money] + else Just r
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] fac <-
32.44 s
[really-safe-money] if denominator rat == 1
32.44 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:98:27-28
32.44 s
[really-safe-money] @@ -95,7 +95,7 @@
32.44 s
[really-safe-money] else Just r
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] fac <-
32.44 s
[really-safe-money] - if denominator rat == 1
32.44 s
[really-safe-money] + if denominator rat == 0
32.44 s
[really-safe-money] then Just (numerator rat)
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:98:27-28
32.44 s
[really-safe-money] @@ -95,7 +95,7 @@
32.44 s
[really-safe-money] else Just r
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] fac <-
32.44 s
[really-safe-money] - if denominator rat == 1
32.44 s
[really-safe-money] + if denominator rat == -1
32.44 s
[really-safe-money] then Just (numerator rat)
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:98:8-28
32.44 s
[really-safe-money] @@ -95,7 +95,7 @@
32.44 s
[really-safe-money] else Just r
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] fac <-
32.44 s
[really-safe-money] - if denominator rat == 1
32.44 s
[really-safe-money] + if True
32.44 s
[really-safe-money] then Just (numerator rat)
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:98:8-28
32.44 s
[really-safe-money] @@ -95,7 +95,7 @@
32.44 s
[really-safe-money] else Just r
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] fac <-
32.44 s
[really-safe-money] - if denominator rat == 1
32.44 s
[really-safe-money] + if False
32.44 s
[really-safe-money] then Just (numerator rat)
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] added mutation Negate at src/Money/QuantisationFactor.hs:98:8-28
32.44 s
[really-safe-money] @@ -95,7 +95,7 @@
32.44 s
[really-safe-money] else Just r
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] fac <-
32.44 s
[really-safe-money] - if denominator rat == 1
32.44 s
[really-safe-money] + if not (denominator rat == 1)
32.44 s
[really-safe-money] then Just (numerator rat)
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] added mutation CondFlip at src/Money/QuantisationFactor.hs:98:5-19
32.44 s
[really-safe-money] @@ -95,9 +95,9 @@
32.44 s
[really-safe-money] else Just r
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] fac <-
32.44 s
[really-safe-money] - if denominator rat == 1
32.44 s
[really-safe-money] - then Just (numerator rat)
32.44 s
[really-safe-money] - else Nothing
32.44 s
[really-safe-money] + if denominator rat == 1
32.44 s
[really-safe-money] + then Just (numerator rat)
32.44 s
[really-safe-money] + else Nothing
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] if fac <= fromIntegral (maxBound :: Word32)
32.44 s
[really-safe-money] then Just (QuantisationFactor (fromIntegral fac))
32.44 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:102:6-46
32.44 s
[really-safe-money] @@ -99,6 +99,6 @@
32.44 s
[really-safe-money] then Just (numerator rat)
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] - if fac <= fromIntegral (maxBound :: Word32)
32.44 s
[really-safe-money] + if True
32.44 s
[really-safe-money] then Just (QuantisationFactor (fromIntegral fac))
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:102:6-46
32.44 s
[really-safe-money] @@ -99,6 +99,6 @@
32.44 s
[really-safe-money] then Just (numerator rat)
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] - if fac <= fromIntegral (maxBound :: Word32)
32.44 s
[really-safe-money] + if False
32.44 s
[really-safe-money] then Just (QuantisationFactor (fromIntegral fac))
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money] added mutation Negate at src/Money/QuantisationFactor.hs:102:6-46
32.44 s
[really-safe-money] @@ -99,6 +99,6 @@
32.44 s
[really-safe-money] then Just (numerator rat)
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] - if fac <= fromIntegral (maxBound :: Word32)
32.44 s
[really-safe-money] + if not (fac <= fromIntegral (maxBound :: Word32))
32.44 s
[really-safe-money] then Just (QuantisationFactor (fromIntegral fac))
32.44 s
[really-safe-money] else Nothing
32.44 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:67:67-68
32.44 s
[really-safe-money] @@ -64,7 +64,7 @@
32.44 s
[really-safe-money] -- Just (DecimalLiteral Nothing 1 0)
32.44 s
[really-safe-money] toDecimalLiteral :: QuantisationFactor -> Maybe DecimalLiteral
32.44 s
[really-safe-money] toDecimalLiteral (QuantisationFactor qfw) =
32.44 s
[really-safe-money] - DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (1 % fromIntegral qfw)
32.44 s
[really-safe-money] + DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (0 % fromIntegral qfw)
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] -- | Parse a 'QuantisationFactor' from a 'DecimalLiteral' that represents the smallest unit
32.44 s
[really-safe-money] -- TODO explain that it's the inverse.
32.44 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:67:67-68
32.44 s
[really-safe-money] @@ -64,7 +64,7 @@
32.44 s
[really-safe-money] -- Just (DecimalLiteral Nothing 1 0)
32.44 s
[really-safe-money] toDecimalLiteral :: QuantisationFactor -> Maybe DecimalLiteral
32.44 s
[really-safe-money] toDecimalLiteral (QuantisationFactor qfw) =
32.44 s
[really-safe-money] - DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (1 % fromIntegral qfw)
32.44 s
[really-safe-money] + DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (-1 % fromIntegral qfw)
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] -- | Parse a 'QuantisationFactor' from a 'DecimalLiteral' that represents the smallest unit
32.44 s
[really-safe-money] -- TODO explain that it's the inverse.
32.44 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:40:62-63
32.44 s
[really-safe-money] @@ -37,7 +37,7 @@
32.44 s
[really-safe-money] validate qf@(QuantisationFactor w) =
32.44 s
[really-safe-money] mconcat
32.44 s
[really-safe-money] [ genericValidate qf,
32.44 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
32.44 s
[really-safe-money] + declare "The quantisation factor is not zero" $ w /= 1
32.44 s
[really-safe-money] ]
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] instance NFData QuantisationFactor
32.44 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:40:57-63
32.44 s
[really-safe-money] @@ -37,7 +37,7 @@
32.44 s
[really-safe-money] validate qf@(QuantisationFactor w) =
32.44 s
[really-safe-money] mconcat
32.44 s
[really-safe-money] [ genericValidate qf,
32.44 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
32.44 s
[really-safe-money] + declare "The quantisation factor is not zero" $ True
32.44 s
[really-safe-money] ]
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] instance NFData QuantisationFactor
32.44 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:40:57-63
32.44 s
[really-safe-money] @@ -37,7 +37,7 @@
32.44 s
[really-safe-money] validate qf@(QuantisationFactor w) =
32.44 s
[really-safe-money] mconcat
32.44 s
[really-safe-money] [ genericValidate qf,
32.44 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
32.44 s
[really-safe-money] + declare "The quantisation factor is not zero" $ False
32.44 s
[really-safe-money] ]
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] instance NFData QuantisationFactor
32.44 s
[really-safe-money] added mutation Negate at src/Money/QuantisationFactor.hs:40:57-63
32.44 s
[really-safe-money] @@ -37,7 +37,7 @@
32.44 s
[really-safe-money] validate qf@(QuantisationFactor w) =
32.44 s
[really-safe-money] mconcat
32.44 s
[really-safe-money] [ genericValidate qf,
32.44 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
32.44 s
[really-safe-money] + declare "The quantisation factor is not zero" $ not (w /= 0)
32.44 s
[really-safe-money] ]
32.44 s
[really-safe-money]
32.44 s
[really-safe-money] instance NFData QuantisationFactor
32.45 s
[really-safe-money] added mutation ListLit at src/Money/QuantisationFactor.hs:39:7-8
32.45 s
[really-safe-money] @@ -36,9 +36,7 @@
32.45 s
[really-safe-money] instance Validity QuantisationFactor where
32.45 s
[really-safe-money] validate qf@(QuantisationFactor w) =
32.45 s
[really-safe-money] mconcat
32.45 s
[really-safe-money] - [ genericValidate qf,
32.45 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
32.45 s
[really-safe-money] - ]
32.45 s
[really-safe-money] + []
32.45 s
[really-safe-money]
32.45 s
[really-safe-money] instance NFData QuantisationFactor
32.45 s
[really-safe-money]
32.45 s
[really-safe-money] added mutation ListLit at src/Money/QuantisationFactor.hs:39:7-8
32.45 s
[really-safe-money] @@ -36,9 +36,9 @@
32.45 s
[really-safe-money] instance Validity QuantisationFactor where
32.45 s
[really-safe-money] validate qf@(QuantisationFactor w) =
32.45 s
[really-safe-money] mconcat
32.45 s
[really-safe-money] - [ genericValidate qf,
32.45 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
32.45 s
[really-safe-money] - ]
32.45 s
[really-safe-money] + [ genericValidate qf,
32.45 s
[really-safe-money] + declare "The quantisation factor is not zero" $ w /= 0
32.45 s
[really-safe-money] + ]
32.45 s
[really-safe-money]
32.45 s
[really-safe-money] instance NFData QuantisationFactor
32.45 s
[really-safe-money]
32.45 s
[really-safe-money] added 29 mutations
32.69 s
[really-safe-money] [ 3 of 12] Compiling Money.Currency ( src/Money/Currency.hs, dist/build/Money/Currency.o, dist/build/Money/Currency.dyn_o )
32.69 s
[really-safe-money] mutation: instrumenting Money.Currency
32.69 s
[really-safe-money] added 0 mutations
33.00 s
[really-safe-money] [ 4 of 12] Compiling Money.ConversionRate ( src/Money/ConversionRate.hs, dist/build/Money/ConversionRate.o, dist/build/Money/ConversionRate.dyn_o )
33.01 s
[really-safe-money] mutation: instrumenting Money.ConversionRate
33.01 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:116:45-46
33.01 s
[really-safe-money] @@ -113,7 +113,7 @@
33.01 s
[really-safe-money] -- >>> invert (ConversionRate (1 % 2))
33.01 s
[really-safe-money] -- ConversionRate {unConversionRate = 2 % 1}
33.01 s
[really-safe-money] invert :: ConversionRate -> ConversionRate
33.01 s
[really-safe-money] -invert (ConversionRate r) = ConversionRate (1 / r)
33.01 s
[really-safe-money] +invert (ConversionRate r) = ConversionRate (0 / r)
33.01 s
[really-safe-money]
33.01 s
[really-safe-money] -- | Compose two conversion rates
33.01 s
[really-safe-money] --
33.01 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:116:45-46
33.01 s
[really-safe-money] @@ -113,7 +113,7 @@
33.01 s
[really-safe-money] -- >>> invert (ConversionRate (1 % 2))
33.01 s
[really-safe-money] -- ConversionRate {unConversionRate = 2 % 1}
33.01 s
[really-safe-money] invert :: ConversionRate -> ConversionRate
33.01 s
[really-safe-money] -invert (ConversionRate r) = ConversionRate (1 / r)
33.01 s
[really-safe-money] +invert (ConversionRate r) = ConversionRate (-1 / r)
33.01 s
[really-safe-money]
33.01 s
[really-safe-money] -- | Compose two conversion rates
33.01 s
[really-safe-money] --
33.01 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:109:27-28
33.01 s
[really-safe-money] @@ -106,7 +106,7 @@
33.01 s
[really-safe-money]
33.01 s
[really-safe-money] -- | One-to-one conversion rate
33.01 s
[really-safe-money] oneToOne :: ConversionRate
33.01 s
[really-safe-money] -oneToOne = ConversionRate 1
33.01 s
[really-safe-money] +oneToOne = ConversionRate 0
33.01 s
[really-safe-money]
33.01 s
[really-safe-money] -- | Invert a 'ConversionRate', to convert in the other direction.
33.01 s
[really-safe-money] --
33.01 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:109:27-28
33.01 s
[really-safe-money] @@ -106,7 +106,7 @@
33.01 s
[really-safe-money]
33.01 s
[really-safe-money] -- | One-to-one conversion rate
33.01 s
[really-safe-money] oneToOne :: ConversionRate
33.01 s
[really-safe-money] -oneToOne = ConversionRate 1
33.01 s
[really-safe-money] +oneToOne = ConversionRate -1
33.01 s
[really-safe-money]
33.01 s
[really-safe-money] -- | Invert a 'ConversionRate', to convert in the other direction.
33.01 s
[really-safe-money] --
33.01 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:72:25-26
33.01 s
[really-safe-money] @@ -69,7 +69,7 @@
33.01 s
[really-safe-money] -- >>> fromRational (0 % 1)
33.01 s
[really-safe-money] -- Nothing
33.01 s
[really-safe-money] fromRational :: Rational -> Maybe ConversionRate
33.01 s
[really-safe-money] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
33.01 s
[really-safe-money] +fromRational r = if r < 1 then Nothing else fromRatio (realToFrac r)
33.01 s
[really-safe-money]
33.01 s
[really-safe-money] -- | Turn a 'ConversionRate' back into a 'Rational'
33.01 s
[really-safe-money] --
33.01 s
[really-safe-money] added mutation ConstBool at src/Money/ConversionRate.hs:72:21-26
33.01 s
[really-safe-money] @@ -69,7 +69,7 @@
33.01 s
[really-safe-money] -- >>> fromRational (0 % 1)
33.01 s
[really-safe-money] -- Nothing
33.01 s
[really-safe-money] fromRational :: Rational -> Maybe ConversionRate
33.01 s
[really-safe-money] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
33.01 s
[really-safe-money] +fromRational r = if True then Nothing else fromRatio (realToFrac r)
33.01 s
[really-safe-money]
33.01 s
[really-safe-money] -- | Turn a 'ConversionRate' back into a 'Rational'
33.01 s
[really-safe-money] --
33.01 s
[really-safe-money] added mutation ConstBool at src/Money/ConversionRate.hs:72:21-26
33.01 s
[really-safe-money] @@ -69,7 +69,7 @@
33.01 s
[really-safe-money] -- >>> fromRational (0 % 1)
33.01 s
[really-safe-money] -- Nothing
33.01 s
[really-safe-money] fromRational :: Rational -> Maybe ConversionRate
33.01 s
[really-safe-money] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
33.01 s
[really-safe-money] +fromRational r = if False then Nothing else fromRatio (realToFrac r)
33.01 s
[really-safe-money]
33.01 s
[really-safe-money] -- | Turn a 'ConversionRate' back into a 'Rational'
33.01 s
[really-safe-money] --
33.01 s
[really-safe-money] added mutation Negate at src/Money/ConversionRate.hs:72:21-26
33.01 s
[really-safe-money] @@ -69,7 +69,7 @@
33.01 s
[really-safe-money] -- >>> fromRational (0 % 1)
33.01 s
[really-safe-money] -- Nothing
33.01 s
[really-safe-money] fromRational :: Rational -> Maybe ConversionRate
33.01 s
[really-safe-money] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
33.01 s
[really-safe-money] +fromRational r = if not (r < 0) then Nothing else fromRatio (realToFrac r)
33.01 s
[really-safe-money]
33.01 s
[really-safe-money] -- | Turn a 'ConversionRate' back into a 'Rational'
33.01 s
[really-safe-money] --
33.01 s
[really-safe-money] added mutation CondFlip at src/Money/ConversionRate.hs:72:18-69
33.01 s
[really-safe-money] @@ -69,7 +69,7 @@
33.01 s
[really-safe-money] -- >>> fromRational (0 % 1)
33.01 s
[really-safe-money] -- Nothing
33.01 s
[really-safe-money] fromRational :: Rational -> Maybe ConversionRate
33.01 s
[really-safe-money] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
33.02 s
[really-safe-money] +fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
33.02 s
[really-safe-money]
33.02 s
[really-safe-money] -- | Turn a 'ConversionRate' back into a 'Rational'
33.02 s
[really-safe-money] --
33.02 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:38:56-57
33.02 s
[really-safe-money] @@ -35,7 +35,7 @@
33.02 s
[really-safe-money] validate cr@(ConversionRate r) =
33.02 s
[really-safe-money] mconcat
33.02 s
[really-safe-money] [ genericValidate cr,
33.02 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
33.02 s
[really-safe-money] + declare "The rate is nonzero" $ numerator r /= 1
33.02 s
[really-safe-money] ]
33.02 s
[really-safe-money]
33.02 s
[really-safe-money] instance NFData ConversionRate
33.02 s
[really-safe-money] added mutation ConstBool at src/Money/ConversionRate.hs:38:41-57
33.02 s
[really-safe-money] @@ -35,7 +35,7 @@
33.02 s
[really-safe-money] validate cr@(ConversionRate r) =
33.02 s
[really-safe-money] mconcat
33.02 s
[really-safe-money] [ genericValidate cr,
33.02 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
33.02 s
[really-safe-money] + declare "The rate is nonzero" $ True
33.02 s
[really-safe-money] ]
33.02 s
[really-safe-money]
33.02 s
[really-safe-money] instance NFData ConversionRate
33.02 s
[really-safe-money] added mutation ConstBool at src/Money/ConversionRate.hs:38:41-57
33.02 s
[really-safe-money] @@ -35,7 +35,7 @@
33.02 s
[really-safe-money] validate cr@(ConversionRate r) =
33.02 s
[really-safe-money] mconcat
33.02 s
[really-safe-money] [ genericValidate cr,
33.02 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
33.02 s
[really-safe-money] + declare "The rate is nonzero" $ False
33.02 s
[really-safe-money] ]
33.02 s
[really-safe-money]
33.02 s
[really-safe-money] instance NFData ConversionRate
33.02 s
[really-safe-money] added mutation Negate at src/Money/ConversionRate.hs:38:41-57
33.02 s
[really-safe-money] @@ -35,7 +35,7 @@
33.02 s
[really-safe-money] validate cr@(ConversionRate r) =
33.02 s
[really-safe-money] mconcat
33.02 s
[really-safe-money] [ genericValidate cr,
33.02 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
33.02 s
[really-safe-money] + declare "The rate is nonzero" $ not (numerator r /= 0)
33.02 s
[really-safe-money] ]
33.02 s
[really-safe-money]
33.02 s
[really-safe-money] instance NFData ConversionRate
33.02 s
[really-safe-money] added mutation ListLit at src/Money/ConversionRate.hs:37:7-8
33.02 s
[really-safe-money] @@ -34,9 +34,7 @@
33.02 s
[really-safe-money] instance Validity ConversionRate where
33.02 s
[really-safe-money] validate cr@(ConversionRate r) =
33.02 s
[really-safe-money] mconcat
33.02 s
[really-safe-money] - [ genericValidate cr,
33.02 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
33.02 s
[really-safe-money] - ]
33.02 s
[really-safe-money] + []
33.02 s
[really-safe-money]
33.02 s
[really-safe-money] instance NFData ConversionRate
33.02 s
[really-safe-money]
33.02 s
[really-safe-money] added mutation ListLit at src/Money/ConversionRate.hs:37:7-8
33.02 s
[really-safe-money] @@ -34,9 +34,9 @@
33.02 s
[really-safe-money] instance Validity ConversionRate where
33.02 s
[really-safe-money] validate cr@(ConversionRate r) =
33.02 s
[really-safe-money] mconcat
33.02 s
[really-safe-money] - [ genericValidate cr,
33.02 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
33.02 s
[really-safe-money] - ]
33.02 s
[really-safe-money] + [ genericValidate cr,
33.02 s
[really-safe-money] + declare "The rate is nonzero" $ numerator r /= 0
33.02 s
[really-safe-money] + ]
33.02 s
[really-safe-money]
33.02 s
[really-safe-money] instance NFData ConversionRate
33.02 s
[really-safe-money]
33.02 s
[really-safe-money] added 15 mutations
33.25 s
[really-safe-money] [ 5 of 12] Compiling Money.ConversionRateOf ( src/Money/ConversionRateOf.hs, dist/build/Money/ConversionRateOf.o, dist/build/Money/ConversionRateOf.dyn_o )
33.25 s
[really-safe-money] mutation: instrumenting Money.ConversionRateOf
33.25 s
[really-safe-money] added 0 mutations
33.33 s
[really-safe-money] [ 6 of 12] Compiling Money.Amount ( src/Money/Amount.hs, dist/build/Money/Amount.o, dist/build/Money/Amount.dyn_o )
33.40 s
[really-safe-money] mutation: instrumenting Money.Amount
33.40 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:801:36-38
33.40 s
[really-safe-money] @@ -798,7 +798,7 @@
33.40 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor 0) = "%f"
33.40 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor qf) =
33.40 s
[really-safe-money] let decimals :: Int
33.40 s
[really-safe-money] - decimals = ceiling $ logBase 10 (fromIntegral qf :: Float)
33.40 s
[really-safe-money] + decimals = ceiling $ logBase 0 (fromIntegral qf :: Float)
33.40 s
[really-safe-money] in printf "%%0.%df" decimals
33.40 s
[really-safe-money]
33.40 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
33.40 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:801:36-38
33.40 s
[really-safe-money] @@ -798,7 +798,7 @@
33.40 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor 0) = "%f"
33.40 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor qf) =
33.40 s
[really-safe-money] let decimals :: Int
33.40 s
[really-safe-money] - decimals = ceiling $ logBase 10 (fromIntegral qf :: Float)
33.40 s
[really-safe-money] + decimals = ceiling $ logBase 1 (fromIntegral qf :: Float)
33.40 s
[really-safe-money] in printf "%%0.%df" decimals
33.40 s
[really-safe-money]
33.40 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
33.40 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:801:36-38
33.40 s
[really-safe-money] @@ -798,7 +798,7 @@
33.40 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor 0) = "%f"
33.40 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor qf) =
33.40 s
[really-safe-money] let decimals :: Int
33.40 s
[really-safe-money] - decimals = ceiling $ logBase 10 (fromIntegral qf :: Float)
33.40 s
[really-safe-money] + decimals = ceiling $ logBase -10 (fromIntegral qf :: Float)
33.40 s
[really-safe-money] in printf "%%0.%df" decimals
33.40 s
[really-safe-money]
33.40 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
33.40 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:569:18-19
33.40 s
[really-safe-money] @@ -566,7 +566,7 @@
33.40 s
[really-safe-money] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
33.40 s
[really-safe-money] smallerChunk :: Amount
33.40 s
[really-safe-money] smallerChunk = Amount smallerChunkSize
33.40 s
[really-safe-money] - in if rest == 0
33.40 s
[really-safe-money] + in if rest == 1
33.40 s
[really-safe-money] then DistributedIntoEqualChunks f smallerChunk
33.40 s
[really-safe-money] else
33.40 s
[really-safe-money] let -- This 'fromIntegral' is theoretically not safe, but it's
33.40 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:569:10-19
33.40 s
[really-safe-money] @@ -566,7 +566,7 @@
33.40 s
[really-safe-money] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
33.40 s
[really-safe-money] smallerChunk :: Amount
33.40 s
[really-safe-money] smallerChunk = Amount smallerChunkSize
33.40 s
[really-safe-money] - in if rest == 0
33.40 s
[really-safe-money] + in if True
33.40 s
[really-safe-money] then DistributedIntoEqualChunks f smallerChunk
33.40 s
[really-safe-money] else
33.40 s
[really-safe-money] let -- This 'fromIntegral' is theoretically not safe, but it's
33.40 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:569:10-19
33.40 s
[really-safe-money] @@ -566,7 +566,7 @@
33.40 s
[really-safe-money] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
33.40 s
[really-safe-money] smallerChunk :: Amount
33.40 s
[really-safe-money] smallerChunk = Amount smallerChunkSize
33.40 s
[really-safe-money] - in if rest == 0
33.40 s
[really-safe-money] + in if False
33.40 s
[really-safe-money] then DistributedIntoEqualChunks f smallerChunk
33.40 s
[really-safe-money] else
33.40 s
[really-safe-money] let -- This 'fromIntegral' is theoretically not safe, but it's
33.40 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:569:10-19
33.40 s
[really-safe-money] @@ -566,7 +566,7 @@
33.40 s
[really-safe-money] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
33.40 s
[really-safe-money] smallerChunk :: Amount
33.40 s
[really-safe-money] smallerChunk = Amount smallerChunkSize
33.40 s
[really-safe-money] - in if rest == 0
33.40 s
[really-safe-money] + in if not (rest == 0)
33.40 s
[really-safe-money] then DistributedIntoEqualChunks f smallerChunk
33.40 s
[really-safe-money] else
33.40 s
[really-safe-money] let -- This 'fromIntegral' is theoretically not safe, but it's
33.40 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:569:7-29
33.40 s
[really-safe-money] @@ -566,22 +566,22 @@
33.40 s
[really-safe-money] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
33.40 s
[really-safe-money] smallerChunk :: Amount
33.40 s
[really-safe-money] smallerChunk = Amount smallerChunkSize
33.40 s
[really-safe-money] - in if rest == 0
33.40 s
[really-safe-money] - then DistributedIntoEqualChunks f smallerChunk
33.40 s
[really-safe-money] - else
33.40 s
[really-safe-money] - let -- This 'fromIntegral' is theoretically not safe, but it's
33.40 s
[really-safe-money] - -- necessarily smaller than f so it will fit.
33.40 s
[really-safe-money] - numberOfLargerChunks :: Word32
33.40 s
[really-safe-money] - numberOfLargerChunks = (fromIntegral :: Word64 -> Word32) rest
33.40 s
[really-safe-money] - numberOfSmallerChunks :: Word32
33.40 s
[really-safe-money] - numberOfSmallerChunks = f - numberOfLargerChunks
33.40 s
[really-safe-money] - largerChunk :: Amount
33.40 s
[really-safe-money] - largerChunk = Amount $ succ smallerChunkSize
33.40 s
[really-safe-money] - in DistributedIntoUnequalChunks
33.40 s
[really-safe-money] - numberOfLargerChunks
33.40 s
[really-safe-money] - largerChunk
33.40 s
[really-safe-money] - numberOfSmallerChunks
33.40 s
[really-safe-money] - smallerChunk
33.40 s
[really-safe-money] + in if rest == 0
33.40 s
[really-safe-money] + then DistributedIntoEqualChunks f smallerChunk
33.40 s
[really-safe-money] + else
33.40 s
[really-safe-money] + let -- This 'fromIntegral' is theoretically not safe, but it's
33.40 s
[really-safe-money] + -- necessarily smaller than f so it will fit.
33.40 s
[really-safe-money] + numberOfLargerChunks :: Word32
33.40 s
[really-safe-money] + numberOfLargerChunks = (fromIntegral :: Word64 -> Word32) rest
33.40 s
[really-safe-money] + numberOfSmallerChunks :: Word32
33.40 s
[really-safe-money] + numberOfSmallerChunks = f - numberOfLargerChunks
33.40 s
[really-safe-money] + largerChunk :: Amount
33.40 s
[really-safe-money] + largerChunk = Amount $ succ smallerChunkSize
33.40 s
[really-safe-money] + in DistributedIntoUnequalChunks
33.40 s
[really-safe-money] + numberOfLargerChunks
33.40 s
[really-safe-money] + largerChunk
33.41 s
[really-safe-money] + numberOfSmallerChunks
33.41 s
[really-safe-money] + smallerChunk
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] -- | The result of 'distribute'
33.41 s
[really-safe-money] type AmountDistribution = Distribution Amount
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:544:10-23
33.41 s
[really-safe-money] @@ -541,7 +541,7 @@
33.41 s
[really-safe-money] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
33.41 s
[really-safe-money] - in if r > maxBoundI
33.41 s
[really-safe-money] + in if True
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:544:10-23
33.41 s
[really-safe-money] @@ -541,7 +541,7 @@
33.41 s
[really-safe-money] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
33.41 s
[really-safe-money] - in if r > maxBoundI
33.41 s
[really-safe-money] + in if False
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:544:10-23
33.41 s
[really-safe-money] @@ -541,7 +541,7 @@
33.41 s
[really-safe-money] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
33.41 s
[really-safe-money] - in if r > maxBoundI
33.41 s
[really-safe-money] + in if not (r > maxBoundI)
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:544:7-66
33.41 s
[really-safe-money] @@ -541,9 +541,9 @@
33.41 s
[really-safe-money] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
33.41 s
[really-safe-money] - in if r > maxBoundI
33.41 s
[really-safe-money] - then Nothing
33.41 s
[really-safe-money] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money] + in if r > maxBoundI
33.41 s
[really-safe-money] + then Nothing
33.41 s
[really-safe-money] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
33.41 s
[really-safe-money] --
33.41 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:518:14-15
33.41 s
[really-safe-money] @@ -515,7 +515,7 @@
33.41 s
[really-safe-money] i2 = (fromIntegral :: Word64 -> Integer) a2
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = i1 - i2
33.41 s
[really-safe-money] - in if r < 0
33.41 s
[really-safe-money] + in if r < 1
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:518:10-15
33.41 s
[really-safe-money] @@ -515,7 +515,7 @@
33.41 s
[really-safe-money] i2 = (fromIntegral :: Word64 -> Integer) a2
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = i1 - i2
33.41 s
[really-safe-money] - in if r < 0
33.41 s
[really-safe-money] + in if True
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:518:10-15
33.41 s
[really-safe-money] @@ -515,7 +515,7 @@
33.41 s
[really-safe-money] i2 = (fromIntegral :: Word64 -> Integer) a2
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = i1 - i2
33.41 s
[really-safe-money] - in if r < 0
33.41 s
[really-safe-money] + in if False
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:518:10-15
33.41 s
[really-safe-money] @@ -515,7 +515,7 @@
33.41 s
[really-safe-money] i2 = (fromIntegral :: Word64 -> Integer) a2
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = i1 - i2
33.41 s
[really-safe-money] - in if r < 0
33.41 s
[really-safe-money] + in if not (r < 0)
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:518:7-66
33.41 s
[really-safe-money] @@ -515,9 +515,9 @@
33.41 s
[really-safe-money] i2 = (fromIntegral :: Word64 -> Integer) a2
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = i1 - i2
33.41 s
[really-safe-money] - in if r < 0
33.41 s
[really-safe-money] - then Nothing
33.41 s
[really-safe-money] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money] + in if r < 0
33.41 s
[really-safe-money] + then Nothing
33.41 s
[really-safe-money] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] -- | Multiply an amount of money by an integer scalar
33.41 s
[really-safe-money] --
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:476:10-23
33.41 s
[really-safe-money] @@ -473,7 +473,7 @@
33.41 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = i1 + i2
33.41 s
[really-safe-money] - in if r > maxBoundI
33.41 s
[really-safe-money] + in if True
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:476:10-23
33.41 s
[really-safe-money] @@ -473,7 +473,7 @@
33.41 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = i1 + i2
33.41 s
[really-safe-money] - in if r > maxBoundI
33.41 s
[really-safe-money] + in if False
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:476:10-23
33.41 s
[really-safe-money] @@ -473,7 +473,7 @@
33.41 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = i1 + i2
33.41 s
[really-safe-money] - in if r > maxBoundI
33.41 s
[really-safe-money] + in if not (r > maxBoundI)
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:476:7-66
33.41 s
[really-safe-money] @@ -473,9 +473,9 @@
33.41 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
33.41 s
[really-safe-money] r :: Integer
33.41 s
[really-safe-money] r = i1 + i2
33.41 s
[really-safe-money] - in if r > maxBoundI
33.41 s
[really-safe-money] - then Nothing
33.41 s
[really-safe-money] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money] + in if r > maxBoundI
33.41 s
[really-safe-money] + then Nothing
33.41 s
[really-safe-money] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.41 s
[really-safe-money]
33.41 s
[really-safe-money] -- | Add a number of amounts of money together.
33.41 s
[really-safe-money] --
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:388:5-16
33.41 s
[really-safe-money] @@ -385,7 +385,7 @@
33.41 s
[really-safe-money] -- Nothing
33.41 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
33.41 s
[really-safe-money] fromRational (QuantisationFactor qf) r
33.41 s
[really-safe-money] - | isInvalid r = Nothing
33.41 s
[really-safe-money] + | True = Nothing
33.41 s
[really-safe-money] | r < 0 = Nothing
33.41 s
[really-safe-money] | otherwise =
33.41 s
[really-safe-money] let resultRational :: Rational
33.41 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:388:5-16
33.41 s
[really-safe-money] @@ -385,7 +385,7 @@
33.41 s
[really-safe-money] -- Nothing
33.41 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
33.41 s
[really-safe-money] fromRational (QuantisationFactor qf) r
33.41 s
[really-safe-money] - | isInvalid r = Nothing
33.41 s
[really-safe-money] + | not (isInvalid r) = Nothing
33.41 s
[really-safe-money] | r < 0 = Nothing
33.41 s
[really-safe-money] | otherwise =
33.41 s
[really-safe-money] let resultRational :: Rational
33.41 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:389:9-10
33.41 s
[really-safe-money] @@ -386,7 +386,7 @@
33.41 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
33.41 s
[really-safe-money] fromRational (QuantisationFactor qf) r
33.41 s
[really-safe-money] | isInvalid r = Nothing
33.41 s
[really-safe-money] - | r < 0 = Nothing
33.41 s
[really-safe-money] + | r < 1 = Nothing
33.41 s
[really-safe-money] | otherwise =
33.41 s
[really-safe-money] let resultRational :: Rational
33.41 s
[really-safe-money] resultRational = r * (fromIntegral :: Word32 -> Rational) qf
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:389:5-10
33.41 s
[really-safe-money] @@ -386,7 +386,7 @@
33.41 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
33.41 s
[really-safe-money] fromRational (QuantisationFactor qf) r
33.41 s
[really-safe-money] | isInvalid r = Nothing
33.41 s
[really-safe-money] - | r < 0 = Nothing
33.41 s
[really-safe-money] + | True = Nothing
33.41 s
[really-safe-money] | otherwise =
33.41 s
[really-safe-money] let resultRational :: Rational
33.41 s
[really-safe-money] resultRational = r * (fromIntegral :: Word32 -> Rational) qf
33.41 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:389:5-10
33.41 s
[really-safe-money] @@ -386,7 +386,7 @@
33.41 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
33.41 s
[really-safe-money] fromRational (QuantisationFactor qf) r
33.41 s
[really-safe-money] | isInvalid r = Nothing
33.41 s
[really-safe-money] - | r < 0 = Nothing
33.41 s
[really-safe-money] + | not (r < 0) = Nothing
33.41 s
[really-safe-money] | otherwise =
33.41 s
[really-safe-money] let resultRational :: Rational
33.41 s
[really-safe-money] resultRational = r * (fromIntegral :: Word32 -> Rational) qf
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:397:14-31
33.41 s
[really-safe-money] @@ -394,7 +394,7 @@
33.41 s
[really-safe-money] ceiled = (ceiling :: Rational -> Natural) resultRational
33.41 s
[really-safe-money] floored :: Natural
33.41 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
33.41 s
[really-safe-money] - in if ceiled == floored
33.41 s
[really-safe-money] + in if True
33.41 s
[really-safe-money] then
33.41 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:397:14-31
33.41 s
[really-safe-money] @@ -394,7 +394,7 @@
33.41 s
[really-safe-money] ceiled = (ceiling :: Rational -> Natural) resultRational
33.41 s
[really-safe-money] floored :: Natural
33.41 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
33.41 s
[really-safe-money] - in if ceiled == floored
33.41 s
[really-safe-money] + in if False
33.41 s
[really-safe-money] then
33.41 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:397:14-31
33.41 s
[really-safe-money] @@ -394,7 +394,7 @@
33.41 s
[really-safe-money] ceiled = (ceiling :: Rational -> Natural) resultRational
33.41 s
[really-safe-money] floored :: Natural
33.41 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
33.41 s
[really-safe-money] - in if ceiled == floored
33.41 s
[really-safe-money] + in if not (ceiled == floored)
33.41 s
[really-safe-money] then
33.41 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:399:18-83
33.41 s
[really-safe-money] @@ -396,7 +396,7 @@
33.41 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
33.41 s
[really-safe-money] in if ceiled == floored
33.41 s
[really-safe-money] then
33.41 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.41 s
[really-safe-money] + if True
33.41 s
[really-safe-money] then Nothing
33.41 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
33.41 s
[really-safe-money] else Nothing
33.42 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:399:18-83
33.42 s
[really-safe-money] @@ -396,7 +396,7 @@
33.42 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
33.42 s
[really-safe-money] in if ceiled == floored
33.42 s
[really-safe-money] then
33.42 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.42 s
[really-safe-money] + if False
33.42 s
[really-safe-money] then Nothing
33.42 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
33.42 s
[really-safe-money] else Nothing
33.42 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:399:18-83
33.42 s
[really-safe-money] @@ -396,7 +396,7 @@
33.42 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
33.42 s
[really-safe-money] in if ceiled == floored
33.42 s
[really-safe-money] then
33.42 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.42 s
[really-safe-money] + if not (ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64))
33.42 s
[really-safe-money] then Nothing
33.42 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
33.42 s
[really-safe-money] else Nothing
33.42 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:399:15-57
33.42 s
[really-safe-money] @@ -396,9 +396,9 @@
33.42 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
33.42 s
[really-safe-money] in if ceiled == floored
33.42 s
[really-safe-money] then
33.42 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.42 s
[really-safe-money] - then Nothing
33.42 s
[really-safe-money] - else Just $ Amount (fromIntegral ceiled)
33.42 s
[really-safe-money] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.42 s
[really-safe-money] + then Nothing
33.42 s
[really-safe-money] + else Just $ Amount (fromIntegral ceiled)
33.42 s
[really-safe-money] else Nothing
33.42 s
[really-safe-money]
33.42 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
33.42 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:397:11-25
33.43 s
[really-safe-money] @@ -394,12 +394,12 @@
33.43 s
[really-safe-money] ceiled = (ceiling :: Rational -> Natural) resultRational
33.43 s
[really-safe-money] floored :: Natural
33.43 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
33.43 s
[really-safe-money] - in if ceiled == floored
33.43 s
[really-safe-money] - then
33.43 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] - then Nothing
33.43 s
[really-safe-money] - else Just $ Amount (fromIntegral ceiled)
33.43 s
[really-safe-money] - else Nothing
33.43 s
[really-safe-money] + in if ceiled == floored
33.43 s
[really-safe-money] + then
33.43 s
[really-safe-money] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] + then Nothing
33.43 s
[really-safe-money] + else Just $ Amount (fromIntegral ceiled)
33.43 s
[really-safe-money] + else Nothing
33.43 s
[really-safe-money]
33.43 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
33.43 s
[really-safe-money] --
33.43 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:320:9-10
33.43 s
[really-safe-money] @@ -317,7 +317,7 @@
33.43 s
[really-safe-money] Double ->
33.43 s
[really-safe-money] Maybe Amount
33.43 s
[really-safe-money] fromDouble (QuantisationFactor qf) d
33.43 s
[really-safe-money] - | d < 0 = Nothing
33.43 s
[really-safe-money] + | d < 1 = Nothing
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] let resultDouble :: Double
33.43 s
[really-safe-money] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
33.43 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:320:5-10
33.43 s
[really-safe-money] @@ -317,7 +317,7 @@
33.43 s
[really-safe-money] Double ->
33.43 s
[really-safe-money] Maybe Amount
33.43 s
[really-safe-money] fromDouble (QuantisationFactor qf) d
33.43 s
[really-safe-money] - | d < 0 = Nothing
33.43 s
[really-safe-money] + | True = Nothing
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] let resultDouble :: Double
33.43 s
[really-safe-money] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
33.43 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:320:5-10
33.43 s
[really-safe-money] @@ -317,7 +317,7 @@
33.43 s
[really-safe-money] Double ->
33.43 s
[really-safe-money] Maybe Amount
33.43 s
[really-safe-money] fromDouble (QuantisationFactor qf) d
33.43 s
[really-safe-money] - | d < 0 = Nothing
33.43 s
[really-safe-money] + | not (d < 0) = Nothing
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] let resultDouble :: Double
33.43 s
[really-safe-money] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
33.43 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:327:9-16
33.43 s
[really-safe-money] @@ -324,7 +324,7 @@
33.43 s
[really-safe-money] in go resultDouble
33.43 s
[really-safe-money] where
33.43 s
[really-safe-money] go resultDouble
33.43 s
[really-safe-money] - | isNaN d = Nothing
33.43 s
[really-safe-money] + | True = Nothing
33.43 s
[really-safe-money] | isInfinite d = Nothing
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:327:9-16
33.43 s
[really-safe-money] @@ -324,7 +324,7 @@
33.43 s
[really-safe-money] in go resultDouble
33.43 s
[really-safe-money] where
33.43 s
[really-safe-money] go resultDouble
33.43 s
[really-safe-money] - | isNaN d = Nothing
33.43 s
[really-safe-money] + | not (isNaN d) = Nothing
33.43 s
[really-safe-money] | isInfinite d = Nothing
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:328:9-21
33.43 s
[really-safe-money] @@ -325,7 +325,7 @@
33.43 s
[really-safe-money] where
33.43 s
[really-safe-money] go resultDouble
33.43 s
[really-safe-money] | isNaN d = Nothing
33.43 s
[really-safe-money] - | isInfinite d = Nothing
33.43 s
[really-safe-money] + | True = Nothing
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
33.43 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:328:9-21
33.43 s
[really-safe-money] @@ -325,7 +325,7 @@
33.43 s
[really-safe-money] where
33.43 s
[really-safe-money] go resultDouble
33.43 s
[really-safe-money] | isNaN d = Nothing
33.43 s
[really-safe-money] - | isInfinite d = Nothing
33.43 s
[really-safe-money] + | not (isInfinite d) = Nothing
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
33.43 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:332:38-40
33.43 s
[really-safe-money] @@ -329,7 +329,7 @@
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
33.43 s
[really-safe-money] - if exponent resultDouble > 65
33.43 s
[really-safe-money] + if exponent resultDouble > 0
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] else
33.43 s
[really-safe-money] let ceiled :: Natural
33.43 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:332:38-40
33.43 s
[really-safe-money] @@ -329,7 +329,7 @@
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
33.43 s
[really-safe-money] - if exponent resultDouble > 65
33.43 s
[really-safe-money] + if exponent resultDouble > 1
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] else
33.43 s
[really-safe-money] let ceiled :: Natural
33.43 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:332:38-40
33.43 s
[really-safe-money] @@ -329,7 +329,7 @@
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
33.43 s
[really-safe-money] - if exponent resultDouble > 65
33.43 s
[really-safe-money] + if exponent resultDouble > -65
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] else
33.43 s
[really-safe-money] let ceiled :: Natural
33.43 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:332:14-40
33.43 s
[really-safe-money] @@ -329,7 +329,7 @@
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
33.43 s
[really-safe-money] - if exponent resultDouble > 65
33.43 s
[really-safe-money] + if True
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] else
33.43 s
[really-safe-money] let ceiled :: Natural
33.43 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:332:14-40
33.43 s
[really-safe-money] @@ -329,7 +329,7 @@
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
33.43 s
[really-safe-money] - if exponent resultDouble > 65
33.43 s
[really-safe-money] + if False
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] else
33.43 s
[really-safe-money] let ceiled :: Natural
33.43 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:332:14-40
33.43 s
[really-safe-money] @@ -329,7 +329,7 @@
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
33.43 s
[really-safe-money] - if exponent resultDouble > 65
33.43 s
[really-safe-money] + if not (exponent resultDouble > 65)
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] else
33.43 s
[really-safe-money] let ceiled :: Natural
33.43 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:339:22-39
33.43 s
[really-safe-money] @@ -336,7 +336,7 @@
33.43 s
[really-safe-money] ceiled = (ceiling :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] floored :: Natural
33.43 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] - in if ceiled == floored
33.43 s
[really-safe-money] + in if True
33.43 s
[really-safe-money] then
33.43 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:339:22-39
33.43 s
[really-safe-money] @@ -336,7 +336,7 @@
33.43 s
[really-safe-money] ceiled = (ceiling :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] floored :: Natural
33.43 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] - in if ceiled == floored
33.43 s
[really-safe-money] + in if False
33.43 s
[really-safe-money] then
33.43 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:339:22-39
33.43 s
[really-safe-money] @@ -336,7 +336,7 @@
33.43 s
[really-safe-money] ceiled = (ceiling :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] floored :: Natural
33.43 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] - in if ceiled == floored
33.43 s
[really-safe-money] + in if not (ceiled == floored)
33.43 s
[really-safe-money] then
33.43 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:341:26-91
33.43 s
[really-safe-money] @@ -338,7 +338,7 @@
33.43 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] in if ceiled == floored
33.43 s
[really-safe-money] then
33.43 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] + if True
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
33.43 s
[really-safe-money] else Nothing
33.43 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:341:26-91
33.43 s
[really-safe-money] @@ -338,7 +338,7 @@
33.43 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] in if ceiled == floored
33.43 s
[really-safe-money] then
33.43 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] + if False
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
33.43 s
[really-safe-money] else Nothing
33.43 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:341:26-91
33.43 s
[really-safe-money] @@ -338,7 +338,7 @@
33.43 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] in if ceiled == floored
33.43 s
[really-safe-money] then
33.43 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] + if not (ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64))
33.43 s
[really-safe-money] then Nothing
33.43 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
33.43 s
[really-safe-money] else Nothing
33.43 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:341:23-65
33.43 s
[really-safe-money] @@ -338,9 +338,9 @@
33.43 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] in if ceiled == floored
33.43 s
[really-safe-money] then
33.43 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] - then Nothing
33.43 s
[really-safe-money] - else Just $ Amount (fromIntegral ceiled)
33.43 s
[really-safe-money] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] + then Nothing
33.43 s
[really-safe-money] + else Just $ Amount (fromIntegral ceiled)
33.43 s
[really-safe-money] else Nothing
33.43 s
[really-safe-money]
33.43 s
[really-safe-money] -- | Turn an amount of money into a 'Double'.
33.43 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:339:19-33
33.43 s
[really-safe-money] @@ -336,12 +336,12 @@
33.43 s
[really-safe-money] ceiled = (ceiling :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] floored :: Natural
33.43 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] - in if ceiled == floored
33.43 s
[really-safe-money] - then
33.43 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] - then Nothing
33.43 s
[really-safe-money] - else Just $ Amount (fromIntegral ceiled)
33.43 s
[really-safe-money] - else Nothing
33.43 s
[really-safe-money] + in if ceiled == floored
33.43 s
[really-safe-money] + then
33.43 s
[really-safe-money] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] + then Nothing
33.43 s
[really-safe-money] + else Just $ Amount (fromIntegral ceiled)
33.43 s
[really-safe-money] + else Nothing
33.43 s
[really-safe-money]
33.43 s
[really-safe-money] -- | Turn an amount of money into a 'Double'.
33.43 s
[really-safe-money] --
33.43 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:332:11-33
33.43 s
[really-safe-money] @@ -329,19 +329,19 @@
33.43 s
[really-safe-money] | otherwise =
33.43 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
33.43 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
33.43 s
[really-safe-money] - if exponent resultDouble > 65
33.43 s
[really-safe-money] - then Nothing
33.43 s
[really-safe-money] - else
33.43 s
[really-safe-money] - let ceiled :: Natural
33.43 s
[really-safe-money] - ceiled = (ceiling :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] - floored :: Natural
33.43 s
[really-safe-money] - floored = (floor :: Double -> Natural) resultDouble
33.43 s
[really-safe-money] - in if ceiled == floored
33.43 s
[really-safe-money] - then
33.43 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.43 s
[really-safe-money] - then Nothing
33.43 s
[really-safe-money] - else Just $ Amount (fromIntegral ceiled)
33.44 s
[really-safe-money] - else Nothing
33.44 s
[really-safe-money] + if exponent resultDouble > 65
33.44 s
[really-safe-money] + then Nothing
33.44 s
[really-safe-money] + else
33.44 s
[really-safe-money] + let ceiled :: Natural
33.44 s
[really-safe-money] + ceiled = (ceiling :: Double -> Natural) resultDouble
33.44 s
[really-safe-money] + floored :: Natural
33.44 s
[really-safe-money] + floored = (floor :: Double -> Natural) resultDouble
33.44 s
[really-safe-money] + in if ceiled == floored
33.44 s
[really-safe-money] + then
33.44 s
[really-safe-money] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
33.44 s
[really-safe-money] + then Nothing
33.44 s
[really-safe-money] + else Just $ Amount (fromIntegral ceiled)
33.44 s
[really-safe-money] + else Nothing
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] -- | Turn an amount of money into a 'Double'.
33.44 s
[really-safe-money] --
33.44 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:290:79-80
33.44 s
[really-safe-money] @@ -287,7 +287,7 @@
33.44 s
[really-safe-money] -- >>> toRatio (QuantisationFactor 100) (Amount 1)
33.44 s
[really-safe-money] -- 1 % 100
33.44 s
[really-safe-money] toRatio :: QuantisationFactor -> Amount -> Ratio Natural
33.44 s
[really-safe-money] -toRatio (QuantisationFactor 0) a = fromIntegral (toMinimalQuantisations a) :% 0
33.44 s
[really-safe-money] +toRatio (QuantisationFactor 0) a = fromIntegral (toMinimalQuantisations a) :% 1
33.44 s
[really-safe-money] toRatio (QuantisationFactor quantisationFactor) a =
33.44 s
[really-safe-money] (fromIntegral :: Word64 -> Natural) (toMinimalQuantisations a)
33.44 s
[really-safe-money] % (fromIntegral :: Word32 -> Natural) quantisationFactor
33.44 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:494:96-97
33.44 s
[really-safe-money] @@ -491,7 +491,7 @@
33.44 s
[really-safe-money] let maxBoundI :: Integer
33.44 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
33.44 s
[really-safe-money] r :: Integer
33.44 s
[really-safe-money] - r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
33.44 s
[really-safe-money] + r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 1 l
33.44 s
[really-safe-money] in if r > maxBoundI
33.44 s
[really-safe-money] then Nothing
33.44 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.44 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:495:10-23
33.44 s
[really-safe-money] @@ -492,7 +492,7 @@
33.44 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
33.44 s
[really-safe-money] r :: Integer
33.44 s
[really-safe-money] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
33.44 s
[really-safe-money] - in if r > maxBoundI
33.44 s
[really-safe-money] + in if True
33.44 s
[really-safe-money] then Nothing
33.44 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:495:10-23
33.44 s
[really-safe-money] @@ -492,7 +492,7 @@
33.44 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
33.44 s
[really-safe-money] r :: Integer
33.44 s
[really-safe-money] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
33.44 s
[really-safe-money] - in if r > maxBoundI
33.44 s
[really-safe-money] + in if False
33.44 s
[really-safe-money] then Nothing
33.44 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:495:10-23
33.44 s
[really-safe-money] @@ -492,7 +492,7 @@
33.44 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
33.44 s
[really-safe-money] r :: Integer
33.44 s
[really-safe-money] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
33.44 s
[really-safe-money] - in if r > maxBoundI
33.44 s
[really-safe-money] + in if not (r > maxBoundI)
33.44 s
[really-safe-money] then Nothing
33.44 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:495:7-66
33.44 s
[really-safe-money] @@ -492,9 +492,9 @@
33.44 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
33.44 s
[really-safe-money] r :: Integer
33.44 s
[really-safe-money] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
33.44 s
[really-safe-money] - in if r > maxBoundI
33.44 s
[really-safe-money] - then Nothing
33.44 s
[really-safe-money] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.44 s
[really-safe-money] + in if r > maxBoundI
33.44 s
[really-safe-money] + then Nothing
33.44 s
[really-safe-money] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] -- | Add two amounts of money.
33.44 s
[really-safe-money] --
33.44 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:250:15-16
33.44 s
[really-safe-money] @@ -247,7 +247,7 @@
33.44 s
[really-safe-money] -- >>> zero
33.44 s
[really-safe-money] -- Amount 0
33.44 s
[really-safe-money] zero :: Amount
33.44 s
[really-safe-money] -zero = Amount 0
33.44 s
[really-safe-money] +zero = Amount 1
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] -- | Turn an amount into a number of minimal quantisations.
33.44 s
[really-safe-money] --
33.44 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:661:30-31
33.44 s
[really-safe-money] @@ -658,7 +658,7 @@
33.44 s
[really-safe-money] -- | The amount and the real rate that was used, considering the 'Rounding'
33.44 s
[really-safe-money] (Maybe Amount, Ratio Natural)
33.44 s
[really-safe-money] fraction _ (Amount 0) f = (Just zero, f)
33.44 s
[really-safe-money] -fraction _ _ 0 = (Just zero, 0)
33.44 s
[really-safe-money] +fraction _ _ 0 = (Just zero, 1)
33.44 s
[really-safe-money] fraction r (Amount a) f =
33.44 s
[really-safe-money] let amountAsRatio :: Ratio Natural
33.44 s
[really-safe-money] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
33.44 s
[really-safe-money] added mutation RemoveCase at src/Money/Amount.hs:668:17-30
33.44 s
[really-safe-money] @@ -665,10 +665,10 @@
33.44 s
[really-safe-money] theoreticalResult :: Ratio Natural
33.44 s
[really-safe-money] theoreticalResult = amountAsRatio * f
33.44 s
[really-safe-money] rounder :: Ratio Natural -> Natural
33.44 s
[really-safe-money] - rounder = case r of
33.44 s
[really-safe-money] - RoundUp -> ceiling
33.44 s
[really-safe-money] - RoundDown -> floor
33.44 s
[really-safe-money] - RoundNearest -> round
33.44 s
[really-safe-money] + rounder = case r of
33.44 s
[really-safe-money] + RoundUp -> ceiling
33.44 s
[really-safe-money] + RoundDown -> floor
33.44 s
[really-safe-money] + RoundNearest -> round
33.44 s
[really-safe-money] roundedResult :: Natural
33.44 s
[really-safe-money] roundedResult = rounder theoreticalResult
33.44 s
[really-safe-money] actualRate :: Ratio Natural
33.44 s
[really-safe-money] added mutation RemoveCase at src/Money/Amount.hs:668:17-30
33.44 s
[really-safe-money] @@ -665,10 +665,10 @@
33.44 s
[really-safe-money] theoreticalResult :: Ratio Natural
33.44 s
[really-safe-money] theoreticalResult = amountAsRatio * f
33.44 s
[really-safe-money] rounder :: Ratio Natural -> Natural
33.44 s
[really-safe-money] - rounder = case r of
33.44 s
[really-safe-money] - RoundUp -> ceiling
33.44 s
[really-safe-money] - RoundDown -> floor
33.44 s
[really-safe-money] - RoundNearest -> round
33.44 s
[really-safe-money] + rounder = case r of
33.44 s
[really-safe-money] + RoundUp -> ceiling
33.44 s
[really-safe-money] + RoundDown -> floor
33.44 s
[really-safe-money] + RoundNearest -> round
33.44 s
[really-safe-money] roundedResult :: Natural
33.44 s
[really-safe-money] roundedResult = rounder theoreticalResult
33.44 s
[really-safe-money] actualRate :: Ratio Natural
33.44 s
[really-safe-money] added mutation RemoveCase at src/Money/Amount.hs:668:17-30
33.44 s
[really-safe-money] @@ -665,10 +665,10 @@
33.44 s
[really-safe-money] theoreticalResult :: Ratio Natural
33.44 s
[really-safe-money] theoreticalResult = amountAsRatio * f
33.44 s
[really-safe-money] rounder :: Ratio Natural -> Natural
33.44 s
[really-safe-money] - rounder = case r of
33.44 s
[really-safe-money] - RoundUp -> ceiling
33.44 s
[really-safe-money] - RoundDown -> floor
33.44 s
[really-safe-money] - RoundNearest -> round
33.44 s
[really-safe-money] + rounder = case r of
33.44 s
[really-safe-money] + RoundUp -> ceiling
33.44 s
[really-safe-money] + RoundDown -> floor
33.44 s
[really-safe-money] + RoundNearest -> round
33.44 s
[really-safe-money] roundedResult :: Natural
33.44 s
[really-safe-money] roundedResult = rounder theoreticalResult
33.44 s
[really-safe-money] actualRate :: Ratio Natural
33.44 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:681:12-37
33.44 s
[really-safe-money] @@ -678,7 +678,7 @@
33.44 s
[really-safe-money] maxBoundN :: Natural
33.44 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
33.44 s
[really-safe-money] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
33.44 s
[really-safe-money] - in ( if roundedResult > maxBoundN
33.44 s
[really-safe-money] + in ( if True
33.44 s
[really-safe-money] then Nothing
33.44 s
[really-safe-money] else Just result,
33.44 s
[really-safe-money] actualRate
33.44 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:681:12-37
33.44 s
[really-safe-money] @@ -678,7 +678,7 @@
33.44 s
[really-safe-money] maxBoundN :: Natural
33.44 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
33.44 s
[really-safe-money] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
33.44 s
[really-safe-money] - in ( if roundedResult > maxBoundN
33.44 s
[really-safe-money] + in ( if False
33.44 s
[really-safe-money] then Nothing
33.44 s
[really-safe-money] else Just result,
33.44 s
[really-safe-money] actualRate
33.44 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:681:12-37
33.44 s
[really-safe-money] @@ -678,7 +678,7 @@
33.44 s
[really-safe-money] maxBoundN :: Natural
33.44 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
33.44 s
[really-safe-money] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
33.44 s
[really-safe-money] - in ( if roundedResult > maxBoundN
33.44 s
[really-safe-money] + in ( if not (roundedResult > maxBoundN)
33.44 s
[really-safe-money] then Nothing
33.44 s
[really-safe-money] else Just result,
33.44 s
[really-safe-money] actualRate
33.44 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:681:9-27
33.44 s
[really-safe-money] @@ -678,9 +678,9 @@
33.44 s
[really-safe-money] maxBoundN :: Natural
33.44 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
33.44 s
[really-safe-money] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
33.44 s
[really-safe-money] - in ( if roundedResult > maxBoundN
33.44 s
[really-safe-money] - then Nothing
33.44 s
[really-safe-money] - else Just result,
33.44 s
[really-safe-money] + in ( if roundedResult > maxBoundN
33.44 s
[really-safe-money] + then Nothing
33.44 s
[really-safe-money] + else Just result,
33.44 s
[really-safe-money] actualRate
33.44 s
[really-safe-money] )
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:806:79-92
33.44 s
[really-safe-money] @@ -803,4 +803,4 @@
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
33.44 s
[really-safe-money] validateStrictlyPositive :: Amount -> Validation
33.44 s
[really-safe-money] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
33.44 s
[really-safe-money] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ True
33.44 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:806:79-92
33.44 s
[really-safe-money] @@ -803,4 +803,4 @@
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
33.44 s
[really-safe-money] validateStrictlyPositive :: Amount -> Validation
33.44 s
[really-safe-money] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
33.44 s
[really-safe-money] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ False
33.44 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:806:79-92
33.44 s
[really-safe-money] @@ -803,4 +803,4 @@
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
33.44 s
[really-safe-money] validateStrictlyPositive :: Amount -> Validation
33.44 s
[really-safe-money] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
33.44 s
[really-safe-money] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ not (amount > zero)
33.44 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:607:15-22
33.44 s
[really-safe-money] @@ -604,7 +604,7 @@
33.44 s
[really-safe-money] case ad of
33.44 s
[really-safe-money] DistributedIntoUnequalChunks _ a1 _ a2 ->
33.44 s
[really-safe-money] declare "The larger chunks are larger" $
33.44 s
[really-safe-money] - a1 > a2
33.44 s
[really-safe-money] + True
33.44 s
[really-safe-money] _ -> valid
33.44 s
[really-safe-money] ]
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:607:15-22
33.44 s
[really-safe-money] @@ -604,7 +604,7 @@
33.44 s
[really-safe-money] case ad of
33.44 s
[really-safe-money] DistributedIntoUnequalChunks _ a1 _ a2 ->
33.44 s
[really-safe-money] declare "The larger chunks are larger" $
33.44 s
[really-safe-money] - a1 > a2
33.44 s
[really-safe-money] + False
33.44 s
[really-safe-money] _ -> valid
33.44 s
[really-safe-money] ]
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:607:15-22
33.44 s
[really-safe-money] @@ -604,7 +604,7 @@
33.44 s
[really-safe-money] case ad of
33.44 s
[really-safe-money] DistributedIntoUnequalChunks _ a1 _ a2 ->
33.44 s
[really-safe-money] declare "The larger chunks are larger" $
33.44 s
[really-safe-money] - a1 > a2
33.44 s
[really-safe-money] + not (a1 > a2)
33.44 s
[really-safe-money] _ -> valid
33.44 s
[really-safe-money] ]
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] added mutation RemoveCase at src/Money/Amount.hs:604:9-21
33.44 s
[really-safe-money] @@ -601,11 +601,11 @@
33.44 s
[really-safe-money] validate ad =
33.44 s
[really-safe-money] mconcat
33.44 s
[really-safe-money] [ genericValidate ad,
33.44 s
[really-safe-money] - case ad of
33.44 s
[really-safe-money] - DistributedIntoUnequalChunks _ a1 _ a2 ->
33.44 s
[really-safe-money] - declare "The larger chunks are larger" $
33.44 s
[really-safe-money] - a1 > a2
33.44 s
[really-safe-money] - _ -> valid
33.44 s
[really-safe-money] + case ad of
33.44 s
[really-safe-money] + DistributedIntoUnequalChunks _ a1 _ a2 ->
33.44 s
[really-safe-money] + declare "The larger chunks are larger" $
33.44 s
[really-safe-money] + a1 > a2
33.44 s
[really-safe-money] + _ -> valid
33.44 s
[really-safe-money] ]
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] instance (NFData amount) => NFData (Distribution amount)
33.44 s
[really-safe-money] added mutation RemoveCase at src/Money/Amount.hs:604:9-21
33.44 s
[really-safe-money] @@ -601,11 +601,11 @@
33.44 s
[really-safe-money] validate ad =
33.44 s
[really-safe-money] mconcat
33.44 s
[really-safe-money] [ genericValidate ad,
33.44 s
[really-safe-money] - case ad of
33.44 s
[really-safe-money] - DistributedIntoUnequalChunks _ a1 _ a2 ->
33.44 s
[really-safe-money] - declare "The larger chunks are larger" $
33.44 s
[really-safe-money] - a1 > a2
33.44 s
[really-safe-money] - _ -> valid
33.44 s
[really-safe-money] + case ad of
33.44 s
[really-safe-money] + DistributedIntoUnequalChunks _ a1 _ a2 ->
33.44 s
[really-safe-money] + declare "The larger chunks are larger" $
33.44 s
[really-safe-money] + a1 > a2
33.44 s
[really-safe-money] + _ -> valid
33.44 s
[really-safe-money] ]
33.44 s
[really-safe-money]
33.44 s
[really-safe-money] instance (NFData amount) => NFData (Distribution amount)
33.44 s
[really-safe-money] added mutation ListLit at src/Money/Amount.hs:603:7-8
33.44 s
[really-safe-money] @@ -600,13 +600,7 @@
33.44 s
[really-safe-money] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
33.44 s
[really-safe-money] validate ad =
33.44 s
[really-safe-money] mconcat
33.44 s
[really-safe-money] - [ genericValidate ad,
33.44 s
[really-safe-money] - case ad of
33.45 s
[really-safe-money] - DistributedIntoUnequalChunks _ a1 _ a2 ->
33.45 s
[really-safe-money] - declare "The larger chunks are larger" $
33.45 s
[really-safe-money] - a1 > a2
33.45 s
[really-safe-money] - _ -> valid
33.45 s
[really-safe-money] - ]
33.45 s
[really-safe-money] + []
33.45 s
[really-safe-money]
33.45 s
[really-safe-money] instance (NFData amount) => NFData (Distribution amount)
33.45 s
[really-safe-money]
33.45 s
[really-safe-money] added mutation ListLit at src/Money/Amount.hs:603:7-8
33.45 s
[really-safe-money] @@ -600,13 +600,13 @@
33.45 s
[really-safe-money] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
33.45 s
[really-safe-money] validate ad =
33.45 s
[really-safe-money] mconcat
33.45 s
[really-safe-money] - [ genericValidate ad,
33.45 s
[really-safe-money] - case ad of
33.45 s
[really-safe-money] - DistributedIntoUnequalChunks _ a1 _ a2 ->
33.45 s
[really-safe-money] - declare "The larger chunks are larger" $
33.45 s
[really-safe-money] - a1 > a2
33.45 s
[really-safe-money] - _ -> valid
33.45 s
[really-safe-money] - ]
33.45 s
[really-safe-money] + [ genericValidate ad,
33.45 s
[really-safe-money] + case ad of
33.45 s
[really-safe-money] + DistributedIntoUnequalChunks _ a1 _ a2 ->
33.45 s
[really-safe-money] + declare "The larger chunks are larger" $
33.45 s
[really-safe-money] + a1 > a2
33.45 s
[really-safe-money] + _ -> valid
33.45 s
[really-safe-money] + ]
33.45 s
[really-safe-money]
33.45 s
[really-safe-money] instance (NFData amount) => NFData (Distribution amount)
33.45 s
[really-safe-money]
33.45 s
[really-safe-money] added 81 mutations
35.39 s
[really-safe-money] [ 7 of 12] Compiling Money.MultiAmount ( src/Money/MultiAmount.hs, dist/build/Money/MultiAmount.o, dist/build/Money/MultiAmount.dyn_o )
35.42 s
[really-safe-money] mutation: instrumenting Money.MultiAmount
35.42 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
35.42 s
[really-safe-money] @@ -156,10 +156,10 @@
35.42 s
[really-safe-money] fmap
35.42 s
[really-safe-money] ( ( \theoreticalResult ->
35.42 s
[really-safe-money] let rounder :: Ratio Natural -> Natural
35.42 s
[really-safe-money] - rounder = case r of
35.42 s
[really-safe-money] - RoundUp -> ceiling
35.42 s
[really-safe-money] - RoundDown -> floor
35.42 s
[really-safe-money] - RoundNearest -> round
35.42 s
[really-safe-money] + rounder = case r of
35.42 s
[really-safe-money] + RoundUp -> ceiling
35.42 s
[really-safe-money] + RoundDown -> floor
35.42 s
[really-safe-money] + RoundNearest -> round
35.42 s
[really-safe-money] roundedResult :: Natural
35.42 s
[really-safe-money] roundedResult = rounder theoreticalResult
35.42 s
[really-safe-money] maxBoundN :: Natural
35.42 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
35.42 s
[really-safe-money] @@ -156,10 +156,10 @@
35.42 s
[really-safe-money] fmap
35.42 s
[really-safe-money] ( ( \theoreticalResult ->
35.42 s
[really-safe-money] let rounder :: Ratio Natural -> Natural
35.42 s
[really-safe-money] - rounder = case r of
35.42 s
[really-safe-money] - RoundUp -> ceiling
35.42 s
[really-safe-money] - RoundDown -> floor
35.42 s
[really-safe-money] - RoundNearest -> round
35.42 s
[really-safe-money] + rounder = case r of
35.42 s
[really-safe-money] + RoundUp -> ceiling
35.42 s
[really-safe-money] + RoundDown -> floor
35.42 s
[really-safe-money] + RoundNearest -> round
35.42 s
[really-safe-money] roundedResult :: Natural
35.42 s
[really-safe-money] roundedResult = rounder theoreticalResult
35.42 s
[really-safe-money] maxBoundN :: Natural
35.42 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
35.42 s
[really-safe-money] @@ -156,10 +156,10 @@
35.42 s
[really-safe-money] fmap
35.42 s
[really-safe-money] ( ( \theoreticalResult ->
35.42 s
[really-safe-money] let rounder :: Ratio Natural -> Natural
35.42 s
[really-safe-money] - rounder = case r of
35.42 s
[really-safe-money] - RoundUp -> ceiling
35.42 s
[really-safe-money] - RoundDown -> floor
35.42 s
[really-safe-money] - RoundNearest -> round
35.42 s
[really-safe-money] + rounder = case r of
35.42 s
[really-safe-money] + RoundUp -> ceiling
35.42 s
[really-safe-money] + RoundDown -> floor
35.42 s
[really-safe-money] + RoundNearest -> round
35.42 s
[really-safe-money] roundedResult :: Natural
35.42 s
[really-safe-money] roundedResult = rounder theoreticalResult
35.42 s
[really-safe-money] maxBoundN :: Natural
35.42 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:168:20-45
35.42 s
[really-safe-money] @@ -165,7 +165,7 @@
35.42 s
[really-safe-money] maxBoundN :: Natural
35.42 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
35.42 s
[really-safe-money] actualResult =
35.42 s
[really-safe-money] - if roundedResult > maxBoundN
35.42 s
[really-safe-money] + if True
35.42 s
[really-safe-money] then Nothing
35.42 s
[really-safe-money] else Just (fromIntegral roundedResult)
35.42 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
35.42 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:168:20-45
35.42 s
[really-safe-money] @@ -165,7 +165,7 @@
35.42 s
[really-safe-money] maxBoundN :: Natural
35.42 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
35.42 s
[really-safe-money] actualResult =
35.42 s
[really-safe-money] - if roundedResult > maxBoundN
35.42 s
[really-safe-money] + if False
35.42 s
[really-safe-money] then Nothing
35.42 s
[really-safe-money] else Just (fromIntegral roundedResult)
35.42 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
35.42 s
[really-safe-money] added mutation Negate at src/Money/MultiAmount.hs:168:20-45
35.42 s
[really-safe-money] @@ -165,7 +165,7 @@
35.42 s
[really-safe-money] maxBoundN :: Natural
35.42 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
35.42 s
[really-safe-money] actualResult =
35.42 s
[really-safe-money] - if roundedResult > maxBoundN
35.42 s
[really-safe-money] + if not (roundedResult > maxBoundN)
35.42 s
[really-safe-money] then Nothing
35.42 s
[really-safe-money] else Just (fromIntegral roundedResult)
35.42 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
35.42 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAmount.hs:168:17-57
35.42 s
[really-safe-money] @@ -165,9 +165,9 @@
35.42 s
[really-safe-money] maxBoundN :: Natural
35.42 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
35.42 s
[really-safe-money] actualResult =
35.42 s
[really-safe-money] - if roundedResult > maxBoundN
35.42 s
[really-safe-money] - then Nothing
35.42 s
[really-safe-money] - else Just (fromIntegral roundedResult)
35.42 s
[really-safe-money] + if roundedResult > maxBoundN
35.42 s
[really-safe-money] + then Nothing
35.42 s
[really-safe-money] + else Just (fromIntegral roundedResult)
35.42 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
35.42 s
[really-safe-money] LT -> RoundedDown
35.42 s
[really-safe-money] EQ -> DidNotRound
35.42 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
35.42 s
[really-safe-money] @@ -168,10 +168,10 @@
35.42 s
[really-safe-money] if roundedResult > maxBoundN
35.42 s
[really-safe-money] then Nothing
35.42 s
[really-safe-money] else Just (fromIntegral roundedResult)
35.42 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
35.42 s
[really-safe-money] - LT -> RoundedDown
35.42 s
[really-safe-money] - EQ -> DidNotRound
35.42 s
[really-safe-money] - GT -> RoundedUp
35.42 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
35.42 s
[really-safe-money] + LT -> RoundedDown
35.42 s
[really-safe-money] + EQ -> DidNotRound
35.42 s
[really-safe-money] + GT -> RoundedUp
35.42 s
[really-safe-money] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
35.42 s
[really-safe-money] )
35.42 s
[really-safe-money] . Prelude.sum
35.42 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
35.42 s
[really-safe-money] @@ -168,10 +168,10 @@
35.42 s
[really-safe-money] if roundedResult > maxBoundN
35.42 s
[really-safe-money] then Nothing
35.42 s
[really-safe-money] else Just (fromIntegral roundedResult)
35.42 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
35.42 s
[really-safe-money] - LT -> RoundedDown
35.42 s
[really-safe-money] - EQ -> DidNotRound
35.42 s
[really-safe-money] - GT -> RoundedUp
35.42 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
35.42 s
[really-safe-money] + LT -> RoundedDown
35.42 s
[really-safe-money] + EQ -> DidNotRound
35.42 s
[really-safe-money] + GT -> RoundedUp
35.42 s
[really-safe-money] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
35.42 s
[really-safe-money] )
35.42 s
[really-safe-money] . Prelude.sum
35.42 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
35.42 s
[really-safe-money] @@ -168,10 +168,10 @@
35.42 s
[really-safe-money] if roundedResult > maxBoundN
35.42 s
[really-safe-money] then Nothing
35.42 s
[really-safe-money] else Just (fromIntegral roundedResult)
35.42 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
35.42 s
[really-safe-money] - LT -> RoundedDown
35.42 s
[really-safe-money] - EQ -> DidNotRound
35.42 s
[really-safe-money] - GT -> RoundedUp
35.42 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
35.42 s
[really-safe-money] + LT -> RoundedDown
35.42 s
[really-safe-money] + EQ -> DidNotRound
35.42 s
[really-safe-money] + GT -> RoundedUp
35.42 s
[really-safe-money] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
35.42 s
[really-safe-money] )
35.42 s
[really-safe-money] . Prelude.sum
35.42 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:119:12-28
35.42 s
[really-safe-money] @@ -116,7 +116,7 @@
35.42 s
[really-safe-money] Just a -> do
35.42 s
[really-safe-money] r <- Amount.subtract a amount
35.42 s
[really-safe-money] Just $
35.42 s
[really-safe-money] - if r == Amount.zero
35.42 s
[really-safe-money] + if True
35.42 s
[really-safe-money] then M.delete currency m
35.42 s
[really-safe-money] else M.insert currency r m
35.42 s
[really-safe-money]
35.42 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:119:12-28
35.42 s
[really-safe-money] @@ -116,7 +116,7 @@
35.42 s
[really-safe-money] Just a -> do
35.42 s
[really-safe-money] r <- Amount.subtract a amount
35.42 s
[really-safe-money] Just $
35.42 s
[really-safe-money] - if r == Amount.zero
35.42 s
[really-safe-money] + if False
35.42 s
[really-safe-money] then M.delete currency m
35.42 s
[really-safe-money] else M.insert currency r m
35.42 s
[really-safe-money]
35.42 s
[really-safe-money] added mutation Negate at src/Money/MultiAmount.hs:119:12-28
35.42 s
[really-safe-money] @@ -116,7 +116,7 @@
35.42 s
[really-safe-money] Just a -> do
35.42 s
[really-safe-money] r <- Amount.subtract a amount
35.42 s
[really-safe-money] Just $
35.42 s
[really-safe-money] - if r == Amount.zero
35.42 s
[really-safe-money] + if not (r == Amount.zero)
35.42 s
[really-safe-money] then M.delete currency m
35.42 s
[really-safe-money] else M.insert currency r m
35.42 s
[really-safe-money]
35.42 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAmount.hs:119:9-37
35.42 s
[really-safe-money] @@ -116,9 +116,9 @@
35.42 s
[really-safe-money] Just a -> do
35.42 s
[really-safe-money] r <- Amount.subtract a amount
35.42 s
[really-safe-money] Just $
35.42 s
[really-safe-money] - if r == Amount.zero
35.42 s
[really-safe-money] - then M.delete currency m
35.42 s
[really-safe-money] - else M.insert currency r m
35.42 s
[really-safe-money] + if r == Amount.zero
35.42 s
[really-safe-money] + then M.delete currency m
35.42 s
[really-safe-money] + else M.insert currency r m
35.42 s
[really-safe-money]
35.42 s
[really-safe-money] -- | Try to convert every amount to one currency.
35.42 s
[really-safe-money] --
35.42 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:114:22-37
35.42 s
[really-safe-money] @@ -111,14 +111,14 @@
35.42 s
[really-safe-money] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
35.42 s
[really-safe-money] subtractAmount m _ (Amount 0) = Just m
35.42 s
[really-safe-money] subtractAmount (MultiAmount m) currency amount =
35.42 s
[really-safe-money] - fmap MultiAmount $ case M.lookup currency m of
35.42 s
[really-safe-money] - Nothing -> Nothing -- Can't go below zero
35.42 s
[really-safe-money] - Just a -> do
35.42 s
[really-safe-money] - r <- Amount.subtract a amount
35.42 s
[really-safe-money] - Just $
35.42 s
[really-safe-money] - if r == Amount.zero
35.42 s
[really-safe-money] - then M.delete currency m
35.42 s
[really-safe-money] - else M.insert currency r m
35.42 s
[really-safe-money] + fmap MultiAmount $ case M.lookup currency m of
35.42 s
[really-safe-money] + Nothing -> Nothing -- Can't go below zero
35.42 s
[really-safe-money] + Just a -> do
35.42 s
[really-safe-money] + r <- Amount.subtract a amount
35.42 s
[really-safe-money] + Just $
35.42 s
[really-safe-money] + if r == Amount.zero
35.42 s
[really-safe-money] + then M.delete currency m
35.42 s
[really-safe-money] + else M.insert currency r m
35.42 s
[really-safe-money]
35.42 s
[really-safe-money] -- | Try to convert every amount to one currency.
35.42 s
[really-safe-money] --
35.42 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:114:22-37
35.42 s
[really-safe-money] @@ -111,14 +111,14 @@
35.42 s
[really-safe-money] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
35.42 s
[really-safe-money] subtractAmount m _ (Amount 0) = Just m
35.42 s
[really-safe-money] subtractAmount (MultiAmount m) currency amount =
35.42 s
[really-safe-money] - fmap MultiAmount $ case M.lookup currency m of
35.42 s
[really-safe-money] - Nothing -> Nothing -- Can't go below zero
35.42 s
[really-safe-money] - Just a -> do
35.42 s
[really-safe-money] - r <- Amount.subtract a amount
35.42 s
[really-safe-money] - Just $
35.42 s
[really-safe-money] - if r == Amount.zero
35.42 s
[really-safe-money] - then M.delete currency m
35.42 s
[really-safe-money] - else M.insert currency r m
35.42 s
[really-safe-money] + fmap MultiAmount $ case M.lookup currency m of
35.42 s
[really-safe-money] + Nothing -> Nothing -- Can't go below zero
35.42 s
[really-safe-money] + Just a -> do
35.42 s
[really-safe-money] + r <- Amount.subtract a amount
35.42 s
[really-safe-money] + Just $
35.42 s
[really-safe-money] + if r == Amount.zero
35.42 s
[really-safe-money] + then M.delete currency m
35.42 s
[really-safe-money] + else M.insert currency r m
35.42 s
[really-safe-money]
35.42 s
[really-safe-money] -- | Try to convert every amount to one currency.
35.42 s
[really-safe-money] --
35.42 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:106:12-28
35.42 s
[really-safe-money] @@ -103,7 +103,7 @@
35.42 s
[really-safe-money] Just a -> do
35.42 s
[really-safe-money] r <- Amount.add a amount
35.42 s
[really-safe-money] Just $
35.42 s
[really-safe-money] - if r == Amount.zero
35.42 s
[really-safe-money] + if True
35.42 s
[really-safe-money] then M.delete currency m
35.42 s
[really-safe-money] else M.insert currency r m
35.42 s
[really-safe-money]
35.42 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:106:12-28
35.42 s
[really-safe-money] @@ -103,7 +103,7 @@
35.42 s
[really-safe-money] Just a -> do
35.42 s
[really-safe-money] r <- Amount.add a amount
35.43 s
[really-safe-money] Just $
35.43 s
[really-safe-money] - if r == Amount.zero
35.43 s
[really-safe-money] + if False
35.43 s
[really-safe-money] then M.delete currency m
35.43 s
[really-safe-money] else M.insert currency r m
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] added mutation Negate at src/Money/MultiAmount.hs:106:12-28
35.43 s
[really-safe-money] @@ -103,7 +103,7 @@
35.43 s
[really-safe-money] Just a -> do
35.43 s
[really-safe-money] r <- Amount.add a amount
35.43 s
[really-safe-money] Just $
35.43 s
[really-safe-money] - if r == Amount.zero
35.43 s
[really-safe-money] + if not (r == Amount.zero)
35.43 s
[really-safe-money] then M.delete currency m
35.43 s
[really-safe-money] else M.insert currency r m
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAmount.hs:106:9-37
35.43 s
[really-safe-money] @@ -103,9 +103,9 @@
35.43 s
[really-safe-money] Just a -> do
35.43 s
[really-safe-money] r <- Amount.add a amount
35.43 s
[really-safe-money] Just $
35.43 s
[really-safe-money] - if r == Amount.zero
35.43 s
[really-safe-money] - then M.delete currency m
35.43 s
[really-safe-money] - else M.insert currency r m
35.43 s
[really-safe-money] + if r == Amount.zero
35.43 s
[really-safe-money] + then M.delete currency m
35.43 s
[really-safe-money] + else M.insert currency r m
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] -- | Subtract an 'Amount' from a 'MultiAmount'
35.43 s
[really-safe-money] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
35.43 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:101:22-37
35.43 s
[really-safe-money] @@ -98,14 +98,14 @@
35.43 s
[really-safe-money] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
35.43 s
[really-safe-money] addAmount m _ (Amount 0) = Just m
35.43 s
[really-safe-money] addAmount (MultiAmount m) currency amount =
35.43 s
[really-safe-money] - fmap MultiAmount $ case M.lookup currency m of
35.43 s
[really-safe-money] - Nothing -> Just $ M.insert currency amount m
35.43 s
[really-safe-money] - Just a -> do
35.43 s
[really-safe-money] - r <- Amount.add a amount
35.43 s
[really-safe-money] - Just $
35.43 s
[really-safe-money] - if r == Amount.zero
35.43 s
[really-safe-money] - then M.delete currency m
35.43 s
[really-safe-money] - else M.insert currency r m
35.43 s
[really-safe-money] + fmap MultiAmount $ case M.lookup currency m of
35.43 s
[really-safe-money] + Nothing -> Just $ M.insert currency amount m
35.43 s
[really-safe-money] + Just a -> do
35.43 s
[really-safe-money] + r <- Amount.add a amount
35.43 s
[really-safe-money] + Just $
35.43 s
[really-safe-money] + if r == Amount.zero
35.43 s
[really-safe-money] + then M.delete currency m
35.43 s
[really-safe-money] + else M.insert currency r m
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] -- | Subtract an 'Amount' from a 'MultiAmount'
35.43 s
[really-safe-money] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
35.43 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:101:22-37
35.43 s
[really-safe-money] @@ -98,14 +98,14 @@
35.43 s
[really-safe-money] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
35.43 s
[really-safe-money] addAmount m _ (Amount 0) = Just m
35.43 s
[really-safe-money] addAmount (MultiAmount m) currency amount =
35.43 s
[really-safe-money] - fmap MultiAmount $ case M.lookup currency m of
35.43 s
[really-safe-money] - Nothing -> Just $ M.insert currency amount m
35.43 s
[really-safe-money] - Just a -> do
35.43 s
[really-safe-money] - r <- Amount.add a amount
35.43 s
[really-safe-money] - Just $
35.43 s
[really-safe-money] - if r == Amount.zero
35.43 s
[really-safe-money] - then M.delete currency m
35.43 s
[really-safe-money] - else M.insert currency r m
35.43 s
[really-safe-money] + fmap MultiAmount $ case M.lookup currency m of
35.43 s
[really-safe-money] + Nothing -> Just $ M.insert currency amount m
35.43 s
[really-safe-money] + Just a -> do
35.43 s
[really-safe-money] + r <- Amount.add a amount
35.43 s
[really-safe-money] + Just $
35.43 s
[really-safe-money] + if r == Amount.zero
35.43 s
[really-safe-money] + then M.delete currency m
35.43 s
[really-safe-money] + else M.insert currency r m
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] -- | Subtract an 'Amount' from a 'MultiAmount'
35.43 s
[really-safe-money] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
35.43 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:73:6-27
35.43 s
[really-safe-money] @@ -70,7 +70,7 @@
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] fromAmount :: currency -> Amount -> MultiAmount currency
35.43 s
[really-safe-money] fromAmount currency amount =
35.43 s
[really-safe-money] - if amount == Amount.zero
35.43 s
[really-safe-money] + if True
35.43 s
[really-safe-money] then zero
35.43 s
[really-safe-money] else MultiAmount $ M.singleton currency amount
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:73:6-27
35.43 s
[really-safe-money] @@ -70,7 +70,7 @@
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] fromAmount :: currency -> Amount -> MultiAmount currency
35.43 s
[really-safe-money] fromAmount currency amount =
35.43 s
[really-safe-money] - if amount == Amount.zero
35.43 s
[really-safe-money] + if False
35.43 s
[really-safe-money] then zero
35.43 s
[really-safe-money] else MultiAmount $ M.singleton currency amount
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] added mutation Negate at src/Money/MultiAmount.hs:73:6-27
35.43 s
[really-safe-money] @@ -70,7 +70,7 @@
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] fromAmount :: currency -> Amount -> MultiAmount currency
35.43 s
[really-safe-money] fromAmount currency amount =
35.43 s
[really-safe-money] - if amount == Amount.zero
35.43 s
[really-safe-money] + if not (amount == Amount.zero)
35.43 s
[really-safe-money] then zero
35.43 s
[really-safe-money] else MultiAmount $ M.singleton currency amount
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAmount.hs:73:3-51
35.43 s
[really-safe-money] @@ -70,9 +70,9 @@
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] fromAmount :: currency -> Amount -> MultiAmount currency
35.43 s
[really-safe-money] fromAmount currency amount =
35.43 s
[really-safe-money] - if amount == Amount.zero
35.43 s
[really-safe-money] - then zero
35.43 s
[really-safe-money] - else MultiAmount $ M.singleton currency amount
35.43 s
[really-safe-money] + if amount == Amount.zero
35.43 s
[really-safe-money] + then zero
35.43 s
[really-safe-money] + else MultiAmount $ M.singleton currency amount
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] -- | No money of any currency
35.43 s
[really-safe-money] zero :: MultiAmount currency
35.43 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:66:13-29
35.43 s
[really-safe-money] @@ -63,7 +63,7 @@
35.43 s
[really-safe-money] [ genericValidate ma,
35.43 s
[really-safe-money] decorateMap m $ \_ a ->
35.43 s
[really-safe-money] declare "The amount is not zero" $
35.43 s
[really-safe-money] - a /= Amount.zero
35.43 s
[really-safe-money] + True
35.43 s
[really-safe-money] ]
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] instance (NFData currency) => NFData (MultiAmount currency)
35.43 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:66:13-29
35.43 s
[really-safe-money] @@ -63,7 +63,7 @@
35.43 s
[really-safe-money] [ genericValidate ma,
35.43 s
[really-safe-money] decorateMap m $ \_ a ->
35.43 s
[really-safe-money] declare "The amount is not zero" $
35.43 s
[really-safe-money] - a /= Amount.zero
35.43 s
[really-safe-money] + False
35.43 s
[really-safe-money] ]
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] instance (NFData currency) => NFData (MultiAmount currency)
35.43 s
[really-safe-money] added mutation Negate at src/Money/MultiAmount.hs:66:13-29
35.43 s
[really-safe-money] @@ -63,7 +63,7 @@
35.43 s
[really-safe-money] [ genericValidate ma,
35.43 s
[really-safe-money] decorateMap m $ \_ a ->
35.43 s
[really-safe-money] declare "The amount is not zero" $
35.43 s
[really-safe-money] - a /= Amount.zero
35.43 s
[really-safe-money] + not (a /= Amount.zero)
35.43 s
[really-safe-money] ]
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] instance (NFData currency) => NFData (MultiAmount currency)
35.43 s
[really-safe-money] added mutation ListLit at src/Money/MultiAmount.hs:63:7-8
35.43 s
[really-safe-money] @@ -60,11 +60,7 @@
35.43 s
[really-safe-money] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
35.43 s
[really-safe-money] validate ma@(MultiAmount m) =
35.43 s
[really-safe-money] mconcat
35.43 s
[really-safe-money] - [ genericValidate ma,
35.43 s
[really-safe-money] - decorateMap m $ \_ a ->
35.43 s
[really-safe-money] - declare "The amount is not zero" $
35.43 s
[really-safe-money] - a /= Amount.zero
35.43 s
[really-safe-money] - ]
35.43 s
[really-safe-money] + []
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] instance (NFData currency) => NFData (MultiAmount currency)
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] added mutation ListLit at src/Money/MultiAmount.hs:63:7-8
35.43 s
[really-safe-money] @@ -60,11 +60,11 @@
35.43 s
[really-safe-money] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
35.43 s
[really-safe-money] validate ma@(MultiAmount m) =
35.43 s
[really-safe-money] mconcat
35.43 s
[really-safe-money] - [ genericValidate ma,
35.43 s
[really-safe-money] - decorateMap m $ \_ a ->
35.43 s
[really-safe-money] - declare "The amount is not zero" $
35.43 s
[really-safe-money] - a /= Amount.zero
35.43 s
[really-safe-money] - ]
35.43 s
[really-safe-money] + [ genericValidate ma,
35.43 s
[really-safe-money] + decorateMap m $ \_ a ->
35.43 s
[really-safe-money] + declare "The amount is not zero" $
35.43 s
[really-safe-money] + a /= Amount.zero
35.43 s
[really-safe-money] + ]
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] instance (NFData currency) => NFData (MultiAmount currency)
35.43 s
[really-safe-money]
35.43 s
[really-safe-money] added 31 mutations
36.01 s
[really-safe-money] [ 8 of 12] Compiling Money.AmountOf ( src/Money/AmountOf.hs, dist/build/Money/AmountOf.o, dist/build/Money/AmountOf.dyn_o )
36.02 s
[really-safe-money] mutation: instrumenting Money.AmountOf
36.02 s
[really-safe-money] added mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
36.02 s
[really-safe-money] @@ -212,11 +212,11 @@
36.02 s
[really-safe-money]
36.02 s
[really-safe-money] -- | See 'Amount.distribute'
36.02 s
[really-safe-money] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
36.02 s
[really-safe-money] -distribute (AmountOf a) f = case Amount.distribute a f of
36.02 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.02 s
[really-safe-money] - DistributedZero -> DistributedZero
36.02 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
36.02 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
36.02 s
[really-safe-money] +distribute (AmountOf a) f = case Amount.distribute a f of
36.02 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.02 s
[really-safe-money] + DistributedZero -> DistributedZero
36.02 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
36.02 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
36.02 s
[really-safe-money]
36.02 s
[really-safe-money] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
36.02 s
[really-safe-money]
36.02 s
[really-safe-money] added mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
36.02 s
[really-safe-money] @@ -212,11 +212,11 @@
36.02 s
[really-safe-money]
36.02 s
[really-safe-money] -- | See 'Amount.distribute'
36.02 s
[really-safe-money] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
36.02 s
[really-safe-money] -distribute (AmountOf a) f = case Amount.distribute a f of
36.02 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.02 s
[really-safe-money] - DistributedZero -> DistributedZero
36.02 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
36.02 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
36.02 s
[really-safe-money] +distribute (AmountOf a) f = case Amount.distribute a f of
36.02 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.03 s
[really-safe-money] + DistributedZero -> DistributedZero
36.03 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
36.03 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
36.03 s
[really-safe-money]
36.03 s
[really-safe-money] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
36.03 s
[really-safe-money]
36.03 s
[really-safe-money] added mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
36.03 s
[really-safe-money] @@ -212,11 +212,11 @@
36.03 s
[really-safe-money]
36.03 s
[really-safe-money] -- | See 'Amount.distribute'
36.03 s
[really-safe-money] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
36.03 s
[really-safe-money] -distribute (AmountOf a) f = case Amount.distribute a f of
36.03 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.03 s
[really-safe-money] - DistributedZero -> DistributedZero
36.03 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
36.03 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
36.03 s
[really-safe-money] +distribute (AmountOf a) f = case Amount.distribute a f of
36.03 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.03 s
[really-safe-money] + DistributedZero -> DistributedZero
36.03 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
36.03 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
36.03 s
[really-safe-money]
36.03 s
[really-safe-money] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
36.03 s
[really-safe-money]
36.03 s
[really-safe-money] added mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
36.03 s
[really-safe-money] @@ -212,11 +212,11 @@
36.03 s
[really-safe-money]
36.03 s
[really-safe-money] -- | See 'Amount.distribute'
36.03 s
[really-safe-money] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
36.03 s
[really-safe-money] -distribute (AmountOf a) f = case Amount.distribute a f of
36.03 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.03 s
[really-safe-money] - DistributedZero -> DistributedZero
36.03 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
36.03 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
36.03 s
[really-safe-money] +distribute (AmountOf a) f = case Amount.distribute a f of
36.03 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.03 s
[really-safe-money] + DistributedZero -> DistributedZero
36.03 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
36.03 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
36.03 s
[really-safe-money]
36.03 s
[really-safe-money] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
36.03 s
[really-safe-money]
36.03 s
[really-safe-money] added 4 mutations
36.21 s
[really-safe-money] [ 9 of 12] Compiling Money.Account ( src/Money/Account.hs, dist/build/Money/Account.o, dist/build/Money/Account.dyn_o )
36.23 s
[really-safe-money] mutation: instrumenting Money.Account
36.23 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:553:7-39
36.23 s
[really-safe-money] @@ -550,11 +550,11 @@
36.23 s
[really-safe-money] let aa1 = abs a1
36.23 s
[really-safe-money] aa2 = abs a2
36.23 s
[really-safe-money] mr = Amount.rate qf1 aa1 qf2 aa2
36.23 s
[really-safe-money] - in case (a1, a2) of
36.23 s
[really-safe-money] - (Positive _, Positive _) -> mr
36.23 s
[really-safe-money] - (Positive _, Negative _) -> Nothing
36.23 s
[really-safe-money] - (Negative _, Positive _) -> Nothing
36.23 s
[really-safe-money] - (Negative _, Negative _) -> mr
36.23 s
[really-safe-money] + in case (a1, a2) of
36.23 s
[really-safe-money] + (Positive _, Positive _) -> mr
36.23 s
[really-safe-money] + (Positive _, Negative _) -> Nothing
36.23 s
[really-safe-money] + (Negative _, Positive _) -> Nothing
36.23 s
[really-safe-money] + (Negative _, Negative _) -> mr
36.23 s
[really-safe-money]
36.23 s
[really-safe-money] -- | Convert an amount of money of one currency into an amount of money of
36.23 s
[really-safe-money] -- another currency using a conversion rate.
36.23 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:553:7-39
36.23 s
[really-safe-money] @@ -550,11 +550,11 @@
36.23 s
[really-safe-money] let aa1 = abs a1
36.23 s
[really-safe-money] aa2 = abs a2
36.23 s
[really-safe-money] mr = Amount.rate qf1 aa1 qf2 aa2
36.23 s
[really-safe-money] - in case (a1, a2) of
36.23 s
[really-safe-money] - (Positive _, Positive _) -> mr
36.23 s
[really-safe-money] - (Positive _, Negative _) -> Nothing
36.23 s
[really-safe-money] - (Negative _, Positive _) -> Nothing
36.23 s
[really-safe-money] - (Negative _, Negative _) -> mr
36.23 s
[really-safe-money] + in case (a1, a2) of
36.23 s
[really-safe-money] + (Positive _, Positive _) -> mr
36.23 s
[really-safe-money] + (Positive _, Negative _) -> Nothing
36.23 s
[really-safe-money] + (Negative _, Positive _) -> Nothing
36.23 s
[really-safe-money] + (Negative _, Negative _) -> mr
36.23 s
[really-safe-money]
36.23 s
[really-safe-money] -- | Convert an amount of money of one currency into an amount of money of
36.23 s
[really-safe-money] -- another currency using a conversion rate.
36.23 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:553:7-39
36.23 s
[really-safe-money] @@ -550,11 +550,11 @@
36.23 s
[really-safe-money] let aa1 = abs a1
36.23 s
[really-safe-money] aa2 = abs a2
36.23 s
[really-safe-money] mr = Amount.rate qf1 aa1 qf2 aa2
36.23 s
[really-safe-money] - in case (a1, a2) of
36.23 s
[really-safe-money] - (Positive _, Positive _) -> mr
36.23 s
[really-safe-money] - (Positive _, Negative _) -> Nothing
36.23 s
[really-safe-money] - (Negative _, Positive _) -> Nothing
36.23 s
[really-safe-money] - (Negative _, Negative _) -> mr
36.23 s
[really-safe-money] + in case (a1, a2) of
36.23 s
[really-safe-money] + (Positive _, Positive _) -> mr
36.23 s
[really-safe-money] + (Positive _, Negative _) -> Nothing
36.23 s
[really-safe-money] + (Negative _, Positive _) -> Nothing
36.23 s
[really-safe-money] + (Negative _, Negative _) -> mr
36.23 s
[really-safe-money]
36.23 s
[really-safe-money] -- | Convert an amount of money of one currency into an amount of money of
36.23 s
[really-safe-money] -- another currency using a conversion rate.
36.23 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:553:7-39
36.23 s
[really-safe-money] @@ -550,11 +550,11 @@
36.23 s
[really-safe-money] let aa1 = abs a1
36.23 s
[really-safe-money] aa2 = abs a2
36.23 s
[really-safe-money] mr = Amount.rate qf1 aa1 qf2 aa2
36.23 s
[really-safe-money] - in case (a1, a2) of
36.23 s
[really-safe-money] - (Positive _, Positive _) -> mr
36.23 s
[really-safe-money] - (Positive _, Negative _) -> Nothing
36.23 s
[really-safe-money] - (Negative _, Positive _) -> Nothing
36.23 s
[really-safe-money] - (Negative _, Negative _) -> mr
36.23 s
[really-safe-money] + in case (a1, a2) of
36.23 s
[really-safe-money] + (Positive _, Positive _) -> mr
36.23 s
[really-safe-money] + (Positive _, Negative _) -> Nothing
36.23 s
[really-safe-money] + (Negative _, Positive _) -> Nothing
36.23 s
[really-safe-money] + (Negative _, Negative _) -> mr
36.23 s
[really-safe-money]
36.23 s
[really-safe-money] -- | Convert an amount of money of one currency into an amount of money of
36.23 s
[really-safe-money] -- another currency using a conversion rate.
36.23 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:591:7-44
36.23 s
[really-safe-money] @@ -588,9 +588,9 @@
36.23 s
[really-safe-money] (Maybe Account, Maybe ConversionRate)
36.23 s
[really-safe-money] convert r qf1 a cr qf2 =
36.23 s
[really-safe-money] let (ma, mr) = Amount.convert r qf1 (abs a) cr qf2
36.23 s
[really-safe-money] - in case a of
36.23 s
[really-safe-money] - Positive _ -> (Positive <$> ma, mr)
36.23 s
[really-safe-money] - Negative _ -> (Negative <$> ma, mr)
36.23 s
[really-safe-money] + in case a of
36.23 s
[really-safe-money] + Positive _ -> (Positive <$> ma, mr)
36.23 s
[really-safe-money] + Negative _ -> (Negative <$> ma, mr)
36.23 s
[really-safe-money]
36.23 s
[really-safe-money] -- | Format an account of money without a symbol.
36.23 s
[really-safe-money] --
36.23 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:591:7-44
36.23 s
[really-safe-money] @@ -588,9 +588,9 @@
36.23 s
[really-safe-money] (Maybe Account, Maybe ConversionRate)
36.23 s
[really-safe-money] convert r qf1 a cr qf2 =
36.23 s
[really-safe-money] let (ma, mr) = Amount.convert r qf1 (abs a) cr qf2
36.23 s
[really-safe-money] - in case a of
36.23 s
[really-safe-money] - Positive _ -> (Positive <$> ma, mr)
36.23 s
[really-safe-money] - Negative _ -> (Negative <$> ma, mr)
36.23 s
[really-safe-money] + in case a of
36.23 s
[really-safe-money] + Positive _ -> (Positive <$> ma, mr)
36.23 s
[really-safe-money] + Negative _ -> (Negative <$> ma, mr)
36.23 s
[really-safe-money]
36.23 s
[really-safe-money] -- | Format an account of money without a symbol.
36.23 s
[really-safe-money] --
36.23 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:421:32-33
36.23 s
[really-safe-money] @@ -418,7 +418,7 @@
36.23 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
36.23 s
[really-safe-money] multiply factor account =
36.23 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
36.23 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
36.23 s
[really-safe-money] + f = case (compare factor 1, compare account zero) of
36.23 s
[really-safe-money] (EQ, _) -> const zero
36.23 s
[really-safe-money] (_, EQ) -> const zero
36.23 s
[really-safe-money] (GT, GT) -> Positive
36.23 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
36.23 s
[really-safe-money] @@ -418,13 +418,13 @@
36.23 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
36.23 s
[really-safe-money] multiply factor account =
36.23 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
36.23 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
36.23 s
[really-safe-money] - (EQ, _) -> const zero
36.23 s
[really-safe-money] - (_, EQ) -> const zero
36.23 s
[really-safe-money] - (GT, GT) -> Positive
36.23 s
[really-safe-money] - (GT, LT) -> Negative
36.23 s
[really-safe-money] - (LT, GT) -> Negative
36.23 s
[really-safe-money] - (LT, LT) -> Positive
36.23 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
36.23 s
[really-safe-money] + (EQ, _) -> const zero
36.23 s
[really-safe-money] + (_, EQ) -> const zero
36.23 s
[really-safe-money] + (GT, GT) -> Positive
36.23 s
[really-safe-money] + (GT, LT) -> Negative
36.24 s
[really-safe-money] + (LT, GT) -> Negative
36.24 s
[really-safe-money] + (LT, LT) -> Positive
36.24 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
36.24 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
36.24 s
[really-safe-money] @@ -418,13 +418,13 @@
36.24 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
36.24 s
[really-safe-money] multiply factor account =
36.24 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
36.24 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
36.24 s
[really-safe-money] - (EQ, _) -> const zero
36.24 s
[really-safe-money] - (_, EQ) -> const zero
36.24 s
[really-safe-money] - (GT, GT) -> Positive
36.24 s
[really-safe-money] - (GT, LT) -> Negative
36.24 s
[really-safe-money] - (LT, GT) -> Negative
36.24 s
[really-safe-money] - (LT, LT) -> Positive
36.24 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
36.24 s
[really-safe-money] + (EQ, _) -> const zero
36.24 s
[really-safe-money] + (_, EQ) -> const zero
36.24 s
[really-safe-money] + (GT, GT) -> Positive
36.24 s
[really-safe-money] + (GT, LT) -> Negative
36.24 s
[really-safe-money] + (LT, GT) -> Negative
36.24 s
[really-safe-money] + (LT, LT) -> Positive
36.24 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
36.24 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
36.24 s
[really-safe-money] @@ -418,13 +418,13 @@
36.24 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
36.24 s
[really-safe-money] multiply factor account =
36.24 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
36.24 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
36.24 s
[really-safe-money] - (EQ, _) -> const zero
36.24 s
[really-safe-money] - (_, EQ) -> const zero
36.24 s
[really-safe-money] - (GT, GT) -> Positive
36.24 s
[really-safe-money] - (GT, LT) -> Negative
36.24 s
[really-safe-money] - (LT, GT) -> Negative
36.24 s
[really-safe-money] - (LT, LT) -> Positive
36.24 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
36.24 s
[really-safe-money] + (EQ, _) -> const zero
36.24 s
[really-safe-money] + (_, EQ) -> const zero
36.24 s
[really-safe-money] + (GT, GT) -> Positive
36.24 s
[really-safe-money] + (GT, LT) -> Negative
36.24 s
[really-safe-money] + (LT, GT) -> Negative
36.24 s
[really-safe-money] + (LT, LT) -> Positive
36.24 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
36.24 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
36.24 s
[really-safe-money] @@ -418,13 +418,13 @@
36.24 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
36.24 s
[really-safe-money] multiply factor account =
36.24 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
36.24 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
36.24 s
[really-safe-money] - (EQ, _) -> const zero
36.24 s
[really-safe-money] - (_, EQ) -> const zero
36.24 s
[really-safe-money] - (GT, GT) -> Positive
36.24 s
[really-safe-money] - (GT, LT) -> Negative
36.24 s
[really-safe-money] - (LT, GT) -> Negative
36.24 s
[really-safe-money] - (LT, LT) -> Positive
36.24 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
36.24 s
[really-safe-money] + (EQ, _) -> const zero
36.24 s
[really-safe-money] + (_, EQ) -> const zero
36.24 s
[really-safe-money] + (GT, GT) -> Positive
36.24 s
[really-safe-money] + (GT, LT) -> Negative
36.24 s
[really-safe-money] + (LT, GT) -> Negative
36.24 s
[really-safe-money] + (LT, LT) -> Positive
36.24 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
36.24 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
36.24 s
[really-safe-money] @@ -418,13 +418,13 @@
36.24 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
36.24 s
[really-safe-money] multiply factor account =
36.24 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
36.24 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
36.24 s
[really-safe-money] - (EQ, _) -> const zero
36.24 s
[really-safe-money] - (_, EQ) -> const zero
36.24 s
[really-safe-money] - (GT, GT) -> Positive
36.24 s
[really-safe-money] - (GT, LT) -> Negative
36.24 s
[really-safe-money] - (LT, GT) -> Negative
36.24 s
[really-safe-money] - (LT, LT) -> Positive
36.24 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
36.24 s
[really-safe-money] + (EQ, _) -> const zero
36.24 s
[really-safe-money] + (_, EQ) -> const zero
36.24 s
[really-safe-money] + (GT, GT) -> Positive
36.24 s
[really-safe-money] + (GT, LT) -> Negative
36.24 s
[really-safe-money] + (LT, GT) -> Negative
36.24 s
[really-safe-money] + (LT, LT) -> Positive
36.24 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
36.24 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
36.24 s
[really-safe-money] @@ -418,13 +418,13 @@
36.24 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
36.24 s
[really-safe-money] multiply factor account =
36.24 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
36.24 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
36.24 s
[really-safe-money] - (EQ, _) -> const zero
36.24 s
[really-safe-money] - (_, EQ) -> const zero
36.24 s
[really-safe-money] - (GT, GT) -> Positive
36.24 s
[really-safe-money] - (GT, LT) -> Negative
36.24 s
[really-safe-money] - (LT, GT) -> Negative
36.24 s
[really-safe-money] - (LT, LT) -> Positive
36.24 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
36.24 s
[really-safe-money] + (EQ, _) -> const zero
36.24 s
[really-safe-money] + (_, EQ) -> const zero
36.24 s
[really-safe-money] + (GT, GT) -> Positive
36.24 s
[really-safe-money] + (GT, LT) -> Negative
36.24 s
[really-safe-money] + (LT, GT) -> Negative
36.24 s
[really-safe-money] + (LT, LT) -> Positive
36.24 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
36.24 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:451:14-23
36.24 s
[really-safe-money] @@ -448,7 +448,7 @@
36.24 s
[really-safe-money] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.24 s
[really-safe-money] DistributedZero -> DistributedZero
36.24 s
[really-safe-money] DistributedIntoEqualChunks numberOfChunks chunk ->
36.24 s
[really-safe-money] - if a >= zero
36.24 s
[really-safe-money] + if True
36.24 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.24 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.24 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.24 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:451:14-23
36.24 s
[really-safe-money] @@ -448,7 +448,7 @@
36.24 s
[really-safe-money] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.24 s
[really-safe-money] DistributedZero -> DistributedZero
36.24 s
[really-safe-money] DistributedIntoEqualChunks numberOfChunks chunk ->
36.24 s
[really-safe-money] - if a >= zero
36.24 s
[really-safe-money] + if False
36.24 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.24 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.24 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.24 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:451:14-23
36.24 s
[really-safe-money] @@ -448,7 +448,7 @@
36.24 s
[really-safe-money] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.24 s
[really-safe-money] DistributedZero -> DistributedZero
36.24 s
[really-safe-money] DistributedIntoEqualChunks numberOfChunks chunk ->
36.24 s
[really-safe-money] - if a >= zero
36.24 s
[really-safe-money] + if not (a >= zero)
36.24 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.24 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.24 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.24 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:451:11-76
36.24 s
[really-safe-money] @@ -448,9 +448,9 @@
36.24 s
[really-safe-money] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.24 s
[really-safe-money] DistributedZero -> DistributedZero
36.24 s
[really-safe-money] DistributedIntoEqualChunks numberOfChunks chunk ->
36.24 s
[really-safe-money] - if a >= zero
36.24 s
[really-safe-money] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.24 s
[really-safe-money] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.24 s
[really-safe-money] + if a >= zero
36.24 s
[really-safe-money] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.24 s
[really-safe-money] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.24 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.24 s
[really-safe-money] if a >= zero
36.24 s
[really-safe-money] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.24 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:455:14-23
36.24 s
[really-safe-money] @@ -452,7 +452,7 @@
36.24 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.24 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.24 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.24 s
[really-safe-money] - if a >= zero
36.24 s
[really-safe-money] + if True
36.24 s
[really-safe-money] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.24 s
[really-safe-money] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:455:14-23
36.24 s
[really-safe-money] @@ -452,7 +452,7 @@
36.24 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.24 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.24 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.24 s
[really-safe-money] - if a >= zero
36.24 s
[really-safe-money] + if False
36.24 s
[really-safe-money] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.24 s
[really-safe-money] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:455:14-23
36.24 s
[really-safe-money] @@ -452,7 +452,7 @@
36.24 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.24 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.24 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.24 s
[really-safe-money] - if a >= zero
36.24 s
[really-safe-money] + if not (a >= zero)
36.24 s
[really-safe-money] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.24 s
[really-safe-money] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:455:11-136
36.24 s
[really-safe-money] @@ -452,9 +452,9 @@
36.24 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.24 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.24 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.24 s
[really-safe-money] - if a >= zero
36.24 s
[really-safe-money] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.24 s
[really-safe-money] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.24 s
[really-safe-money] + if a >= zero
36.24 s
[really-safe-money] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.24 s
[really-safe-money] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] type AccountDistribution = Amount.Distribution Account
36.24 s
[really-safe-money]
36.24 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:447:7-136
36.25 s
[really-safe-money] @@ -444,17 +444,17 @@
36.25 s
[really-safe-money] distribute a f =
36.25 s
[really-safe-money] let aa = abs a
36.25 s
[really-safe-money] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
36.25 s
[really-safe-money] - in case Amount.distribute aa af of
36.25 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.25 s
[really-safe-money] - DistributedZero -> DistributedZero
36.25 s
[really-safe-money] - DistributedIntoEqualChunks numberOfChunks chunk ->
36.25 s
[really-safe-money] - if a >= zero
36.25 s
[really-safe-money] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.25 s
[really-safe-money] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.25 s
[really-safe-money] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.25 s
[really-safe-money] - if a >= zero
36.25 s
[really-safe-money] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.25 s
[really-safe-money] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.25 s
[really-safe-money] + in case Amount.distribute aa af of
36.25 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.25 s
[really-safe-money] + DistributedZero -> DistributedZero
36.25 s
[really-safe-money] + DistributedIntoEqualChunks numberOfChunks chunk ->
36.25 s
[really-safe-money] + if a >= zero
36.25 s
[really-safe-money] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.25 s
[really-safe-money] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.25 s
[really-safe-money] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.25 s
[really-safe-money] + if a >= zero
36.25 s
[really-safe-money] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.25 s
[really-safe-money] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] type AccountDistribution = Amount.Distribution Account
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:447:7-136
36.25 s
[really-safe-money] @@ -444,17 +444,17 @@
36.25 s
[really-safe-money] distribute a f =
36.25 s
[really-safe-money] let aa = abs a
36.25 s
[really-safe-money] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
36.25 s
[really-safe-money] - in case Amount.distribute aa af of
36.25 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.25 s
[really-safe-money] - DistributedZero -> DistributedZero
36.25 s
[really-safe-money] - DistributedIntoEqualChunks numberOfChunks chunk ->
36.25 s
[really-safe-money] - if a >= zero
36.25 s
[really-safe-money] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.25 s
[really-safe-money] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.25 s
[really-safe-money] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.25 s
[really-safe-money] - if a >= zero
36.25 s
[really-safe-money] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.25 s
[really-safe-money] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.25 s
[really-safe-money] + in case Amount.distribute aa af of
36.25 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.25 s
[really-safe-money] + DistributedZero -> DistributedZero
36.25 s
[really-safe-money] + DistributedIntoEqualChunks numberOfChunks chunk ->
36.25 s
[really-safe-money] + if a >= zero
36.25 s
[really-safe-money] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.25 s
[really-safe-money] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.25 s
[really-safe-money] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.25 s
[really-safe-money] + if a >= zero
36.25 s
[really-safe-money] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.25 s
[really-safe-money] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] type AccountDistribution = Amount.Distribution Account
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:447:7-136
36.25 s
[really-safe-money] @@ -444,17 +444,17 @@
36.25 s
[really-safe-money] distribute a f =
36.25 s
[really-safe-money] let aa = abs a
36.25 s
[really-safe-money] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
36.25 s
[really-safe-money] - in case Amount.distribute aa af of
36.25 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.25 s
[really-safe-money] - DistributedZero -> DistributedZero
36.25 s
[really-safe-money] - DistributedIntoEqualChunks numberOfChunks chunk ->
36.25 s
[really-safe-money] - if a >= zero
36.25 s
[really-safe-money] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.25 s
[really-safe-money] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.25 s
[really-safe-money] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.25 s
[really-safe-money] - if a >= zero
36.25 s
[really-safe-money] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.25 s
[really-safe-money] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.25 s
[really-safe-money] + in case Amount.distribute aa af of
36.25 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.25 s
[really-safe-money] + DistributedZero -> DistributedZero
36.25 s
[really-safe-money] + DistributedIntoEqualChunks numberOfChunks chunk ->
36.25 s
[really-safe-money] + if a >= zero
36.25 s
[really-safe-money] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.25 s
[really-safe-money] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.25 s
[really-safe-money] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.25 s
[really-safe-money] + if a >= zero
36.25 s
[really-safe-money] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.25 s
[really-safe-money] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] type AccountDistribution = Amount.Distribution Account
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:447:7-136
36.25 s
[really-safe-money] @@ -444,17 +444,17 @@
36.25 s
[really-safe-money] distribute a f =
36.25 s
[really-safe-money] let aa = abs a
36.25 s
[really-safe-money] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
36.25 s
[really-safe-money] - in case Amount.distribute aa af of
36.25 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.25 s
[really-safe-money] - DistributedZero -> DistributedZero
36.25 s
[really-safe-money] - DistributedIntoEqualChunks numberOfChunks chunk ->
36.25 s
[really-safe-money] - if a >= zero
36.25 s
[really-safe-money] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.25 s
[really-safe-money] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.25 s
[really-safe-money] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.25 s
[really-safe-money] - if a >= zero
36.25 s
[really-safe-money] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.25 s
[really-safe-money] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.25 s
[really-safe-money] + in case Amount.distribute aa af of
36.25 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
36.25 s
[really-safe-money] + DistributedZero -> DistributedZero
36.25 s
[really-safe-money] + DistributedIntoEqualChunks numberOfChunks chunk ->
36.25 s
[really-safe-money] + if a >= zero
36.25 s
[really-safe-money] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
36.25 s
[really-safe-money] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
36.25 s
[really-safe-money] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
36.25 s
[really-safe-money] + if a >= zero
36.25 s
[really-safe-money] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
36.25 s
[really-safe-money] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] type AccountDistribution = Amount.Distribution Account
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:522:19-35
36.25 s
[really-safe-money] @@ -519,10 +519,10 @@
36.25 s
[really-safe-money] let aa = abs account
36.25 s
[really-safe-money] (amount, actualFraction) = Amount.fraction ro aa af
36.25 s
[really-safe-money] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
36.25 s
[really-safe-money] - func ma r = case compare account zero of
36.25 s
[really-safe-money] - EQ -> (Just zero, r)
36.25 s
[really-safe-money] - GT -> (Positive <$> ma, r)
36.25 s
[really-safe-money] - LT -> (Negative <$> ma, r)
36.25 s
[really-safe-money] + func ma r = case compare account zero of
36.25 s
[really-safe-money] + EQ -> (Just zero, r)
36.25 s
[really-safe-money] + GT -> (Positive <$> ma, r)
36.25 s
[really-safe-money] + LT -> (Negative <$> ma, r)
36.25 s
[really-safe-money] in func amount actualFraction
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] -- | Compute the currency conversion rate between two accounts of money of
36.25 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:522:19-35
36.25 s
[really-safe-money] @@ -519,10 +519,10 @@
36.25 s
[really-safe-money] let aa = abs account
36.25 s
[really-safe-money] (amount, actualFraction) = Amount.fraction ro aa af
36.25 s
[really-safe-money] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
36.25 s
[really-safe-money] - func ma r = case compare account zero of
36.25 s
[really-safe-money] - EQ -> (Just zero, r)
36.25 s
[really-safe-money] - GT -> (Positive <$> ma, r)
36.25 s
[really-safe-money] - LT -> (Negative <$> ma, r)
36.25 s
[really-safe-money] + func ma r = case compare account zero of
36.25 s
[really-safe-money] + EQ -> (Just zero, r)
36.25 s
[really-safe-money] + GT -> (Positive <$> ma, r)
36.25 s
[really-safe-money] + LT -> (Negative <$> ma, r)
36.25 s
[really-safe-money] in func amount actualFraction
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] -- | Compute the currency conversion rate between two accounts of money of
36.25 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:522:19-35
36.25 s
[really-safe-money] @@ -519,10 +519,10 @@
36.25 s
[really-safe-money] let aa = abs account
36.25 s
[really-safe-money] (amount, actualFraction) = Amount.fraction ro aa af
36.25 s
[really-safe-money] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
36.25 s
[really-safe-money] - func ma r = case compare account zero of
36.25 s
[really-safe-money] - EQ -> (Just zero, r)
36.25 s
[really-safe-money] - GT -> (Positive <$> ma, r)
36.25 s
[really-safe-money] - LT -> (Negative <$> ma, r)
36.25 s
[really-safe-money] + func ma r = case compare account zero of
36.25 s
[really-safe-money] + EQ -> (Just zero, r)
36.25 s
[really-safe-money] + GT -> (Positive <$> ma, r)
36.25 s
[really-safe-money] + LT -> (Negative <$> ma, r)
36.25 s
[really-safe-money] in func amount actualFraction
36.25 s
[really-safe-money]
36.25 s
[really-safe-money] -- | Compute the currency conversion rate between two accounts of money of
36.25 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:495:17-18
36.25 s
[really-safe-money] @@ -492,7 +492,7 @@
36.25 s
[really-safe-money] fraction rounding account f =
36.25 s
[really-safe-money] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
36.25 s
[really-safe-money] ro =
36.25 s
[really-safe-money] - if f >= 0
36.25 s
[really-safe-money] + if f >= 1
36.25 s
[really-safe-money] then rounding
36.25 s
[really-safe-money] else case rounding of
36.25 s
[really-safe-money] RoundUp -> RoundDown
36.25 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:495:12-18
36.25 s
[really-safe-money] @@ -492,7 +492,7 @@
36.25 s
[really-safe-money] fraction rounding account f =
36.25 s
[really-safe-money] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
36.25 s
[really-safe-money] ro =
36.25 s
[really-safe-money] - if f >= 0
36.25 s
[really-safe-money] + if True
36.25 s
[really-safe-money] then rounding
36.25 s
[really-safe-money] else case rounding of
36.25 s
[really-safe-money] RoundUp -> RoundDown
36.25 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:495:12-18
36.25 s
[really-safe-money] @@ -492,7 +492,7 @@
36.25 s
[really-safe-money] fraction rounding account f =
36.25 s
[really-safe-money] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
36.25 s
[really-safe-money] ro =
36.25 s
[really-safe-money] - if f >= 0
36.25 s
[really-safe-money] + if False
36.25 s
[really-safe-money] then rounding
36.25 s
[really-safe-money] else case rounding of
36.25 s
[really-safe-money] RoundUp -> RoundDown
36.25 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:495:12-18
36.25 s
[really-safe-money] @@ -492,7 +492,7 @@
36.25 s
[really-safe-money] fraction rounding account f =
36.25 s
[really-safe-money] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
36.25 s
[really-safe-money] ro =
36.25 s
[really-safe-money] - if f >= 0
36.25 s
[really-safe-money] + if not (f >= 0)
36.25 s
[really-safe-money] then rounding
36.25 s
[really-safe-money] else case rounding of
36.25 s
[really-safe-money] RoundUp -> RoundDown
36.25 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:497:16-41
36.25 s
[really-safe-money] @@ -494,10 +494,10 @@
36.25 s
[really-safe-money] ro =
36.25 s
[really-safe-money] if f >= 0
36.25 s
[really-safe-money] then rounding
36.25 s
[really-safe-money] - else case rounding of
36.25 s
[really-safe-money] - RoundUp -> RoundDown
36.25 s
[really-safe-money] - RoundDown -> RoundUp
36.25 s
[really-safe-money] - RoundNearest -> RoundNearest
36.25 s
[really-safe-money] + else case rounding of
36.25 s
[really-safe-money] + RoundUp -> RoundDown
36.25 s
[really-safe-money] + RoundDown -> RoundUp
36.25 s
[really-safe-money] + RoundNearest -> RoundNearest
36.25 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
36.25 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
36.25 s
[really-safe-money] in if f >= 0
36.25 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:497:16-41
36.25 s
[really-safe-money] @@ -494,10 +494,10 @@
36.25 s
[really-safe-money] ro =
36.25 s
[really-safe-money] if f >= 0
36.25 s
[really-safe-money] then rounding
36.25 s
[really-safe-money] - else case rounding of
36.25 s
[really-safe-money] - RoundUp -> RoundDown
36.25 s
[really-safe-money] - RoundDown -> RoundUp
36.25 s
[really-safe-money] - RoundNearest -> RoundNearest
36.25 s
[really-safe-money] + else case rounding of
36.25 s
[really-safe-money] + RoundUp -> RoundDown
36.25 s
[really-safe-money] + RoundDown -> RoundUp
36.25 s
[really-safe-money] + RoundNearest -> RoundNearest
36.25 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
36.25 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
36.25 s
[really-safe-money] in if f >= 0
36.25 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:497:16-41
36.25 s
[really-safe-money] @@ -494,10 +494,10 @@
36.25 s
[really-safe-money] ro =
36.25 s
[really-safe-money] if f >= 0
36.25 s
[really-safe-money] then rounding
36.25 s
[really-safe-money] - else case rounding of
36.25 s
[really-safe-money] - RoundUp -> RoundDown
36.25 s
[really-safe-money] - RoundDown -> RoundUp
36.25 s
[really-safe-money] - RoundNearest -> RoundNearest
36.25 s
[really-safe-money] + else case rounding of
36.25 s
[really-safe-money] + RoundUp -> RoundDown
36.25 s
[really-safe-money] + RoundDown -> RoundUp
36.25 s
[really-safe-money] + RoundNearest -> RoundNearest
36.25 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
36.25 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
36.26 s
[really-safe-money] in if f >= 0
36.26 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:495:9-41
36.26 s
[really-safe-money] @@ -492,12 +492,12 @@
36.26 s
[really-safe-money] fraction rounding account f =
36.26 s
[really-safe-money] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
36.26 s
[really-safe-money] ro =
36.26 s
[really-safe-money] - if f >= 0
36.26 s
[really-safe-money] - then rounding
36.26 s
[really-safe-money] - else case rounding of
36.26 s
[really-safe-money] - RoundUp -> RoundDown
36.26 s
[really-safe-money] - RoundDown -> RoundUp
36.26 s
[really-safe-money] - RoundNearest -> RoundNearest
36.26 s
[really-safe-money] + if f >= 0
36.26 s
[really-safe-money] + then rounding
36.26 s
[really-safe-money] + else case rounding of
36.26 s
[really-safe-money] + RoundUp -> RoundDown
36.26 s
[really-safe-money] + RoundDown -> RoundUp
36.26 s
[really-safe-money] + RoundNearest -> RoundNearest
36.26 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
36.26 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
36.26 s
[really-safe-money] in if f >= 0
36.26 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:503:15-16
36.26 s
[really-safe-money] @@ -500,7 +500,7 @@
36.26 s
[really-safe-money] RoundNearest -> RoundNearest
36.26 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
36.26 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
36.26 s
[really-safe-money] - in if f >= 0
36.26 s
[really-safe-money] + in if f >= 1
36.26 s
[really-safe-money] then (ma, r)
36.26 s
[really-safe-money] else (negate <$> ma, -r)
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:503:10-16
36.26 s
[really-safe-money] @@ -500,7 +500,7 @@
36.26 s
[really-safe-money] RoundNearest -> RoundNearest
36.26 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
36.26 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
36.26 s
[really-safe-money] - in if f >= 0
36.26 s
[really-safe-money] + in if True
36.26 s
[really-safe-money] then (ma, r)
36.26 s
[really-safe-money] else (negate <$> ma, -r)
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:503:10-16
36.26 s
[really-safe-money] @@ -500,7 +500,7 @@
36.26 s
[really-safe-money] RoundNearest -> RoundNearest
36.26 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
36.26 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
36.26 s
[really-safe-money] - in if f >= 0
36.26 s
[really-safe-money] + in if False
36.26 s
[really-safe-money] then (ma, r)
36.26 s
[really-safe-money] else (negate <$> ma, -r)
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:503:10-16
36.26 s
[really-safe-money] @@ -500,7 +500,7 @@
36.26 s
[really-safe-money] RoundNearest -> RoundNearest
36.26 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
36.26 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
36.26 s
[really-safe-money] - in if f >= 0
36.26 s
[really-safe-money] + in if not (f >= 0)
36.26 s
[really-safe-money] then (ma, r)
36.26 s
[really-safe-money] else (negate <$> ma, -r)
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:503:7-33
36.26 s
[really-safe-money] @@ -500,9 +500,9 @@
36.26 s
[really-safe-money] RoundNearest -> RoundNearest
36.26 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
36.26 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
36.26 s
[really-safe-money] - in if f >= 0
36.26 s
[really-safe-money] - then (ma, r)
36.26 s
[really-safe-money] - else (negate <$> ma, -r)
36.26 s
[really-safe-money] + in if f >= 0
36.26 s
[really-safe-money] + then (ma, r)
36.26 s
[really-safe-money] + else (negate <$> ma, -r)
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Fractional multiplication with a positive fraction, see 'Amount.fraction' and 'Account.fraction'.
36.26 s
[really-safe-money] --
36.26 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:233:19-20
36.26 s
[really-safe-money] @@ -230,7 +230,7 @@
36.26 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Account
36.26 s
[really-safe-money] fromRational quantisationFactor r =
36.26 s
[really-safe-money] let r' = Prelude.abs r
36.26 s
[really-safe-money] - f = if r >= 0 then Positive else Negative
36.26 s
[really-safe-money] + f = if r >= 1 then Positive else Negative
36.26 s
[really-safe-money] in f <$> Amount.fromRational quantisationFactor r'
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
36.26 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:233:14-20
36.26 s
[really-safe-money] @@ -230,7 +230,7 @@
36.26 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Account
36.26 s
[really-safe-money] fromRational quantisationFactor r =
36.26 s
[really-safe-money] let r' = Prelude.abs r
36.26 s
[really-safe-money] - f = if r >= 0 then Positive else Negative
36.26 s
[really-safe-money] + f = if True then Positive else Negative
36.26 s
[really-safe-money] in f <$> Amount.fromRational quantisationFactor r'
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
36.26 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:233:14-20
36.26 s
[really-safe-money] @@ -230,7 +230,7 @@
36.26 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Account
36.26 s
[really-safe-money] fromRational quantisationFactor r =
36.26 s
[really-safe-money] let r' = Prelude.abs r
36.26 s
[really-safe-money] - f = if r >= 0 then Positive else Negative
36.26 s
[really-safe-money] + f = if False then Positive else Negative
36.26 s
[really-safe-money] in f <$> Amount.fromRational quantisationFactor r'
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
36.26 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:233:14-20
36.26 s
[really-safe-money] @@ -230,7 +230,7 @@
36.26 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Account
36.26 s
[really-safe-money] fromRational quantisationFactor r =
36.26 s
[really-safe-money] let r' = Prelude.abs r
36.26 s
[really-safe-money] - f = if r >= 0 then Positive else Negative
36.26 s
[really-safe-money] + f = if not (r >= 0) then Positive else Negative
36.26 s
[really-safe-money] in f <$> Amount.fromRational quantisationFactor r'
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
36.26 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:233:11-48
36.26 s
[really-safe-money] @@ -230,7 +230,7 @@
36.26 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Account
36.26 s
[really-safe-money] fromRational quantisationFactor r =
36.26 s
[really-safe-money] let r' = Prelude.abs r
36.26 s
[really-safe-money] - f = if r >= 0 then Positive else Negative
36.26 s
[really-safe-money] + f = if r >= 0 then Positive else Negative
36.26 s
[really-safe-money] in f <$> Amount.fromRational quantisationFactor r'
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
36.26 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:211:11-37
36.26 s
[really-safe-money] @@ -208,9 +208,9 @@
36.26 s
[really-safe-money] -- (-3) % 20
36.26 s
[really-safe-money] toRational :: QuantisationFactor -> Account -> Rational
36.26 s
[really-safe-money] toRational quantisationFactor account =
36.26 s
[really-safe-money] - let f = case account of
36.26 s
[really-safe-money] - Positive _ -> id
36.26 s
[really-safe-money] - Negative _ -> Prelude.negate
36.26 s
[really-safe-money] + let f = case account of
36.26 s
[really-safe-money] + Positive _ -> id
36.26 s
[really-safe-money] + Negative _ -> Prelude.negate
36.26 s
[really-safe-money] in f $ Amount.toRational quantisationFactor (abs account)
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
36.26 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:211:11-37
36.26 s
[really-safe-money] @@ -208,9 +208,9 @@
36.26 s
[really-safe-money] -- (-3) % 20
36.26 s
[really-safe-money] toRational :: QuantisationFactor -> Account -> Rational
36.26 s
[really-safe-money] toRational quantisationFactor account =
36.26 s
[really-safe-money] - let f = case account of
36.26 s
[really-safe-money] - Positive _ -> id
36.26 s
[really-safe-money] - Negative _ -> Prelude.negate
36.26 s
[really-safe-money] + let f = case account of
36.26 s
[really-safe-money] + Positive _ -> id
36.26 s
[really-safe-money] + Negative _ -> Prelude.negate
36.26 s
[really-safe-money] in f $ Amount.toRational quantisationFactor (abs account)
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
36.26 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:197:19-20
36.26 s
[really-safe-money] @@ -194,7 +194,7 @@
36.26 s
[really-safe-money] fromDouble :: QuantisationFactor -> Double -> Maybe Account
36.26 s
[really-safe-money] fromDouble quantisationFactor d =
36.26 s
[really-safe-money] let d' = Prelude.abs d
36.26 s
[really-safe-money] - f = if d >= 0 then Positive else Negative
36.26 s
[really-safe-money] + f = if d >= 1 then Positive else Negative
36.26 s
[really-safe-money] in f <$> Amount.fromDouble quantisationFactor d'
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
36.26 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:197:14-20
36.26 s
[really-safe-money] @@ -194,7 +194,7 @@
36.26 s
[really-safe-money] fromDouble :: QuantisationFactor -> Double -> Maybe Account
36.26 s
[really-safe-money] fromDouble quantisationFactor d =
36.26 s
[really-safe-money] let d' = Prelude.abs d
36.26 s
[really-safe-money] - f = if d >= 0 then Positive else Negative
36.26 s
[really-safe-money] + f = if True then Positive else Negative
36.26 s
[really-safe-money] in f <$> Amount.fromDouble quantisationFactor d'
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
36.26 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:197:14-20
36.26 s
[really-safe-money] @@ -194,7 +194,7 @@
36.26 s
[really-safe-money] fromDouble :: QuantisationFactor -> Double -> Maybe Account
36.26 s
[really-safe-money] fromDouble quantisationFactor d =
36.26 s
[really-safe-money] let d' = Prelude.abs d
36.26 s
[really-safe-money] - f = if d >= 0 then Positive else Negative
36.26 s
[really-safe-money] + f = if False then Positive else Negative
36.26 s
[really-safe-money] in f <$> Amount.fromDouble quantisationFactor d'
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
36.26 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:197:14-20
36.26 s
[really-safe-money] @@ -194,7 +194,7 @@
36.26 s
[really-safe-money] fromDouble :: QuantisationFactor -> Double -> Maybe Account
36.26 s
[really-safe-money] fromDouble quantisationFactor d =
36.26 s
[really-safe-money] let d' = Prelude.abs d
36.26 s
[really-safe-money] - f = if d >= 0 then Positive else Negative
36.26 s
[really-safe-money] + f = if not (d >= 0) then Positive else Negative
36.26 s
[really-safe-money] in f <$> Amount.fromDouble quantisationFactor d'
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
36.26 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:197:11-48
36.26 s
[really-safe-money] @@ -194,7 +194,7 @@
36.26 s
[really-safe-money] fromDouble :: QuantisationFactor -> Double -> Maybe Account
36.26 s
[really-safe-money] fromDouble quantisationFactor d =
36.26 s
[really-safe-money] let d' = Prelude.abs d
36.26 s
[really-safe-money] - f = if d >= 0 then Positive else Negative
36.26 s
[really-safe-money] + f = if d >= 0 then Positive else Negative
36.26 s
[really-safe-money] in f <$> Amount.fromDouble quantisationFactor d'
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
36.26 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:171:11-37
36.26 s
[really-safe-money] @@ -168,9 +168,9 @@
36.26 s
[really-safe-money] -- -0.25
36.26 s
[really-safe-money] toDouble :: QuantisationFactor -> Account -> Double
36.26 s
[really-safe-money] toDouble quantisationFactor account =
36.26 s
[really-safe-money] - let f = case account of
36.26 s
[really-safe-money] - Positive _ -> id
36.26 s
[really-safe-money] - Negative _ -> Prelude.negate
36.26 s
[really-safe-money] + let f = case account of
36.26 s
[really-safe-money] + Positive _ -> id
36.26 s
[really-safe-money] + Negative _ -> Prelude.negate
36.26 s
[really-safe-money] in f $ Amount.toDouble quantisationFactor (abs account)
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn a 'Double' into an amount of money.
36.26 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:171:11-37
36.26 s
[really-safe-money] @@ -168,9 +168,9 @@
36.26 s
[really-safe-money] -- -0.25
36.26 s
[really-safe-money] toDouble :: QuantisationFactor -> Account -> Double
36.26 s
[really-safe-money] toDouble quantisationFactor account =
36.26 s
[really-safe-money] - let f = case account of
36.26 s
[really-safe-money] - Positive _ -> id
36.26 s
[really-safe-money] - Negative _ -> Prelude.negate
36.26 s
[really-safe-money] + let f = case account of
36.26 s
[really-safe-money] + Positive _ -> id
36.26 s
[really-safe-money] + Negative _ -> Prelude.negate
36.26 s
[really-safe-money] in f $ Amount.toDouble quantisationFactor (abs account)
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn a 'Double' into an amount of money.
36.26 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:155:11-37
36.26 s
[really-safe-money] @@ -152,9 +152,9 @@
36.26 s
[really-safe-money] -- We return 'Integer' because the result does not fit into a 'Word64'
36.26 s
[really-safe-money] toMinimalQuantisations :: Account -> Integer
36.26 s
[really-safe-money] toMinimalQuantisations account =
36.26 s
[really-safe-money] - let f = case account of
36.26 s
[really-safe-money] - Positive _ -> id
36.26 s
[really-safe-money] - Negative _ -> Prelude.negate
36.26 s
[really-safe-money] + let f = case account of
36.26 s
[really-safe-money] + Positive _ -> id
36.26 s
[really-safe-money] + Negative _ -> Prelude.negate
36.26 s
[really-safe-money] in f $ (fromIntegral :: Word64 -> Integer) $ Amount.toMinimalQuantisations (abs account)
36.26 s
[really-safe-money]
36.26 s
[really-safe-money] -- | Turn an amount of money into a 'Double'.
36.26 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:155:11-37
36.26 s
[really-safe-money] @@ -152,9 +152,9 @@
36.26 s
[really-safe-money] -- We return 'Integer' because the result does not fit into a 'Word64'
36.26 s
[really-safe-money] toMinimalQuantisations :: Account -> Integer
36.26 s
[really-safe-money] toMinimalQuantisations account =
36.26 s
[really-safe-money] - let f = case account of
36.27 s
[really-safe-money] - Positive _ -> id
36.27 s
[really-safe-money] - Negative _ -> Prelude.negate
36.27 s
[really-safe-money] + let f = case account of
36.27 s
[really-safe-money] + Positive _ -> id
36.27 s
[really-safe-money] + Negative _ -> Prelude.negate
36.27 s
[really-safe-money] in f $ (fromIntegral :: Word64 -> Integer) $ Amount.toMinimalQuantisations (abs account)
36.27 s
[really-safe-money]
36.27 s
[really-safe-money] -- | Turn an amount of money into a 'Double'.
36.27 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:123:10-23
36.27 s
[really-safe-money] @@ -120,7 +120,7 @@
36.27 s
[really-safe-money] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
36.27 s
[really-safe-money] a :: Integer
36.27 s
[really-safe-money] a = (Prelude.abs :: Integer -> Integer) i
36.27 s
[really-safe-money] - in if a > maxBoundI
36.27 s
[really-safe-money] + in if True
36.27 s
[really-safe-money] then Nothing
36.27 s
[really-safe-money] else
36.27 s
[really-safe-money] let w :: Word64
36.27 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:123:10-23
36.27 s
[really-safe-money] @@ -120,7 +120,7 @@
36.27 s
[really-safe-money] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
36.27 s
[really-safe-money] a :: Integer
36.27 s
[really-safe-money] a = (Prelude.abs :: Integer -> Integer) i
36.27 s
[really-safe-money] - in if a > maxBoundI
36.27 s
[really-safe-money] + in if False
36.27 s
[really-safe-money] then Nothing
36.27 s
[really-safe-money] else
36.27 s
[really-safe-money] let w :: Word64
36.27 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:123:10-23
36.27 s
[really-safe-money] @@ -120,7 +120,7 @@
36.27 s
[really-safe-money] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
36.27 s
[really-safe-money] a :: Integer
36.27 s
[really-safe-money] a = (Prelude.abs :: Integer -> Integer) i
36.27 s
[really-safe-money] - in if a > maxBoundI
36.27 s
[really-safe-money] + in if not (a > maxBoundI)
36.27 s
[really-safe-money] then Nothing
36.27 s
[really-safe-money] else
36.27 s
[really-safe-money] let w :: Word64
36.27 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:131:25-26
36.27 s
[really-safe-money] @@ -128,7 +128,7 @@
36.27 s
[really-safe-money] amount :: Amount
36.27 s
[really-safe-money] amount = Amount.fromMinimalQuantisations w
36.27 s
[really-safe-money] in Just $
36.27 s
[really-safe-money] - if i >= 0
36.27 s
[really-safe-money] + if i >= 1
36.27 s
[really-safe-money] then Positive amount
36.27 s
[really-safe-money] else Negative amount
36.27 s
[really-safe-money]
36.27 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:131:20-26
36.27 s
[really-safe-money] @@ -128,7 +128,7 @@
36.27 s
[really-safe-money] amount :: Amount
36.27 s
[really-safe-money] amount = Amount.fromMinimalQuantisations w
36.27 s
[really-safe-money] in Just $
36.27 s
[really-safe-money] - if i >= 0
36.27 s
[really-safe-money] + if True
36.27 s
[really-safe-money] then Positive amount
36.27 s
[really-safe-money] else Negative amount
36.27 s
[really-safe-money]
36.27 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:131:20-26
36.27 s
[really-safe-money] @@ -128,7 +128,7 @@
36.27 s
[really-safe-money] amount :: Amount
36.27 s
[really-safe-money] amount = Amount.fromMinimalQuantisations w
36.27 s
[really-safe-money] in Just $
36.27 s
[really-safe-money] - if i >= 0
36.27 s
[really-safe-money] + if False
36.27 s
[really-safe-money] then Positive amount
36.27 s
[really-safe-money] else Negative amount
36.27 s
[really-safe-money]
36.27 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:131:20-26
36.27 s
[really-safe-money] @@ -128,7 +128,7 @@
36.27 s
[really-safe-money] amount :: Amount
36.27 s
[really-safe-money] amount = Amount.fromMinimalQuantisations w
36.27 s
[really-safe-money] in Just $
36.27 s
[really-safe-money] - if i >= 0
36.27 s
[really-safe-money] + if not (i >= 0)
36.27 s
[really-safe-money] then Positive amount
36.27 s
[really-safe-money] else Negative amount
36.27 s
[really-safe-money]
36.27 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:131:17-39
36.27 s
[really-safe-money] @@ -128,9 +128,9 @@
36.27 s
[really-safe-money] amount :: Amount
36.27 s
[really-safe-money] amount = Amount.fromMinimalQuantisations w
36.27 s
[really-safe-money] in Just $
36.27 s
[really-safe-money] - if i >= 0
36.27 s
[really-safe-money] - then Positive amount
36.27 s
[really-safe-money] - else Negative amount
36.27 s
[really-safe-money] + if i >= 0
36.27 s
[really-safe-money] + then Positive amount
36.27 s
[really-safe-money] + else Negative amount
36.27 s
[really-safe-money]
36.27 s
[really-safe-money] -- | Turn an amount into a positive account
36.27 s
[really-safe-money] --
36.27 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:123:7-39
36.27 s
[really-safe-money] @@ -120,17 +120,17 @@
36.27 s
[really-safe-money] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
36.27 s
[really-safe-money] a :: Integer
36.27 s
[really-safe-money] a = (Prelude.abs :: Integer -> Integer) i
36.27 s
[really-safe-money] - in if a > maxBoundI
36.27 s
[really-safe-money] - then Nothing
36.27 s
[really-safe-money] - else
36.27 s
[really-safe-money] - let w :: Word64
36.27 s
[really-safe-money] - w = (fromIntegral :: Integer -> Word64) a
36.27 s
[really-safe-money] - amount :: Amount
36.27 s
[really-safe-money] - amount = Amount.fromMinimalQuantisations w
36.27 s
[really-safe-money] - in Just $
36.27 s
[really-safe-money] - if i >= 0
36.27 s
[really-safe-money] - then Positive amount
36.27 s
[really-safe-money] - else Negative amount
36.27 s
[really-safe-money] + in if a > maxBoundI
36.27 s
[really-safe-money] + then Nothing
36.27 s
[really-safe-money] + else
36.27 s
[really-safe-money] + let w :: Word64
36.27 s
[really-safe-money] + w = (fromIntegral :: Integer -> Word64) a
36.27 s
[really-safe-money] + amount :: Amount
36.27 s
[really-safe-money] + amount = Amount.fromMinimalQuantisations w
36.27 s
[really-safe-money] + in Just $
36.27 s
[really-safe-money] + if i >= 0
36.27 s
[really-safe-money] + then Positive amount
36.27 s
[really-safe-money] + else Negative amount
36.27 s
[really-safe-money]
36.27 s
[really-safe-money] -- | Turn an amount into a positive account
36.27 s
[really-safe-money] --
36.27 s
[really-safe-money] added 66 mutations
37.02 s
[really-safe-money] [10 of 12] Compiling Money.MultiAccount ( src/Money/MultiAccount.hs, dist/build/Money/MultiAccount.o, dist/build/Money/MultiAccount.dyn_o )
37.03 s
[really-safe-money] mutation: instrumenting Money.MultiAccount
37.03 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
37.03 s
[really-safe-money] @@ -171,10 +171,10 @@
37.03 s
[really-safe-money] fmap
37.03 s
[really-safe-money] ( ( \theoreticalResult ->
37.03 s
[really-safe-money] let rounder :: Rational -> Integer
37.03 s
[really-safe-money] - rounder = case r of
37.03 s
[really-safe-money] - RoundUp -> ceiling
37.03 s
[really-safe-money] - RoundDown -> floor
37.03 s
[really-safe-money] - RoundNearest -> round
37.03 s
[really-safe-money] + rounder = case r of
37.03 s
[really-safe-money] + RoundUp -> ceiling
37.03 s
[really-safe-money] + RoundDown -> floor
37.03 s
[really-safe-money] + RoundNearest -> round
37.03 s
[really-safe-money] roundedResult :: Integer
37.03 s
[really-safe-money] roundedResult = rounder theoreticalResult
37.03 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
37.03 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
37.03 s
[really-safe-money] @@ -171,10 +171,10 @@
37.03 s
[really-safe-money] fmap
37.03 s
[really-safe-money] ( ( \theoreticalResult ->
37.03 s
[really-safe-money] let rounder :: Rational -> Integer
37.03 s
[really-safe-money] - rounder = case r of
37.03 s
[really-safe-money] - RoundUp -> ceiling
37.03 s
[really-safe-money] - RoundDown -> floor
37.03 s
[really-safe-money] - RoundNearest -> round
37.03 s
[really-safe-money] + rounder = case r of
37.03 s
[really-safe-money] + RoundUp -> ceiling
37.03 s
[really-safe-money] + RoundDown -> floor
37.03 s
[really-safe-money] + RoundNearest -> round
37.03 s
[really-safe-money] roundedResult :: Integer
37.03 s
[really-safe-money] roundedResult = rounder theoreticalResult
37.03 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
37.03 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
37.03 s
[really-safe-money] @@ -171,10 +171,10 @@
37.03 s
[really-safe-money] fmap
37.03 s
[really-safe-money] ( ( \theoreticalResult ->
37.03 s
[really-safe-money] let rounder :: Rational -> Integer
37.03 s
[really-safe-money] - rounder = case r of
37.03 s
[really-safe-money] - RoundUp -> ceiling
37.03 s
[really-safe-money] - RoundDown -> floor
37.03 s
[really-safe-money] - RoundNearest -> round
37.03 s
[really-safe-money] + rounder = case r of
37.03 s
[really-safe-money] + RoundUp -> ceiling
37.03 s
[really-safe-money] + RoundDown -> floor
37.03 s
[really-safe-money] + RoundNearest -> round
37.03 s
[really-safe-money] roundedResult :: Integer
37.03 s
[really-safe-money] roundedResult = rounder theoreticalResult
37.03 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
37.03 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
37.03 s
[really-safe-money] @@ -177,10 +177,10 @@
37.03 s
[really-safe-money] RoundNearest -> round
37.03 s
[really-safe-money] roundedResult :: Integer
37.03 s
[really-safe-money] roundedResult = rounder theoreticalResult
37.03 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
37.03 s
[really-safe-money] - LT -> RoundedDown
37.03 s
[really-safe-money] - EQ -> DidNotRound
37.03 s
[really-safe-money] - GT -> RoundedUp
37.03 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
37.04 s
[really-safe-money] + LT -> RoundedDown
37.04 s
[really-safe-money] + EQ -> DidNotRound
37.04 s
[really-safe-money] + GT -> RoundedUp
37.04 s
[really-safe-money] in (Account.fromMinimalQuantisations roundedResult, rounded)
37.04 s
[really-safe-money] )
37.04 s
[really-safe-money] . Prelude.sum
37.04 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
37.04 s
[really-safe-money] @@ -177,10 +177,10 @@
37.04 s
[really-safe-money] RoundNearest -> round
37.04 s
[really-safe-money] roundedResult :: Integer
37.04 s
[really-safe-money] roundedResult = rounder theoreticalResult
37.04 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
37.04 s
[really-safe-money] - LT -> RoundedDown
37.04 s
[really-safe-money] - EQ -> DidNotRound
37.04 s
[really-safe-money] - GT -> RoundedUp
37.04 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
37.04 s
[really-safe-money] + LT -> RoundedDown
37.04 s
[really-safe-money] + EQ -> DidNotRound
37.04 s
[really-safe-money] + GT -> RoundedUp
37.04 s
[really-safe-money] in (Account.fromMinimalQuantisations roundedResult, rounded)
37.04 s
[really-safe-money] )
37.04 s
[really-safe-money] . Prelude.sum
37.04 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
37.04 s
[really-safe-money] @@ -177,10 +177,10 @@
37.04 s
[really-safe-money] RoundNearest -> round
37.04 s
[really-safe-money] roundedResult :: Integer
37.04 s
[really-safe-money] roundedResult = rounder theoreticalResult
37.04 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
37.04 s
[really-safe-money] - LT -> RoundedDown
37.04 s
[really-safe-money] - EQ -> DidNotRound
37.04 s
[really-safe-money] - GT -> RoundedUp
37.04 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
37.04 s
[really-safe-money] + LT -> RoundedDown
37.04 s
[really-safe-money] + EQ -> DidNotRound
37.04 s
[really-safe-money] + GT -> RoundedUp
37.04 s
[really-safe-money] in (Account.fromMinimalQuantisations roundedResult, rounded)
37.04 s
[really-safe-money] )
37.04 s
[really-safe-money] . Prelude.sum
37.04 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:134:12-29
37.04 s
[really-safe-money] @@ -131,7 +131,7 @@
37.04 s
[really-safe-money] Just a -> do
37.04 s
[really-safe-money] r <- Account.subtract a account
37.04 s
[really-safe-money] Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] + if True
37.04 s
[really-safe-money] then M.delete currency m
37.04 s
[really-safe-money] else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:134:12-29
37.04 s
[really-safe-money] @@ -131,7 +131,7 @@
37.04 s
[really-safe-money] Just a -> do
37.04 s
[really-safe-money] r <- Account.subtract a account
37.04 s
[really-safe-money] Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] + if False
37.04 s
[really-safe-money] then M.delete currency m
37.04 s
[really-safe-money] else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] added mutation Negate at src/Money/MultiAccount.hs:134:12-29
37.04 s
[really-safe-money] @@ -131,7 +131,7 @@
37.04 s
[really-safe-money] Just a -> do
37.04 s
[really-safe-money] r <- Account.subtract a account
37.04 s
[really-safe-money] Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] + if not (r == Account.zero)
37.04 s
[really-safe-money] then M.delete currency m
37.04 s
[really-safe-money] else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAccount.hs:134:9-37
37.04 s
[really-safe-money] @@ -131,9 +131,9 @@
37.04 s
[really-safe-money] Just a -> do
37.04 s
[really-safe-money] r <- Account.subtract a account
37.04 s
[really-safe-money] Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] - then M.delete currency m
37.04 s
[really-safe-money] - else M.insert currency r m
37.04 s
[really-safe-money] + if r == Account.zero
37.04 s
[really-safe-money] + then M.delete currency m
37.04 s
[really-safe-money] + else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] -- | Try to convert every account to one currency.
37.04 s
[really-safe-money] --
37.04 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:129:23-37
37.04 s
[really-safe-money] @@ -126,14 +126,14 @@
37.04 s
[really-safe-money] subtractAccount m _ (Positive (Amount 0)) = Just m
37.04 s
[really-safe-money] subtractAccount m _ (Negative (Amount 0)) = Just m
37.04 s
[really-safe-money] subtractAccount (MultiAccount m) currency account =
37.04 s
[really-safe-money] - fmap MultiAccount $ case M.lookup currency m of
37.04 s
[really-safe-money] - Nothing -> Just $ M.insert currency (Account.negate account) m
37.04 s
[really-safe-money] - Just a -> do
37.04 s
[really-safe-money] - r <- Account.subtract a account
37.04 s
[really-safe-money] - Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] - then M.delete currency m
37.04 s
[really-safe-money] - else M.insert currency r m
37.04 s
[really-safe-money] + fmap MultiAccount $ case M.lookup currency m of
37.04 s
[really-safe-money] + Nothing -> Just $ M.insert currency (Account.negate account) m
37.04 s
[really-safe-money] + Just a -> do
37.04 s
[really-safe-money] + r <- Account.subtract a account
37.04 s
[really-safe-money] + Just $
37.04 s
[really-safe-money] + if r == Account.zero
37.04 s
[really-safe-money] + then M.delete currency m
37.04 s
[really-safe-money] + else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] -- | Try to convert every account to one currency.
37.04 s
[really-safe-money] --
37.04 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:129:23-37
37.04 s
[really-safe-money] @@ -126,14 +126,14 @@
37.04 s
[really-safe-money] subtractAccount m _ (Positive (Amount 0)) = Just m
37.04 s
[really-safe-money] subtractAccount m _ (Negative (Amount 0)) = Just m
37.04 s
[really-safe-money] subtractAccount (MultiAccount m) currency account =
37.04 s
[really-safe-money] - fmap MultiAccount $ case M.lookup currency m of
37.04 s
[really-safe-money] - Nothing -> Just $ M.insert currency (Account.negate account) m
37.04 s
[really-safe-money] - Just a -> do
37.04 s
[really-safe-money] - r <- Account.subtract a account
37.04 s
[really-safe-money] - Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] - then M.delete currency m
37.04 s
[really-safe-money] - else M.insert currency r m
37.04 s
[really-safe-money] + fmap MultiAccount $ case M.lookup currency m of
37.04 s
[really-safe-money] + Nothing -> Just $ M.insert currency (Account.negate account) m
37.04 s
[really-safe-money] + Just a -> do
37.04 s
[really-safe-money] + r <- Account.subtract a account
37.04 s
[really-safe-money] + Just $
37.04 s
[really-safe-money] + if r == Account.zero
37.04 s
[really-safe-money] + then M.delete currency m
37.04 s
[really-safe-money] + else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] -- | Try to convert every account to one currency.
37.04 s
[really-safe-money] --
37.04 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:120:12-29
37.04 s
[really-safe-money] @@ -117,7 +117,7 @@
37.04 s
[really-safe-money] Just a -> do
37.04 s
[really-safe-money] r <- Account.add a account
37.04 s
[really-safe-money] Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] + if True
37.04 s
[really-safe-money] then M.delete currency m
37.04 s
[really-safe-money] else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:120:12-29
37.04 s
[really-safe-money] @@ -117,7 +117,7 @@
37.04 s
[really-safe-money] Just a -> do
37.04 s
[really-safe-money] r <- Account.add a account
37.04 s
[really-safe-money] Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] + if False
37.04 s
[really-safe-money] then M.delete currency m
37.04 s
[really-safe-money] else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] added mutation Negate at src/Money/MultiAccount.hs:120:12-29
37.04 s
[really-safe-money] @@ -117,7 +117,7 @@
37.04 s
[really-safe-money] Just a -> do
37.04 s
[really-safe-money] r <- Account.add a account
37.04 s
[really-safe-money] Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] + if not (r == Account.zero)
37.04 s
[really-safe-money] then M.delete currency m
37.04 s
[really-safe-money] else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAccount.hs:120:9-37
37.04 s
[really-safe-money] @@ -117,9 +117,9 @@
37.04 s
[really-safe-money] Just a -> do
37.04 s
[really-safe-money] r <- Account.add a account
37.04 s
[really-safe-money] Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] - then M.delete currency m
37.04 s
[really-safe-money] - else M.insert currency r m
37.04 s
[really-safe-money] + if r == Account.zero
37.04 s
[really-safe-money] + then M.delete currency m
37.04 s
[really-safe-money] + else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] -- | Add an 'Account' to a 'MultiAccount'
37.04 s
[really-safe-money] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
37.04 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:115:23-37
37.04 s
[really-safe-money] @@ -112,14 +112,14 @@
37.04 s
[really-safe-money] addAccount m _ (Positive (Amount 0)) = Just m
37.04 s
[really-safe-money] addAccount m _ (Negative (Amount 0)) = Just m
37.04 s
[really-safe-money] addAccount (MultiAccount m) currency account =
37.04 s
[really-safe-money] - fmap MultiAccount $ case M.lookup currency m of
37.04 s
[really-safe-money] - Nothing -> Just $ M.insert currency account m
37.04 s
[really-safe-money] - Just a -> do
37.04 s
[really-safe-money] - r <- Account.add a account
37.04 s
[really-safe-money] - Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] - then M.delete currency m
37.04 s
[really-safe-money] - else M.insert currency r m
37.04 s
[really-safe-money] + fmap MultiAccount $ case M.lookup currency m of
37.04 s
[really-safe-money] + Nothing -> Just $ M.insert currency account m
37.04 s
[really-safe-money] + Just a -> do
37.04 s
[really-safe-money] + r <- Account.add a account
37.04 s
[really-safe-money] + Just $
37.04 s
[really-safe-money] + if r == Account.zero
37.04 s
[really-safe-money] + then M.delete currency m
37.04 s
[really-safe-money] + else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] -- | Add an 'Account' to a 'MultiAccount'
37.04 s
[really-safe-money] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
37.04 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:115:23-37
37.04 s
[really-safe-money] @@ -112,14 +112,14 @@
37.04 s
[really-safe-money] addAccount m _ (Positive (Amount 0)) = Just m
37.04 s
[really-safe-money] addAccount m _ (Negative (Amount 0)) = Just m
37.04 s
[really-safe-money] addAccount (MultiAccount m) currency account =
37.04 s
[really-safe-money] - fmap MultiAccount $ case M.lookup currency m of
37.04 s
[really-safe-money] - Nothing -> Just $ M.insert currency account m
37.04 s
[really-safe-money] - Just a -> do
37.04 s
[really-safe-money] - r <- Account.add a account
37.04 s
[really-safe-money] - Just $
37.04 s
[really-safe-money] - if r == Account.zero
37.04 s
[really-safe-money] - then M.delete currency m
37.04 s
[really-safe-money] - else M.insert currency r m
37.04 s
[really-safe-money] + fmap MultiAccount $ case M.lookup currency m of
37.04 s
[really-safe-money] + Nothing -> Just $ M.insert currency account m
37.04 s
[really-safe-money] + Just a -> do
37.04 s
[really-safe-money] + r <- Account.add a account
37.04 s
[really-safe-money] + Just $
37.04 s
[really-safe-money] + if r == Account.zero
37.04 s
[really-safe-money] + then M.delete currency m
37.04 s
[really-safe-money] + else M.insert currency r m
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] -- | Add an 'Account' to a 'MultiAccount'
37.04 s
[really-safe-money] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
37.04 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:78:6-28
37.04 s
[really-safe-money] @@ -75,7 +75,7 @@
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] fromAccount :: currency -> Account -> MultiAccount currency
37.04 s
[really-safe-money] fromAccount currency amount =
37.04 s
[really-safe-money] - if amount == Account.zero
37.04 s
[really-safe-money] + if True
37.04 s
[really-safe-money] then zero
37.04 s
[really-safe-money] else MultiAccount $ M.singleton currency amount
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:78:6-28
37.04 s
[really-safe-money] @@ -75,7 +75,7 @@
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] fromAccount :: currency -> Account -> MultiAccount currency
37.04 s
[really-safe-money] fromAccount currency amount =
37.04 s
[really-safe-money] - if amount == Account.zero
37.04 s
[really-safe-money] + if False
37.04 s
[really-safe-money] then zero
37.04 s
[really-safe-money] else MultiAccount $ M.singleton currency amount
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] added mutation Negate at src/Money/MultiAccount.hs:78:6-28
37.04 s
[really-safe-money] @@ -75,7 +75,7 @@
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] fromAccount :: currency -> Account -> MultiAccount currency
37.04 s
[really-safe-money] fromAccount currency amount =
37.04 s
[really-safe-money] - if amount == Account.zero
37.04 s
[really-safe-money] + if not (amount == Account.zero)
37.04 s
[really-safe-money] then zero
37.04 s
[really-safe-money] else MultiAccount $ M.singleton currency amount
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAccount.hs:78:3-52
37.04 s
[really-safe-money] @@ -75,9 +75,9 @@
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] fromAccount :: currency -> Account -> MultiAccount currency
37.04 s
[really-safe-money] fromAccount currency amount =
37.04 s
[really-safe-money] - if amount == Account.zero
37.04 s
[really-safe-money] - then zero
37.04 s
[really-safe-money] - else MultiAccount $ M.singleton currency amount
37.04 s
[really-safe-money] + if amount == Account.zero
37.04 s
[really-safe-money] + then zero
37.04 s
[really-safe-money] + else MultiAccount $ M.singleton currency amount
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] -- | No money of any currency
37.04 s
[really-safe-money] zero :: MultiAccount currency
37.04 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:69:13-30
37.04 s
[really-safe-money] @@ -66,7 +66,7 @@
37.04 s
[really-safe-money] [ genericValidate ma,
37.04 s
[really-safe-money] decorateMap m $ \_ a ->
37.04 s
[really-safe-money] declare "The account is not zero" $
37.04 s
[really-safe-money] - a /= Account.zero
37.04 s
[really-safe-money] + True
37.04 s
[really-safe-money] ]
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] -- TODO no empty currencies
37.04 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:69:13-30
37.04 s
[really-safe-money] @@ -66,7 +66,7 @@
37.04 s
[really-safe-money] [ genericValidate ma,
37.04 s
[really-safe-money] decorateMap m $ \_ a ->
37.04 s
[really-safe-money] declare "The account is not zero" $
37.04 s
[really-safe-money] - a /= Account.zero
37.04 s
[really-safe-money] + False
37.04 s
[really-safe-money] ]
37.04 s
[really-safe-money]
37.04 s
[really-safe-money] -- TODO no empty currencies
37.04 s
[really-safe-money] added mutation Negate at src/Money/MultiAccount.hs:69:13-30
37.04 s
[really-safe-money] @@ -66,7 +66,7 @@
37.04 s
[really-safe-money] [ genericValidate ma,
37.04 s
[really-safe-money] decorateMap m $ \_ a ->
37.04 s
[really-safe-money] declare "The account is not zero" $
37.04 s
[really-safe-money] - a /= Account.zero
37.04 s
[really-safe-money] + not (a /= Account.zero)
37.05 s
[really-safe-money] ]
37.05 s
[really-safe-money]
37.05 s
[really-safe-money] -- TODO no empty currencies
37.05 s
[really-safe-money] added mutation ListLit at src/Money/MultiAccount.hs:66:7-8
37.05 s
[really-safe-money] @@ -63,11 +63,7 @@
37.05 s
[really-safe-money] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
37.05 s
[really-safe-money] validate ma@(MultiAccount m) =
37.05 s
[really-safe-money] mconcat
37.05 s
[really-safe-money] - [ genericValidate ma,
37.05 s
[really-safe-money] - decorateMap m $ \_ a ->
37.05 s
[really-safe-money] - declare "The account is not zero" $
37.05 s
[really-safe-money] - a /= Account.zero
37.05 s
[really-safe-money] - ]
37.05 s
[really-safe-money] + []
37.05 s
[really-safe-money]
37.05 s
[really-safe-money] -- TODO no empty currencies
37.05 s
[really-safe-money]
37.05 s
[really-safe-money] added mutation ListLit at src/Money/MultiAccount.hs:66:7-8
37.05 s
[really-safe-money] @@ -63,11 +63,11 @@
37.05 s
[really-safe-money] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
37.05 s
[really-safe-money] validate ma@(MultiAccount m) =
37.05 s
[really-safe-money] mconcat
37.05 s
[really-safe-money] - [ genericValidate ma,
37.05 s
[really-safe-money] - decorateMap m $ \_ a ->
37.05 s
[really-safe-money] - declare "The account is not zero" $
37.05 s
[really-safe-money] - a /= Account.zero
37.05 s
[really-safe-money] - ]
37.05 s
[really-safe-money] + [ genericValidate ma,
37.05 s
[really-safe-money] + decorateMap m $ \_ a ->
37.05 s
[really-safe-money] + declare "The account is not zero" $
37.05 s
[really-safe-money] + a /= Account.zero
37.05 s
[really-safe-money] + ]
37.05 s
[really-safe-money]
37.05 s
[really-safe-money] -- TODO no empty currencies
37.05 s
[really-safe-money]
37.05 s
[really-safe-money] added 27 mutations
37.52 s
[really-safe-money] [11 of 12] Compiling Money.AccountOf ( src/Money/AccountOf.hs, dist/build/Money/AccountOf.o, dist/build/Money/AccountOf.dyn_o )
37.77 s
[really-safe-money] mutation: instrumenting Money.AccountOf
37.77 s
[really-safe-money] added mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
37.77 s
[really-safe-money] @@ -177,11 +177,11 @@
37.77 s
[really-safe-money]
37.77 s
[really-safe-money] -- | See 'Account.distribute'
37.77 s
[really-safe-money] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
37.77 s
[really-safe-money] -distribute (AccountOf a) w = case Account.distribute a w of
37.77 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
37.77 s
[really-safe-money] - DistributedZero -> DistributedZero
37.77 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
37.77 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
37.77 s
[really-safe-money] +distribute (AccountOf a) w = case Account.distribute a w of
37.77 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
37.77 s
[really-safe-money] + DistributedZero -> DistributedZero
37.77 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
37.78 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
37.78 s
[really-safe-money]
37.78 s
[really-safe-money] -- | The result of 'distribute'
37.78 s
[really-safe-money] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
37.78 s
[really-safe-money] added mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
37.78 s
[really-safe-money] @@ -177,11 +177,11 @@
37.78 s
[really-safe-money]
37.78 s
[really-safe-money] -- | See 'Account.distribute'
37.78 s
[really-safe-money] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
37.78 s
[really-safe-money] -distribute (AccountOf a) w = case Account.distribute a w of
37.78 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
37.78 s
[really-safe-money] - DistributedZero -> DistributedZero
37.78 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
37.78 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
37.78 s
[really-safe-money] +distribute (AccountOf a) w = case Account.distribute a w of
37.78 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
37.78 s
[really-safe-money] + DistributedZero -> DistributedZero
37.78 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
37.78 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
37.78 s
[really-safe-money]
37.78 s
[really-safe-money] -- | The result of 'distribute'
37.78 s
[really-safe-money] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
37.78 s
[really-safe-money] added mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
37.78 s
[really-safe-money] @@ -177,11 +177,11 @@
37.78 s
[really-safe-money]
37.78 s
[really-safe-money] -- | See 'Account.distribute'
37.78 s
[really-safe-money] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
37.78 s
[really-safe-money] -distribute (AccountOf a) w = case Account.distribute a w of
37.78 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
37.78 s
[really-safe-money] - DistributedZero -> DistributedZero
37.78 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
37.78 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
37.78 s
[really-safe-money] +distribute (AccountOf a) w = case Account.distribute a w of
37.78 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
37.78 s
[really-safe-money] + DistributedZero -> DistributedZero
37.78 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
37.78 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
37.78 s
[really-safe-money]
37.78 s
[really-safe-money] -- | The result of 'distribute'
37.78 s
[really-safe-money] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
37.78 s
[really-safe-money] added mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
37.78 s
[really-safe-money] @@ -177,11 +177,11 @@
37.78 s
[really-safe-money]
37.78 s
[really-safe-money] -- | See 'Account.distribute'
37.78 s
[really-safe-money] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
37.78 s
[really-safe-money] -distribute (AccountOf a) w = case Account.distribute a w of
37.78 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
37.78 s
[really-safe-money] - DistributedZero -> DistributedZero
37.78 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
37.78 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
37.78 s
[really-safe-money] +distribute (AccountOf a) w = case Account.distribute a w of
37.78 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
37.78 s
[really-safe-money] + DistributedZero -> DistributedZero
37.78 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
37.78 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
37.78 s
[really-safe-money]
37.78 s
[really-safe-money] -- | The result of 'distribute'
37.78 s
[really-safe-money] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
37.78 s
[really-safe-money] added 4 mutations
37.78 s
[really-safe-money] [12 of 12] Compiling Paths_really_safe_money ( dist/build/autogen/Paths_really_safe_money.hs, dist/build/Paths_really_safe_money.o, dist/build/Paths_really_safe_money.dyn_o )
38.16 s
[really-safe-money] [ 1 of 12] Compiling Numeric.DecimalLiteral ( src/Numeric/DecimalLiteral.hs, dist/build/Numeric/DecimalLiteral.p_o )
38.59 s
[really-safe-money] mutation: instrumenting Numeric.DecimalLiteral
38.59 s
[really-safe-money] added mutation BoolLit at src/Numeric/DecimalLiteral.hs:396:23-27
38.59 s
[really-safe-money] @@ -393,5 +393,5 @@
38.59 s
[really-safe-money] DecimalLiteral mS m e -> DecimalLiteral (go mS) m e
38.59 s
[really-safe-money] where
38.59 s
[really-safe-money] go = \case
38.59 s
[really-safe-money] - Nothing -> Just True
38.59 s
[really-safe-money] + Nothing -> Just False
38.59 s
[really-safe-money] s -> s
38.59 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:368:10-39
38.59 s
[really-safe-money] @@ -365,7 +365,7 @@
38.59 s
[really-safe-money] setMinimumDigits wantedDigits dl =
38.59 s
[really-safe-money] let currentDigits :: Word8
38.59 s
[really-safe-money] currentDigits = digits dl
38.59 s
[really-safe-money] - in if wantedDigits <= currentDigits
38.59 s
[really-safe-money] + in if True
38.59 s
[really-safe-money] then dl
38.59 s
[really-safe-money] else increaseDigits (wantedDigits - currentDigits) dl
38.59 s
[really-safe-money] where
38.59 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:368:10-39
38.59 s
[really-safe-money] @@ -365,7 +365,7 @@
38.59 s
[really-safe-money] setMinimumDigits wantedDigits dl =
38.59 s
[really-safe-money] let currentDigits :: Word8
38.59 s
[really-safe-money] currentDigits = digits dl
38.59 s
[really-safe-money] - in if wantedDigits <= currentDigits
38.59 s
[really-safe-money] + in if False
38.59 s
[really-safe-money] then dl
38.59 s
[really-safe-money] else increaseDigits (wantedDigits - currentDigits) dl
38.59 s
[really-safe-money] where
38.59 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:368:10-39
38.59 s
[really-safe-money] @@ -365,7 +365,7 @@
38.59 s
[really-safe-money] setMinimumDigits wantedDigits dl =
38.59 s
[really-safe-money] let currentDigits :: Word8
38.59 s
[really-safe-money] currentDigits = digits dl
38.59 s
[really-safe-money] - in if wantedDigits <= currentDigits
38.59 s
[really-safe-money] + in if not (wantedDigits <= currentDigits)
38.59 s
[really-safe-money] then dl
38.59 s
[really-safe-money] else increaseDigits (wantedDigits - currentDigits) dl
38.59 s
[really-safe-money] where
38.59 s
[really-safe-money] added mutation CondFlip at src/Numeric/DecimalLiteral.hs:368:7-62
38.59 s
[really-safe-money] @@ -365,9 +365,9 @@
38.59 s
[really-safe-money] setMinimumDigits wantedDigits dl =
38.59 s
[really-safe-money] let currentDigits :: Word8
38.59 s
[really-safe-money] currentDigits = digits dl
38.59 s
[really-safe-money] - in if wantedDigits <= currentDigits
38.59 s
[really-safe-money] - then dl
38.59 s
[really-safe-money] - else increaseDigits (wantedDigits - currentDigits) dl
38.59 s
[really-safe-money] + in if wantedDigits <= currentDigits
38.59 s
[really-safe-money] + then dl
38.59 s
[really-safe-money] + else increaseDigits (wantedDigits - currentDigits) dl
38.59 s
[really-safe-money] where
38.59 s
[really-safe-money] increaseDigits :: Word8 -> DecimalLiteral -> DecimalLiteral
38.59 s
[really-safe-money] increaseDigits 0 = id
38.59 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:375:80-82
38.59 s
[really-safe-money] @@ -372,7 +372,7 @@
38.59 s
[really-safe-money] increaseDigits :: Word8 -> DecimalLiteral -> DecimalLiteral
38.59 s
[really-safe-money] increaseDigits 0 = id
38.59 s
[really-safe-money] increaseDigits w = \case
38.60 s
[really-safe-money] - DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 10) (succ e))
38.60 s
[really-safe-money] + DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 0) (succ e))
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] -- | Ensures that a positive literal has no sign
38.60 s
[really-safe-money] --
38.60 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:375:80-82
38.60 s
[really-safe-money] @@ -372,7 +372,7 @@
38.60 s
[really-safe-money] increaseDigits :: Word8 -> DecimalLiteral -> DecimalLiteral
38.60 s
[really-safe-money] increaseDigits 0 = id
38.60 s
[really-safe-money] increaseDigits w = \case
38.60 s
[really-safe-money] - DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 10) (succ e))
38.60 s
[really-safe-money] + DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 1) (succ e))
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] -- | Ensures that a positive literal has no sign
38.60 s
[really-safe-money] --
38.60 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:337:21-22
38.60 s
[really-safe-money] @@ -334,7 +334,7 @@
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
38.60 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
38.60 s
[really-safe-money] +numSign a = if a >= 1 then Nothing else Just False
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
38.60 s
[really-safe-money] signSignum = \case
38.60 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:337:16-22
38.60 s
[really-safe-money] @@ -334,7 +334,7 @@
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
38.60 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
38.60 s
[really-safe-money] +numSign a = if True then Nothing else Just False
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
38.60 s
[really-safe-money] signSignum = \case
38.60 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:337:16-22
38.60 s
[really-safe-money] @@ -334,7 +334,7 @@
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
38.60 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
38.60 s
[really-safe-money] +numSign a = if False then Nothing else Just False
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
38.60 s
[really-safe-money] signSignum = \case
38.60 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:337:16-22
38.60 s
[really-safe-money] @@ -334,7 +334,7 @@
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
38.60 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
38.60 s
[really-safe-money] +numSign a = if not (a >= 0) then Nothing else Just False
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
38.60 s
[really-safe-money] signSignum = \case
38.60 s
[really-safe-money] added mutation BoolLit at src/Numeric/DecimalLiteral.hs:337:46-51
38.60 s
[really-safe-money] @@ -334,7 +334,7 @@
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
38.60 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
38.60 s
[really-safe-money] +numSign a = if a >= 0 then Nothing else Just True
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
38.60 s
[really-safe-money] signSignum = \case
38.60 s
[really-safe-money] added mutation CondFlip at src/Numeric/DecimalLiteral.hs:337:13-51
38.60 s
[really-safe-money] @@ -334,7 +334,7 @@
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
38.60 s
[really-safe-money] -numSign a = if a >= 0 then Nothing else Just False
38.60 s
[really-safe-money] +numSign a = if a >= 0 then Nothing else Just False
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] signSignum :: (Num a) => Maybe Bool -> (a -> a)
38.60 s
[really-safe-money] signSignum = \case
38.60 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:332:11-46
38.60 s
[really-safe-money] @@ -329,7 +329,7 @@
38.60 s
[really-safe-money] toInt :: DecimalLiteral -> Maybe Int
38.60 s
[really-safe-money] toInt dl = do
38.60 s
[really-safe-money] n <- toInteger dl
38.60 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Int)
38.60 s
[really-safe-money] + guard $ True
38.60 s
[really-safe-money] guard $ n >= fromIntegral (minBound :: Int)
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:332:11-46
38.60 s
[really-safe-money] @@ -329,7 +329,7 @@
38.60 s
[really-safe-money] toInt :: DecimalLiteral -> Maybe Int
38.60 s
[really-safe-money] toInt dl = do
38.60 s
[really-safe-money] n <- toInteger dl
38.60 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Int)
38.60 s
[really-safe-money] + guard $ False
38.60 s
[really-safe-money] guard $ n >= fromIntegral (minBound :: Int)
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:332:11-46
38.60 s
[really-safe-money] @@ -329,7 +329,7 @@
38.60 s
[really-safe-money] toInt :: DecimalLiteral -> Maybe Int
38.60 s
[really-safe-money] toInt dl = do
38.60 s
[really-safe-money] n <- toInteger dl
38.60 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Int)
38.60 s
[really-safe-money] + guard $ not (n <= fromIntegral (maxBound :: Int))
38.60 s
[really-safe-money] guard $ n >= fromIntegral (minBound :: Int)
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:333:11-46
38.60 s
[really-safe-money] @@ -330,7 +330,7 @@
38.60 s
[really-safe-money] toInt dl = do
38.60 s
[really-safe-money] n <- toInteger dl
38.60 s
[really-safe-money] guard $ n <= fromIntegral (maxBound :: Int)
38.60 s
[really-safe-money] - guard $ n >= fromIntegral (minBound :: Int)
38.60 s
[really-safe-money] + guard $ True
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
38.60 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:333:11-46
38.60 s
[really-safe-money] @@ -330,7 +330,7 @@
38.60 s
[really-safe-money] toInt dl = do
38.60 s
[really-safe-money] n <- toInteger dl
38.60 s
[really-safe-money] guard $ n <= fromIntegral (maxBound :: Int)
38.60 s
[really-safe-money] - guard $ n >= fromIntegral (minBound :: Int)
38.60 s
[really-safe-money] + guard $ False
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
38.60 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:333:11-46
38.60 s
[really-safe-money] @@ -330,7 +330,7 @@
38.60 s
[really-safe-money] toInt dl = do
38.60 s
[really-safe-money] n <- toInteger dl
38.60 s
[really-safe-money] guard $ n <= fromIntegral (maxBound :: Int)
38.60 s
[really-safe-money] - guard $ n >= fromIntegral (minBound :: Int)
38.60 s
[really-safe-money] + guard $ not (n >= fromIntegral (minBound :: Int))
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] numSign :: (Ord a, Num a) => a -> Maybe Bool
38.60 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:315:67-68
38.60 s
[really-safe-money] @@ -312,7 +312,7 @@
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from an 'Integer'
38.60 s
[really-safe-money] fromInteger :: Integer -> DecimalLiteral
38.60 s
[really-safe-money] -fromInteger n = DecimalLiteral (numSign n) (fromIntegral (abs n)) 0
38.60 s
[really-safe-money] +fromInteger n = DecimalLiteral (numSign n) (fromIntegral (abs n)) 1
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into an 'Integer'
38.60 s
[really-safe-money] toInteger :: DecimalLiteral -> Maybe Integer
38.60 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:304:42-43
38.60 s
[really-safe-money] @@ -301,7 +301,7 @@
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Natural'
38.60 s
[really-safe-money] fromNatural :: Natural -> DecimalLiteral
38.60 s
[really-safe-money] -fromNatural n = DecimalLiteral Nothing n 0
38.60 s
[really-safe-money] +fromNatural n = DecimalLiteral Nothing n 1
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into a 'Natural'
38.60 s
[really-safe-money] toNatural :: DecimalLiteral -> Maybe Natural
38.60 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:299:11-47
38.60 s
[really-safe-money] @@ -296,7 +296,7 @@
38.60 s
[really-safe-money] toWord :: DecimalLiteral -> Maybe Word
38.60 s
[really-safe-money] toWord dl = do
38.60 s
[really-safe-money] n <- toNatural dl
38.60 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Word)
38.60 s
[really-safe-money] + guard $ True
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Natural'
38.60 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:299:11-47
38.60 s
[really-safe-money] @@ -296,7 +296,7 @@
38.60 s
[really-safe-money] toWord :: DecimalLiteral -> Maybe Word
38.60 s
[really-safe-money] toWord dl = do
38.60 s
[really-safe-money] n <- toNatural dl
38.60 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Word)
38.60 s
[really-safe-money] + guard $ False
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Natural'
38.60 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:299:11-47
38.60 s
[really-safe-money] @@ -296,7 +296,7 @@
38.60 s
[really-safe-money] toWord :: DecimalLiteral -> Maybe Word
38.60 s
[really-safe-money] toWord dl = do
38.60 s
[really-safe-money] n <- toNatural dl
38.60 s
[really-safe-money] - guard $ n <= fromIntegral (maxBound :: Word)
38.60 s
[really-safe-money] + guard $ not (n <= fromIntegral (maxBound :: Word))
38.60 s
[really-safe-money] pure $ fromIntegral n
38.60 s
[really-safe-money]
38.60 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Natural'
38.60 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
38.60 s
[really-safe-money] @@ -286,7 +286,7 @@
38.60 s
[really-safe-money] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
38.60 s
[really-safe-money] toRatio (DecimalLiteral mSign m e) = case mSign of
38.60 s
[really-safe-money] Just False -> Nothing
38.60 s
[really-safe-money] - _ -> Just $ fromIntegral m / (10 ^ e)
38.60 s
[really-safe-money] + _ -> Just $ fromIntegral m / (0 ^ e)
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Word'
38.61 s
[really-safe-money] fromWord :: Word -> DecimalLiteral
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
38.61 s
[really-safe-money] @@ -286,7 +286,7 @@
38.61 s
[really-safe-money] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
38.61 s
[really-safe-money] toRatio (DecimalLiteral mSign m e) = case mSign of
38.61 s
[really-safe-money] Just False -> Nothing
38.61 s
[really-safe-money] - _ -> Just $ fromIntegral m / (10 ^ e)
38.61 s
[really-safe-money] + _ -> Just $ fromIntegral m / (1 ^ e)
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Word'
38.61 s
[really-safe-money] fromWord :: Word -> DecimalLiteral
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
38.61 s
[really-safe-money] @@ -286,7 +286,7 @@
38.61 s
[really-safe-money] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
38.61 s
[really-safe-money] toRatio (DecimalLiteral mSign m e) = case mSign of
38.61 s
[really-safe-money] Just False -> Nothing
38.61 s
[really-safe-money] - _ -> Just $ fromIntegral m / (10 ^ e)
38.61 s
[really-safe-money] + _ -> Just $ fromIntegral m / (-10 ^ e)
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Word'
38.61 s
[really-safe-money] fromWord :: Word -> DecimalLiteral
38.61 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:287:38-40
38.61 s
[really-safe-money] @@ -284,9 +284,9 @@
38.61 s
[really-safe-money] -- >>> toRatio (DecimalLiteral (Just False) 3 1)
38.61 s
[really-safe-money] -- Nothing
38.61 s
[really-safe-money] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
38.61 s
[really-safe-money] -toRatio (DecimalLiteral mSign m e) = case mSign of
38.61 s
[really-safe-money] - Just False -> Nothing
38.61 s
[really-safe-money] - _ -> Just $ fromIntegral m / (10 ^ e)
38.61 s
[really-safe-money] +toRatio (DecimalLiteral mSign m e) = case mSign of
38.61 s
[really-safe-money] + Just False -> Nothing
38.61 s
[really-safe-money] + _ -> Just $ fromIntegral m / (10 ^ e)
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Word'
38.61 s
[really-safe-money] fromWord :: Word -> DecimalLiteral
38.61 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:287:38-40
38.61 s
[really-safe-money] @@ -284,9 +284,9 @@
38.61 s
[really-safe-money] -- >>> toRatio (DecimalLiteral (Just False) 3 1)
38.61 s
[really-safe-money] -- Nothing
38.61 s
[really-safe-money] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
38.61 s
[really-safe-money] -toRatio (DecimalLiteral mSign m e) = case mSign of
38.61 s
[really-safe-money] - Just False -> Nothing
38.61 s
[really-safe-money] - _ -> Just $ fromIntegral m / (10 ^ e)
38.61 s
[really-safe-money] +toRatio (DecimalLiteral mSign m e) = case mSign of
38.61 s
[really-safe-money] + Just False -> Nothing
38.61 s
[really-safe-money] + _ -> Just $ fromIntegral m / (10 ^ e)
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] -- | Construct a 'DecimalLiteral' from a 'Word'
38.61 s
[really-safe-money] fromWord :: Word -> DecimalLiteral
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:236:41-44
38.61 s
[really-safe-money] @@ -233,7 +233,7 @@
38.61 s
[really-safe-money] -- >>> fromRatio (1 % 3)
38.61 s
[really-safe-money] -- Nothing
38.61 s
[really-safe-money] fromRatio :: Ratio Natural -> Maybe DecimalLiteral
38.61 s
[really-safe-money] -fromRatio = fromRationalRepetendLimited 256
38.61 s
[really-safe-money] +fromRatio = fromRationalRepetendLimited 0
38.61 s
[really-safe-money] where
38.61 s
[really-safe-money] fromRationalRepetendLimited ::
38.61 s
[really-safe-money] -- limit
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:236:41-44
38.61 s
[really-safe-money] @@ -233,7 +233,7 @@
38.61 s
[really-safe-money] -- >>> fromRatio (1 % 3)
38.61 s
[really-safe-money] -- Nothing
38.61 s
[really-safe-money] fromRatio :: Ratio Natural -> Maybe DecimalLiteral
38.61 s
[really-safe-money] -fromRatio = fromRationalRepetendLimited 256
38.61 s
[really-safe-money] +fromRatio = fromRationalRepetendLimited 1
38.61 s
[really-safe-money] where
38.61 s
[really-safe-money] fromRationalRepetendLimited ::
38.61 s
[really-safe-money] -- limit
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:236:41-44
38.61 s
[really-safe-money] @@ -233,7 +233,7 @@
38.61 s
[really-safe-money] -- >>> fromRatio (1 % 3)
38.61 s
[really-safe-money] -- Nothing
38.61 s
[really-safe-money] fromRatio :: Ratio Natural -> Maybe DecimalLiteral
38.61 s
[really-safe-money] -fromRatio = fromRationalRepetendLimited 256
38.61 s
[really-safe-money] +fromRatio = fromRationalRepetendLimited -256
38.61 s
[really-safe-money] where
38.61 s
[really-safe-money] fromRationalRepetendLimited ::
38.61 s
[really-safe-money] -- limit
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:244:14-15
38.61 s
[really-safe-money] @@ -241,7 +241,7 @@
38.61 s
[really-safe-money] Ratio Natural ->
38.61 s
[really-safe-money] Maybe DecimalLiteral
38.61 s
[really-safe-money] fromRationalRepetendLimited l rational
38.61 s
[really-safe-money] - | d == 0 = Nothing
38.61 s
[really-safe-money] + | d == 1 = Nothing
38.61 s
[really-safe-money] | otherwise = toLiteral Nothing <$> longDiv num
38.61 s
[really-safe-money] where
38.61 s
[really-safe-money] toLiteral mSign (m, e) = DecimalLiteral mSign m (fromIntegral e)
38.61 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:244:9-15
38.61 s
[really-safe-money] @@ -241,7 +241,7 @@
38.61 s
[really-safe-money] Ratio Natural ->
38.61 s
[really-safe-money] Maybe DecimalLiteral
38.61 s
[really-safe-money] fromRationalRepetendLimited l rational
38.61 s
[really-safe-money] - | d == 0 = Nothing
38.61 s
[really-safe-money] + | True = Nothing
38.61 s
[really-safe-money] | otherwise = toLiteral Nothing <$> longDiv num
38.61 s
[really-safe-money] where
38.61 s
[really-safe-money] toLiteral mSign (m, e) = DecimalLiteral mSign m (fromIntegral e)
38.61 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:244:9-15
38.61 s
[really-safe-money] @@ -241,7 +241,7 @@
38.61 s
[really-safe-money] Ratio Natural ->
38.61 s
[really-safe-money] Maybe DecimalLiteral
38.61 s
[really-safe-money] fromRationalRepetendLimited l rational
38.61 s
[really-safe-money] - | d == 0 = Nothing
38.61 s
[really-safe-money] + | not (d == 0) = Nothing
38.61 s
[really-safe-money] | otherwise = toLiteral Nothing <$> longDiv num
38.61 s
[really-safe-money] where
38.61 s
[really-safe-money] toLiteral mSign (m, e) = DecimalLiteral mSign m (fromIntegral e)
38.61 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:264:13-26
38.61 s
[really-safe-money] @@ -261,7 +261,7 @@
38.61 s
[really-safe-money] Just (c, e)
38.61 s
[really-safe-money] longDivWithLimit !c !e ns !n
38.61 s
[really-safe-money] -- If there's a repetend, we can't turn it into a decimal literal
38.61 s
[really-safe-money] - | S.member n ns = Nothing
38.61 s
[really-safe-money] + | True = Nothing
38.61 s
[really-safe-money] -- Over the limit, stop trying
38.61 s
[really-safe-money] | e >= l = Nothing
38.61 s
[really-safe-money] | n < d =
38.61 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:264:13-26
38.61 s
[really-safe-money] @@ -261,7 +261,7 @@
38.61 s
[really-safe-money] Just (c, e)
38.61 s
[really-safe-money] longDivWithLimit !c !e ns !n
38.61 s
[really-safe-money] -- If there's a repetend, we can't turn it into a decimal literal
38.61 s
[really-safe-money] - | S.member n ns = Nothing
38.61 s
[really-safe-money] + | not (S.member n ns) = Nothing
38.61 s
[really-safe-money] -- Over the limit, stop trying
38.61 s
[really-safe-money] | e >= l = Nothing
38.61 s
[really-safe-money] | n < d =
38.61 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:266:13-19
38.61 s
[really-safe-money] @@ -263,7 +263,7 @@
38.61 s
[really-safe-money] -- If there's a repetend, we can't turn it into a decimal literal
38.61 s
[really-safe-money] | S.member n ns = Nothing
38.61 s
[really-safe-money] -- Over the limit, stop trying
38.61 s
[really-safe-money] - | e >= l = Nothing
38.61 s
[really-safe-money] + | True = Nothing
38.61 s
[really-safe-money] | n < d =
38.61 s
[really-safe-money] let !ns' = S.insert n ns
38.61 s
[really-safe-money] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
38.61 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:266:13-19
38.61 s
[really-safe-money] @@ -263,7 +263,7 @@
38.61 s
[really-safe-money] -- If there's a repetend, we can't turn it into a decimal literal
38.61 s
[really-safe-money] | S.member n ns = Nothing
38.61 s
[really-safe-money] -- Over the limit, stop trying
38.61 s
[really-safe-money] - | e >= l = Nothing
38.61 s
[really-safe-money] + | not (e >= l) = Nothing
38.61 s
[really-safe-money] | n < d =
38.61 s
[really-safe-money] let !ns' = S.insert n ns
38.61 s
[really-safe-money] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
38.61 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:267:13-18
38.61 s
[really-safe-money] @@ -264,7 +264,7 @@
38.61 s
[really-safe-money] | S.member n ns = Nothing
38.61 s
[really-safe-money] -- Over the limit, stop trying
38.61 s
[really-safe-money] | e >= l = Nothing
38.61 s
[really-safe-money] - | n < d =
38.61 s
[really-safe-money] + | True =
38.61 s
[really-safe-money] let !ns' = S.insert n ns
38.61 s
[really-safe-money] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
38.61 s
[really-safe-money] | otherwise =
38.61 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:267:13-18
38.61 s
[really-safe-money] @@ -264,7 +264,7 @@
38.61 s
[really-safe-money] | S.member n ns = Nothing
38.61 s
[really-safe-money] -- Over the limit, stop trying
38.61 s
[really-safe-money] | e >= l = Nothing
38.61 s
[really-safe-money] - | n < d =
38.61 s
[really-safe-money] + | not (n < d) =
38.61 s
[really-safe-money] let !ns' = S.insert n ns
38.61 s
[really-safe-money] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
38.61 s
[really-safe-money] | otherwise =
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:269:41-43
38.61 s
[really-safe-money] @@ -266,7 +266,7 @@
38.61 s
[really-safe-money] | e >= l = Nothing
38.61 s
[really-safe-money] | n < d =
38.61 s
[really-safe-money] let !ns' = S.insert n ns
38.61 s
[really-safe-money] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
38.61 s
[really-safe-money] + in longDivWithLimit (c * 0) (succ e) ns' (n * 10)
38.61 s
[really-safe-money] | otherwise =
38.61 s
[really-safe-money] let (q, r') = n `quotRem` d
38.61 s
[really-safe-money] in longDivWithLimit (c + q) e ns r'
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:269:41-43
38.61 s
[really-safe-money] @@ -266,7 +266,7 @@
38.61 s
[really-safe-money] | e >= l = Nothing
38.61 s
[really-safe-money] | n < d =
38.61 s
[really-safe-money] let !ns' = S.insert n ns
38.61 s
[really-safe-money] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
38.61 s
[really-safe-money] + in longDivWithLimit (c * 1) (succ e) ns' (n * 10)
38.61 s
[really-safe-money] | otherwise =
38.61 s
[really-safe-money] let (q, r') = n `quotRem` d
38.61 s
[really-safe-money] in longDivWithLimit (c + q) e ns r'
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:269:63-65
38.61 s
[really-safe-money] @@ -266,7 +266,7 @@
38.61 s
[really-safe-money] | e >= l = Nothing
38.61 s
[really-safe-money] | n < d =
38.61 s
[really-safe-money] let !ns' = S.insert n ns
38.61 s
[really-safe-money] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
38.61 s
[really-safe-money] + in longDivWithLimit (c * 10) (succ e) ns' (n * 0)
38.61 s
[really-safe-money] | otherwise =
38.61 s
[really-safe-money] let (q, r') = n `quotRem` d
38.61 s
[really-safe-money] in longDivWithLimit (c + q) e ns r'
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:269:63-65
38.61 s
[really-safe-money] @@ -266,7 +266,7 @@
38.61 s
[really-safe-money] | e >= l = Nothing
38.61 s
[really-safe-money] | n < d =
38.61 s
[really-safe-money] let !ns' = S.insert n ns
38.61 s
[really-safe-money] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
38.61 s
[really-safe-money] + in longDivWithLimit (c * 10) (succ e) ns' (n * 1)
38.61 s
[really-safe-money] | otherwise =
38.61 s
[really-safe-money] let (q, r') = n `quotRem` d
38.61 s
[really-safe-money] in longDivWithLimit (c + q) e ns r'
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:252:36-37
38.61 s
[really-safe-money] @@ -249,7 +249,7 @@
38.61 s
[really-safe-money] num = numerator rational
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] longDiv :: Natural -> Maybe (Natural, Int)
38.61 s
[really-safe-money] - longDiv = longDivWithLimit 0 0 S.empty
38.61 s
[really-safe-money] + longDiv = longDivWithLimit 1 0 S.empty
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] longDivWithLimit ::
38.61 s
[really-safe-money] Natural ->
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:252:38-39
38.61 s
[really-safe-money] @@ -249,7 +249,7 @@
38.61 s
[really-safe-money] num = numerator rational
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] longDiv :: Natural -> Maybe (Natural, Int)
38.61 s
[really-safe-money] - longDiv = longDivWithLimit 0 0 S.empty
38.61 s
[really-safe-money] + longDiv = longDivWithLimit 0 1 S.empty
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] longDivWithLimit ::
38.61 s
[really-safe-money] Natural ->
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:223:39-41
38.61 s
[really-safe-money] @@ -220,7 +220,7 @@
38.61 s
[really-safe-money] -- (-3) % 10
38.61 s
[really-safe-money] toRational :: DecimalLiteral -> Rational
38.61 s
[really-safe-money] toRational (DecimalLiteral mSign m e) =
38.61 s
[really-safe-money] - signSignum mSign (fromIntegral m / (10 ^ e))
38.61 s
[really-safe-money] + signSignum mSign (fromIntegral m / (0 ^ e))
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] -- | Parse a 'DecimalLiteral' from a 'Ratio Natural'
38.61 s
[really-safe-money] --
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:223:39-41
38.61 s
[really-safe-money] @@ -220,7 +220,7 @@
38.61 s
[really-safe-money] -- (-3) % 10
38.61 s
[really-safe-money] toRational :: DecimalLiteral -> Rational
38.61 s
[really-safe-money] toRational (DecimalLiteral mSign m e) =
38.61 s
[really-safe-money] - signSignum mSign (fromIntegral m / (10 ^ e))
38.61 s
[really-safe-money] + signSignum mSign (fromIntegral m / (1 ^ e))
38.61 s
[really-safe-money]
38.61 s
[really-safe-money] -- | Parse a 'DecimalLiteral' from a 'Ratio Natural'
38.61 s
[really-safe-money] --
38.61 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:223:39-41
38.61 s
[really-safe-money] @@ -220,7 +220,7 @@
38.61 s
[really-safe-money] -- (-3) % 10
38.61 s
[really-safe-money] toRational :: DecimalLiteral -> Rational
38.61 s
[really-safe-money] toRational (DecimalLiteral mSign m e) =
38.61 s
[really-safe-money] - signSignum mSign (fromIntegral m / (10 ^ e))
38.61 s
[really-safe-money] + signSignum mSign (fromIntegral m / (-10 ^ e))
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] -- | Parse a 'DecimalLiteral' from a 'Ratio Natural'
38.62 s
[really-safe-money] --
38.62 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:208:9-10
38.62 s
[really-safe-money] @@ -205,7 +205,7 @@
38.62 s
[really-safe-money] -- Nothing
38.62 s
[really-safe-money] fromRational :: Rational -> Maybe DecimalLiteral
38.62 s
[really-safe-money] fromRational (n :% d)
38.62 s
[really-safe-money] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
38.62 s
[really-safe-money] + | n < 1 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
38.62 s
[really-safe-money] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into a 'Rational'
38.62 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:208:5-10
38.62 s
[really-safe-money] @@ -205,7 +205,7 @@
38.62 s
[really-safe-money] -- Nothing
38.62 s
[really-safe-money] fromRational :: Rational -> Maybe DecimalLiteral
38.62 s
[really-safe-money] fromRational (n :% d)
38.62 s
[really-safe-money] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
38.62 s
[really-safe-money] + | True = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
38.62 s
[really-safe-money] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into a 'Rational'
38.62 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:208:5-10
38.62 s
[really-safe-money] @@ -205,7 +205,7 @@
38.62 s
[really-safe-money] -- Nothing
38.62 s
[really-safe-money] fromRational :: Rational -> Maybe DecimalLiteral
38.62 s
[really-safe-money] fromRational (n :% d)
38.62 s
[really-safe-money] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
38.62 s
[really-safe-money] + | not (n < 0) = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
38.62 s
[really-safe-money] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into a 'Rational'
38.62 s
[really-safe-money] added mutation BoolLit at src/Numeric/DecimalLiteral.hs:208:62-67
38.62 s
[really-safe-money] @@ -205,7 +205,7 @@
38.62 s
[really-safe-money] -- Nothing
38.62 s
[really-safe-money] fromRational :: Rational -> Maybe DecimalLiteral
38.62 s
[really-safe-money] fromRational (n :% d)
38.62 s
[really-safe-money] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
38.62 s
[really-safe-money] + | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just True) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
38.62 s
[really-safe-money] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] -- | Turn a 'DecimalLiteral' into a 'Rational'
38.62 s
[really-safe-money] added mutation ListLit at src/Numeric/DecimalLiteral.hs:186:15-25
38.62 s
[really-safe-money] @@ -183,7 +183,7 @@
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] goFrac m e = reverse (go e (reverse (show m)))
38.62 s
[really-safe-money] go :: Word8 -> String -> String
38.62 s
[really-safe-money] - go 0 [] = ['.', '0']
38.62 s
[really-safe-money] + go 0 [] = []
38.62 s
[really-safe-money] go 0 s = '.' : s
38.62 s
[really-safe-money] go e [] = '0' : go (pred e) []
38.62 s
[really-safe-money] go e (c : cs) = c : go (pred e) cs
38.62 s
[really-safe-money] added mutation ListLit at src/Numeric/DecimalLiteral.hs:186:15-25
38.62 s
[really-safe-money] @@ -183,7 +183,7 @@
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] goFrac m e = reverse (go e (reverse (show m)))
38.62 s
[really-safe-money] go :: Word8 -> String -> String
38.62 s
[really-safe-money] - go 0 [] = ['.', '0']
38.62 s
[really-safe-money] + go 0 [] = ['.', '0']
38.62 s
[really-safe-money] go 0 s = '.' : s
38.62 s
[really-safe-money] go e [] = '0' : go (pred e) []
38.62 s
[really-safe-money] go e (c : cs) = c : go (pred e) cs
38.62 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:145:28-30
38.62 s
[really-safe-money] @@ -142,7 +142,7 @@
38.62 s
[really-safe-money] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
38.62 s
[really-safe-money] parseDigits f z = do
38.62 s
[really-safe-money] c <- ReadP.satisfy Char.isDigit
38.62 s
[really-safe-money] - let digit = Char.ord c - 48
38.62 s
[really-safe-money] + let digit = Char.ord c - 0
38.62 s
[really-safe-money] case f z digit of
38.62 s
[really-safe-money] Nothing -> fail "Failed to step the first digit"
38.62 s
[really-safe-money] Just a -> ReadP.look >>= go a
38.62 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:145:28-30
38.62 s
[really-safe-money] @@ -142,7 +142,7 @@
38.62 s
[really-safe-money] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
38.62 s
[really-safe-money] parseDigits f z = do
38.62 s
[really-safe-money] c <- ReadP.satisfy Char.isDigit
38.62 s
[really-safe-money] - let digit = Char.ord c - 48
38.62 s
[really-safe-money] + let digit = Char.ord c - 1
38.62 s
[really-safe-money] case f z digit of
38.62 s
[really-safe-money] Nothing -> fail "Failed to step the first digit"
38.62 s
[really-safe-money] Just a -> ReadP.look >>= go a
38.62 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:145:28-30
38.62 s
[really-safe-money] @@ -142,7 +142,7 @@
38.62 s
[really-safe-money] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
38.62 s
[really-safe-money] parseDigits f z = do
38.62 s
[really-safe-money] c <- ReadP.satisfy Char.isDigit
38.62 s
[really-safe-money] - let digit = Char.ord c - 48
38.62 s
[really-safe-money] + let digit = Char.ord c - -48
38.62 s
[really-safe-money] case f z digit of
38.62 s
[really-safe-money] Nothing -> fail "Failed to step the first digit"
38.62 s
[really-safe-money] Just a -> ReadP.look >>= go a
38.62 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:152:9-23
38.62 s
[really-safe-money] @@ -149,7 +149,7 @@
38.62 s
[really-safe-money] where
38.62 s
[really-safe-money] go !a [] = return a
38.62 s
[really-safe-money] go !a (c : cs)
38.62 s
[really-safe-money] - | Char.isDigit c = do
38.62 s
[really-safe-money] + | True = do
38.62 s
[really-safe-money] _ <- ReadP.get
38.62 s
[really-safe-money] let digit = Char.ord c - 48
38.62 s
[really-safe-money] case f a digit of
38.62 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:152:9-23
38.62 s
[really-safe-money] @@ -149,7 +149,7 @@
38.62 s
[really-safe-money] where
38.62 s
[really-safe-money] go !a [] = return a
38.62 s
[really-safe-money] go !a (c : cs)
38.62 s
[really-safe-money] - | Char.isDigit c = do
38.62 s
[really-safe-money] + | not (Char.isDigit c) = do
38.62 s
[really-safe-money] _ <- ReadP.get
38.62 s
[really-safe-money] let digit = Char.ord c - 48
38.62 s
[really-safe-money] case f a digit of
38.62 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:154:36-38
38.62 s
[really-safe-money] @@ -151,7 +151,7 @@
38.62 s
[really-safe-money] go !a (c : cs)
38.62 s
[really-safe-money] | Char.isDigit c = do
38.62 s
[really-safe-money] _ <- ReadP.get
38.62 s
[really-safe-money] - let digit = Char.ord c - 48
38.62 s
[really-safe-money] + let digit = Char.ord c - 0
38.62 s
[really-safe-money] case f a digit of
38.62 s
[really-safe-money] Nothing -> fail "Failed to step the digit"
38.62 s
[really-safe-money] Just a' -> go a' cs
38.62 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:154:36-38
38.62 s
[really-safe-money] @@ -151,7 +151,7 @@
38.62 s
[really-safe-money] go !a (c : cs)
38.62 s
[really-safe-money] | Char.isDigit c = do
38.62 s
[really-safe-money] _ <- ReadP.get
38.62 s
[really-safe-money] - let digit = Char.ord c - 48
38.62 s
[really-safe-money] + let digit = Char.ord c - 1
38.62 s
[really-safe-money] case f a digit of
38.62 s
[really-safe-money] Nothing -> fail "Failed to step the digit"
38.62 s
[really-safe-money] Just a' -> go a' cs
38.62 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:154:36-38
38.62 s
[really-safe-money] @@ -151,7 +151,7 @@
38.62 s
[really-safe-money] go !a (c : cs)
38.62 s
[really-safe-money] | Char.isDigit c = do
38.62 s
[really-safe-money] _ <- ReadP.get
38.62 s
[really-safe-money] - let digit = Char.ord c - 48
38.62 s
[really-safe-money] + let digit = Char.ord c - -48
38.62 s
[really-safe-money] case f a digit of
38.62 s
[really-safe-money] Nothing -> fail "Failed to step the digit"
38.62 s
[really-safe-money] Just a' -> go a' cs
38.62 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:139:27-29
38.62 s
[really-safe-money] @@ -136,7 +136,7 @@
38.62 s
[really-safe-money] stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] step :: Natural -> Int -> Maybe Natural
38.62 s
[really-safe-money] -step a digit = Just $ a * 10 + fromIntegral digit
38.62 s
[really-safe-money] +step a digit = Just $ a * 0 + fromIntegral digit
38.62 s
[really-safe-money] {-# INLINE step #-}
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
38.62 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:139:27-29
38.62 s
[really-safe-money] @@ -136,7 +136,7 @@
38.62 s
[really-safe-money] stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] step :: Natural -> Int -> Maybe Natural
38.62 s
[really-safe-money] -step a digit = Just $ a * 10 + fromIntegral digit
38.62 s
[really-safe-money] +step a digit = Just $ a * 1 + fromIntegral digit
38.62 s
[really-safe-money] {-# INLINE step #-}
38.62 s
[really-safe-money]
38.62 s
[really-safe-money] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
38.63 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:136:39-41
38.63 s
[really-safe-money] @@ -133,7 +133,7 @@
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] stepFraction :: (Natural, Word8) -> Int -> Maybe (Natural, Word8)
38.63 s
[really-safe-money] stepFraction (_, 255) _ = Nothing
38.63 s
[really-safe-money] -stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
38.63 s
[really-safe-money] +stepFraction (m, e) digit = Just (m * 0 + fromIntegral digit, succ e)
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] step :: Natural -> Int -> Maybe Natural
38.63 s
[really-safe-money] step a digit = Just $ a * 10 + fromIntegral digit
38.63 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:136:39-41
38.63 s
[really-safe-money] @@ -133,7 +133,7 @@
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] stepFraction :: (Natural, Word8) -> Int -> Maybe (Natural, Word8)
38.63 s
[really-safe-money] stepFraction (_, 255) _ = Nothing
38.63 s
[really-safe-money] -stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
38.63 s
[really-safe-money] +stepFraction (m, e) digit = Just (m * 1 + fromIntegral digit, succ e)
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] step :: Natural -> Int -> Maybe Natural
38.63 s
[really-safe-money] step a digit = Just $ a * 10 + fromIntegral digit
38.63 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-30
38.63 s
[really-safe-money] @@ -116,7 +116,7 @@
38.63 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.63 s
[really-safe-money] decimalLiteralP = do
38.63 s
[really-safe-money] let isSignChar :: Char -> Bool
38.63 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
38.63 s
[really-safe-money] + isSignChar c = True || c == '+'
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-30
38.63 s
[really-safe-money] @@ -116,7 +116,7 @@
38.63 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.63 s
[really-safe-money] decimalLiteralP = do
38.63 s
[really-safe-money] let isSignChar :: Char -> Bool
38.63 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
38.63 s
[really-safe-money] + isSignChar c = False || c == '+'
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:119:22-30
38.63 s
[really-safe-money] @@ -116,7 +116,7 @@
38.63 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.63 s
[really-safe-money] decimalLiteralP = do
38.63 s
[really-safe-money] let isSignChar :: Char -> Bool
38.63 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
38.63 s
[really-safe-money] + isSignChar c = not (c == '-') || c == '+'
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:34-42
38.63 s
[really-safe-money] @@ -116,7 +116,7 @@
38.63 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.63 s
[really-safe-money] decimalLiteralP = do
38.63 s
[really-safe-money] let isSignChar :: Char -> Bool
38.63 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
38.63 s
[really-safe-money] + isSignChar c = c == '-' || True
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:34-42
38.63 s
[really-safe-money] @@ -116,7 +116,7 @@
38.63 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.63 s
[really-safe-money] decimalLiteralP = do
38.63 s
[really-safe-money] let isSignChar :: Char -> Bool
38.63 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
38.63 s
[really-safe-money] + isSignChar c = c == '-' || False
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:119:34-42
38.63 s
[really-safe-money] @@ -116,7 +116,7 @@
38.63 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.63 s
[really-safe-money] decimalLiteralP = do
38.63 s
[really-safe-money] let isSignChar :: Char -> Bool
38.63 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
38.63 s
[really-safe-money] + isSignChar c = c == '-' || not (c == '+')
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-42
38.63 s
[really-safe-money] @@ -116,7 +116,7 @@
38.63 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.63 s
[really-safe-money] decimalLiteralP = do
38.63 s
[really-safe-money] let isSignChar :: Char -> Bool
38.63 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
38.63 s
[really-safe-money] + isSignChar c = True
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-42
38.63 s
[really-safe-money] @@ -116,7 +116,7 @@
38.63 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.63 s
[really-safe-money] decimalLiteralP = do
38.63 s
[really-safe-money] let isSignChar :: Char -> Bool
38.63 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
38.63 s
[really-safe-money] + isSignChar c = False
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:119:22-42
38.63 s
[really-safe-money] @@ -116,7 +116,7 @@
38.63 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.63 s
[really-safe-money] decimalLiteralP = do
38.63 s
[really-safe-money] let isSignChar :: Char -> Bool
38.63 s
[really-safe-money] - isSignChar c = c == '-' || c == '+'
38.63 s
[really-safe-money] + isSignChar c = not (c == '-' || c == '+')
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:123:19-34
38.63 s
[really-safe-money] @@ -120,7 +120,7 @@
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] - pure $ Just $ signChar == '+'
38.63 s
[really-safe-money] + pure $ Just $ True
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] units <- parseDigits step 0
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] added mutation ConstBool at src/Numeric/DecimalLiteral.hs:123:19-34
38.63 s
[really-safe-money] @@ -120,7 +120,7 @@
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.63 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.63 s
[really-safe-money] - pure $ Just $ signChar == '+'
38.63 s
[really-safe-money] + pure $ Just $ False
38.63 s
[really-safe-money]
38.63 s
[really-safe-money] units <- parseDigits step 0
38.63 s
[really-safe-money]
38.64 s
[really-safe-money] added mutation Negate at src/Numeric/DecimalLiteral.hs:123:19-34
38.64 s
[really-safe-money] @@ -120,7 +120,7 @@
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] mSign <- ReadP.option Nothing $ do
38.64 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.64 s
[really-safe-money] - pure $ Just $ signChar == '+'
38.64 s
[really-safe-money] + pure $ Just $ not (signChar == '+')
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] units <- parseDigits step 0
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:125:29-30
38.64 s
[really-safe-money] @@ -122,7 +122,7 @@
38.64 s
[really-safe-money] signChar <- ReadP.satisfy isSignChar
38.64 s
[really-safe-money] pure $ Just $ signChar == '+'
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] - units <- parseDigits step 0
38.64 s
[really-safe-money] + units <- parseDigits step 1
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] ReadP.option (DecimalLiteral mSign units 0) $ do
38.64 s
[really-safe-money] _ <- ReadP.satisfy (== '.')
38.64 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:127:44-45
38.64 s
[really-safe-money] @@ -124,7 +124,7 @@
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] units <- parseDigits step 0
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] - ReadP.option (DecimalLiteral mSign units 0) $ do
38.64 s
[really-safe-money] + ReadP.option (DecimalLiteral mSign units 1) $ do
38.64 s
[really-safe-money] _ <- ReadP.satisfy (== '.')
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] (m, e) <- parseDigits stepFraction (units, 0)
38.64 s
[really-safe-money] added mutation IntLit at src/Numeric/DecimalLiteral.hs:130:48-49
38.64 s
[really-safe-money] @@ -127,7 +127,7 @@
38.64 s
[really-safe-money] ReadP.option (DecimalLiteral mSign units 0) $ do
38.64 s
[really-safe-money] _ <- ReadP.satisfy (== '.')
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] - (m, e) <- parseDigits stepFraction (units, 0)
38.64 s
[really-safe-money] + (m, e) <- parseDigits stepFraction (units, 1)
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] pure $ DecimalLiteral mSign m e
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:112:17-21
38.64 s
[really-safe-money] @@ -109,9 +109,9 @@
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] -- | Like 'fromString' but in a 'MonadFail'
38.64 s
[really-safe-money] fromStringM :: (MonadFail m) => String -> m DecimalLiteral
38.64 s
[really-safe-money] -fromStringM s = case Numeric.DecimalLiteral.fromString s of
38.64 s
[really-safe-money] - Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
38.64 s
[really-safe-money] - Just dl -> pure dl
38.64 s
[really-safe-money] +fromStringM s = case Numeric.DecimalLiteral.fromString s of
38.64 s
[really-safe-money] + Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
38.64 s
[really-safe-money] + Just dl -> pure dl
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.64 s
[really-safe-money] decimalLiteralP = do
38.64 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:112:17-21
38.64 s
[really-safe-money] @@ -109,9 +109,9 @@
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] -- | Like 'fromString' but in a 'MonadFail'
38.64 s
[really-safe-money] fromStringM :: (MonadFail m) => String -> m DecimalLiteral
38.64 s
[really-safe-money] -fromStringM s = case Numeric.DecimalLiteral.fromString s of
38.64 s
[really-safe-money] - Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
38.64 s
[really-safe-money] - Just dl -> pure dl
38.64 s
[really-safe-money] +fromStringM s = case Numeric.DecimalLiteral.fromString s of
38.64 s
[really-safe-money] + Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
38.64 s
[really-safe-money] + Just dl -> pure dl
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] decimalLiteralP :: ReadP DecimalLiteral
38.64 s
[really-safe-money] decimalLiteralP = do
38.64 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:86:18-18
38.64 s
[really-safe-money] @@ -83,9 +83,9 @@
38.64 s
[really-safe-money] instance NFData DecimalLiteral
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] instance IsString DecimalLiteral where
38.64 s
[really-safe-money] - fromString s = case Numeric.DecimalLiteral.fromString s of
38.64 s
[really-safe-money] - Nothing -> error $ "Invalid DecimalLiteral: " <> show s
38.64 s
[really-safe-money] - Just dl -> dl
38.64 s
[really-safe-money] + fromString s = case Numeric.DecimalLiteral.fromString s of
38.64 s
[really-safe-money] + Nothing -> error $ "Invalid DecimalLiteral: " <> show s
38.64 s
[really-safe-money] + Just dl -> dl
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] -- | Parse a decimal literal from a string
38.64 s
[really-safe-money] --
38.64 s
[really-safe-money] added mutation RemoveCase at src/Numeric/DecimalLiteral.hs:86:18-18
38.64 s
[really-safe-money] @@ -83,9 +83,9 @@
38.64 s
[really-safe-money] instance NFData DecimalLiteral
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] instance IsString DecimalLiteral where
38.64 s
[really-safe-money] - fromString s = case Numeric.DecimalLiteral.fromString s of
38.64 s
[really-safe-money] - Nothing -> error $ "Invalid DecimalLiteral: " <> show s
38.64 s
[really-safe-money] - Just dl -> dl
38.64 s
[really-safe-money] + fromString s = case Numeric.DecimalLiteral.fromString s of
38.64 s
[really-safe-money] + Nothing -> error $ "Invalid DecimalLiteral: " <> show s
38.64 s
[really-safe-money] + Just dl -> dl
38.64 s
[really-safe-money]
38.64 s
[really-safe-money] -- | Parse a decimal literal from a string
38.64 s
[really-safe-money] --
38.64 s
[really-safe-money] added 87 mutations
40.84 s
[really-safe-money] [ 2 of 12] Compiling Money.QuantisationFactor ( src/Money/QuantisationFactor.hs, dist/build/Money/QuantisationFactor.p_o )
40.86 s
[really-safe-money] mutation: instrumenting Money.QuantisationFactor
40.86 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:87:27-28
40.86 s
[really-safe-money] @@ -84,7 +84,7 @@
40.86 s
[really-safe-money] fromDecimalLiteral dl = do
40.86 s
[really-safe-money] irat <-
40.86 s
[really-safe-money] let r = DecimalLiteral.toRational dl
40.86 s
[really-safe-money] - in if numerator r == 0
40.86 s
[really-safe-money] + in if numerator r == 1
40.86 s
[really-safe-money] then Nothing
40.86 s
[really-safe-money] else pure r
40.86 s
[really-safe-money]
40.86 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:87:12-28
40.86 s
[really-safe-money] @@ -84,7 +84,7 @@
40.86 s
[really-safe-money] fromDecimalLiteral dl = do
40.86 s
[really-safe-money] irat <-
40.86 s
[really-safe-money] let r = DecimalLiteral.toRational dl
40.86 s
[really-safe-money] - in if numerator r == 0
40.86 s
[really-safe-money] + in if True
40.86 s
[really-safe-money] then Nothing
40.86 s
[really-safe-money] else pure r
40.86 s
[really-safe-money]
40.86 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:87:12-28
40.86 s
[really-safe-money] @@ -84,7 +84,7 @@
40.86 s
[really-safe-money] fromDecimalLiteral dl = do
40.86 s
[really-safe-money] irat <-
40.86 s
[really-safe-money] let r = DecimalLiteral.toRational dl
40.86 s
[really-safe-money] - in if numerator r == 0
40.86 s
[really-safe-money] + in if False
40.86 s
[really-safe-money] then Nothing
40.86 s
[really-safe-money] else pure r
40.86 s
[really-safe-money]
40.86 s
[really-safe-money] added mutation Negate at src/Money/QuantisationFactor.hs:87:12-28
40.86 s
[really-safe-money] @@ -84,7 +84,7 @@
40.86 s
[really-safe-money] fromDecimalLiteral dl = do
40.87 s
[really-safe-money] irat <-
40.87 s
[really-safe-money] let r = DecimalLiteral.toRational dl
40.87 s
[really-safe-money] - in if numerator r == 0
40.87 s
[really-safe-money] + in if not (numerator r == 0)
40.87 s
[really-safe-money] then Nothing
40.87 s
[really-safe-money] else pure r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] added mutation CondFlip at src/Money/QuantisationFactor.hs:87:9-22
40.87 s
[really-safe-money] @@ -84,9 +84,9 @@
40.87 s
[really-safe-money] fromDecimalLiteral dl = do
40.87 s
[really-safe-money] irat <-
40.87 s
[really-safe-money] let r = DecimalLiteral.toRational dl
40.87 s
[really-safe-money] - in if numerator r == 0
40.87 s
[really-safe-money] - then Nothing
40.87 s
[really-safe-money] - else pure r
40.87 s
[really-safe-money] + in if numerator r == 0
40.87 s
[really-safe-money] + then Nothing
40.87 s
[really-safe-money] + else pure r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] rat <-
40.87 s
[really-safe-money] let r = 1 / irat
40.87 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:92:13-14
40.87 s
[really-safe-money] @@ -89,7 +89,7 @@
40.87 s
[really-safe-money] else pure r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] rat <-
40.87 s
[really-safe-money] - let r = 1 / irat
40.87 s
[really-safe-money] + let r = 0 / irat
40.87 s
[really-safe-money] in if r < 0
40.87 s
[really-safe-money] then Nothing
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:92:13-14
40.87 s
[really-safe-money] @@ -89,7 +89,7 @@
40.87 s
[really-safe-money] else pure r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] rat <-
40.87 s
[really-safe-money] - let r = 1 / irat
40.87 s
[really-safe-money] + let r = -1 / irat
40.87 s
[really-safe-money] in if r < 0
40.87 s
[really-safe-money] then Nothing
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:93:16-17
40.87 s
[really-safe-money] @@ -90,7 +90,7 @@
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] rat <-
40.87 s
[really-safe-money] let r = 1 / irat
40.87 s
[really-safe-money] - in if r < 0
40.87 s
[really-safe-money] + in if r < 1
40.87 s
[really-safe-money] then Nothing
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:93:12-17
40.87 s
[really-safe-money] @@ -90,7 +90,7 @@
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] rat <-
40.87 s
[really-safe-money] let r = 1 / irat
40.87 s
[really-safe-money] - in if r < 0
40.87 s
[really-safe-money] + in if True
40.87 s
[really-safe-money] then Nothing
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:93:12-17
40.87 s
[really-safe-money] @@ -90,7 +90,7 @@
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] rat <-
40.87 s
[really-safe-money] let r = 1 / irat
40.87 s
[really-safe-money] - in if r < 0
40.87 s
[really-safe-money] + in if False
40.87 s
[really-safe-money] then Nothing
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] added mutation Negate at src/Money/QuantisationFactor.hs:93:12-17
40.87 s
[really-safe-money] @@ -90,7 +90,7 @@
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] rat <-
40.87 s
[really-safe-money] let r = 1 / irat
40.87 s
[really-safe-money] - in if r < 0
40.87 s
[really-safe-money] + in if not (r < 0)
40.87 s
[really-safe-money] then Nothing
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] added mutation CondFlip at src/Money/QuantisationFactor.hs:93:9-22
40.87 s
[really-safe-money] @@ -90,9 +90,9 @@
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] rat <-
40.87 s
[really-safe-money] let r = 1 / irat
40.87 s
[really-safe-money] - in if r < 0
40.87 s
[really-safe-money] - then Nothing
40.87 s
[really-safe-money] - else Just r
40.87 s
[really-safe-money] + in if r < 0
40.87 s
[really-safe-money] + then Nothing
40.87 s
[really-safe-money] + else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] fac <-
40.87 s
[really-safe-money] if denominator rat == 1
40.87 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:98:27-28
40.87 s
[really-safe-money] @@ -95,7 +95,7 @@
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] fac <-
40.87 s
[really-safe-money] - if denominator rat == 1
40.87 s
[really-safe-money] + if denominator rat == 0
40.87 s
[really-safe-money] then Just (numerator rat)
40.87 s
[really-safe-money] else Nothing
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:98:27-28
40.87 s
[really-safe-money] @@ -95,7 +95,7 @@
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] fac <-
40.87 s
[really-safe-money] - if denominator rat == 1
40.87 s
[really-safe-money] + if denominator rat == -1
40.87 s
[really-safe-money] then Just (numerator rat)
40.87 s
[really-safe-money] else Nothing
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:98:8-28
40.87 s
[really-safe-money] @@ -95,7 +95,7 @@
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] fac <-
40.87 s
[really-safe-money] - if denominator rat == 1
40.87 s
[really-safe-money] + if True
40.87 s
[really-safe-money] then Just (numerator rat)
40.87 s
[really-safe-money] else Nothing
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:98:8-28
40.87 s
[really-safe-money] @@ -95,7 +95,7 @@
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] fac <-
40.87 s
[really-safe-money] - if denominator rat == 1
40.87 s
[really-safe-money] + if False
40.87 s
[really-safe-money] then Just (numerator rat)
40.87 s
[really-safe-money] else Nothing
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] added mutation Negate at src/Money/QuantisationFactor.hs:98:8-28
40.87 s
[really-safe-money] @@ -95,7 +95,7 @@
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] fac <-
40.87 s
[really-safe-money] - if denominator rat == 1
40.87 s
[really-safe-money] + if not (denominator rat == 1)
40.87 s
[really-safe-money] then Just (numerator rat)
40.87 s
[really-safe-money] else Nothing
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] added mutation CondFlip at src/Money/QuantisationFactor.hs:98:5-19
40.87 s
[really-safe-money] @@ -95,9 +95,9 @@
40.87 s
[really-safe-money] else Just r
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] fac <-
40.87 s
[really-safe-money] - if denominator rat == 1
40.87 s
[really-safe-money] - then Just (numerator rat)
40.87 s
[really-safe-money] - else Nothing
40.87 s
[really-safe-money] + if denominator rat == 1
40.87 s
[really-safe-money] + then Just (numerator rat)
40.87 s
[really-safe-money] + else Nothing
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] if fac <= fromIntegral (maxBound :: Word32)
40.87 s
[really-safe-money] then Just (QuantisationFactor (fromIntegral fac))
40.87 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:102:6-46
40.87 s
[really-safe-money] @@ -99,6 +99,6 @@
40.87 s
[really-safe-money] then Just (numerator rat)
40.87 s
[really-safe-money] else Nothing
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] - if fac <= fromIntegral (maxBound :: Word32)
40.87 s
[really-safe-money] + if True
40.87 s
[really-safe-money] then Just (QuantisationFactor (fromIntegral fac))
40.87 s
[really-safe-money] else Nothing
40.87 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:102:6-46
40.87 s
[really-safe-money] @@ -99,6 +99,6 @@
40.87 s
[really-safe-money] then Just (numerator rat)
40.87 s
[really-safe-money] else Nothing
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] - if fac <= fromIntegral (maxBound :: Word32)
40.87 s
[really-safe-money] + if False
40.87 s
[really-safe-money] then Just (QuantisationFactor (fromIntegral fac))
40.87 s
[really-safe-money] else Nothing
40.87 s
[really-safe-money] added mutation Negate at src/Money/QuantisationFactor.hs:102:6-46
40.87 s
[really-safe-money] @@ -99,6 +99,6 @@
40.87 s
[really-safe-money] then Just (numerator rat)
40.87 s
[really-safe-money] else Nothing
40.87 s
[really-safe-money]
40.87 s
[really-safe-money] - if fac <= fromIntegral (maxBound :: Word32)
40.88 s
[really-safe-money] + if not (fac <= fromIntegral (maxBound :: Word32))
40.88 s
[really-safe-money] then Just (QuantisationFactor (fromIntegral fac))
40.88 s
[really-safe-money] else Nothing
40.88 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:67:67-68
40.88 s
[really-safe-money] @@ -64,7 +64,7 @@
40.88 s
[really-safe-money] -- Just (DecimalLiteral Nothing 1 0)
40.88 s
[really-safe-money] toDecimalLiteral :: QuantisationFactor -> Maybe DecimalLiteral
40.88 s
[really-safe-money] toDecimalLiteral (QuantisationFactor qfw) =
40.88 s
[really-safe-money] - DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (1 % fromIntegral qfw)
40.88 s
[really-safe-money] + DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (0 % fromIntegral qfw)
40.88 s
[really-safe-money]
40.88 s
[really-safe-money] -- | Parse a 'QuantisationFactor' from a 'DecimalLiteral' that represents the smallest unit
40.88 s
[really-safe-money] -- TODO explain that it's the inverse.
40.88 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:67:67-68
40.88 s
[really-safe-money] @@ -64,7 +64,7 @@
40.88 s
[really-safe-money] -- Just (DecimalLiteral Nothing 1 0)
40.88 s
[really-safe-money] toDecimalLiteral :: QuantisationFactor -> Maybe DecimalLiteral
40.88 s
[really-safe-money] toDecimalLiteral (QuantisationFactor qfw) =
40.88 s
[really-safe-money] - DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (1 % fromIntegral qfw)
40.88 s
[really-safe-money] + DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (-1 % fromIntegral qfw)
40.88 s
[really-safe-money]
40.88 s
[really-safe-money] -- | Parse a 'QuantisationFactor' from a 'DecimalLiteral' that represents the smallest unit
40.88 s
[really-safe-money] -- TODO explain that it's the inverse.
40.88 s
[really-safe-money] added mutation IntLit at src/Money/QuantisationFactor.hs:40:62-63
40.88 s
[really-safe-money] @@ -37,7 +37,7 @@
40.88 s
[really-safe-money] validate qf@(QuantisationFactor w) =
40.88 s
[really-safe-money] mconcat
40.88 s
[really-safe-money] [ genericValidate qf,
40.88 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
40.88 s
[really-safe-money] + declare "The quantisation factor is not zero" $ w /= 1
40.88 s
[really-safe-money] ]
40.88 s
[really-safe-money]
40.88 s
[really-safe-money] instance NFData QuantisationFactor
40.88 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:40:57-63
40.88 s
[really-safe-money] @@ -37,7 +37,7 @@
40.88 s
[really-safe-money] validate qf@(QuantisationFactor w) =
40.88 s
[really-safe-money] mconcat
40.88 s
[really-safe-money] [ genericValidate qf,
40.88 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
40.88 s
[really-safe-money] + declare "The quantisation factor is not zero" $ True
40.88 s
[really-safe-money] ]
40.88 s
[really-safe-money]
40.88 s
[really-safe-money] instance NFData QuantisationFactor
40.88 s
[really-safe-money] added mutation ConstBool at src/Money/QuantisationFactor.hs:40:57-63
40.88 s
[really-safe-money] @@ -37,7 +37,7 @@
40.88 s
[really-safe-money] validate qf@(QuantisationFactor w) =
40.88 s
[really-safe-money] mconcat
40.88 s
[really-safe-money] [ genericValidate qf,
40.88 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
40.88 s
[really-safe-money] + declare "The quantisation factor is not zero" $ False
40.88 s
[really-safe-money] ]
40.88 s
[really-safe-money]
40.88 s
[really-safe-money] instance NFData QuantisationFactor
40.88 s
[really-safe-money] added mutation Negate at src/Money/QuantisationFactor.hs:40:57-63
40.88 s
[really-safe-money] @@ -37,7 +37,7 @@
40.88 s
[really-safe-money] validate qf@(QuantisationFactor w) =
40.88 s
[really-safe-money] mconcat
40.88 s
[really-safe-money] [ genericValidate qf,
40.88 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
40.88 s
[really-safe-money] + declare "The quantisation factor is not zero" $ not (w /= 0)
40.88 s
[really-safe-money] ]
40.88 s
[really-safe-money]
40.88 s
[really-safe-money] instance NFData QuantisationFactor
40.88 s
[really-safe-money] added mutation ListLit at src/Money/QuantisationFactor.hs:39:7-8
40.88 s
[really-safe-money] @@ -36,9 +36,7 @@
40.88 s
[really-safe-money] instance Validity QuantisationFactor where
40.88 s
[really-safe-money] validate qf@(QuantisationFactor w) =
40.88 s
[really-safe-money] mconcat
40.88 s
[really-safe-money] - [ genericValidate qf,
40.88 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
40.88 s
[really-safe-money] - ]
40.88 s
[really-safe-money] + []
40.88 s
[really-safe-money]
40.88 s
[really-safe-money] instance NFData QuantisationFactor
40.88 s
[really-safe-money]
40.88 s
[really-safe-money] added mutation ListLit at src/Money/QuantisationFactor.hs:39:7-8
40.88 s
[really-safe-money] @@ -36,9 +36,9 @@
40.88 s
[really-safe-money] instance Validity QuantisationFactor where
40.88 s
[really-safe-money] validate qf@(QuantisationFactor w) =
40.88 s
[really-safe-money] mconcat
40.88 s
[really-safe-money] - [ genericValidate qf,
40.88 s
[really-safe-money] - declare "The quantisation factor is not zero" $ w /= 0
40.88 s
[really-safe-money] - ]
40.88 s
[really-safe-money] + [ genericValidate qf,
40.88 s
[really-safe-money] + declare "The quantisation factor is not zero" $ w /= 0
40.88 s
[really-safe-money] + ]
40.88 s
[really-safe-money]
40.88 s
[really-safe-money] instance NFData QuantisationFactor
40.88 s
[really-safe-money]
40.88 s
[really-safe-money] added 29 mutations
41.43 s
[really-safe-money] [ 3 of 12] Compiling Money.Currency ( src/Money/Currency.hs, dist/build/Money/Currency.p_o )
41.44 s
[really-safe-money] mutation: instrumenting Money.Currency
41.44 s
[really-safe-money] added 0 mutations
41.94 s
[really-safe-money] [ 4 of 12] Compiling Money.ConversionRate ( src/Money/ConversionRate.hs, dist/build/Money/ConversionRate.p_o )
41.95 s
[really-safe-money] mutation: instrumenting Money.ConversionRate
41.95 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:116:45-46
41.95 s
[really-safe-money] @@ -113,7 +113,7 @@
41.95 s
[really-safe-money] -- >>> invert (ConversionRate (1 % 2))
41.95 s
[really-safe-money] -- ConversionRate {unConversionRate = 2 % 1}
41.95 s
[really-safe-money] invert :: ConversionRate -> ConversionRate
41.95 s
[really-safe-money] -invert (ConversionRate r) = ConversionRate (1 / r)
41.95 s
[really-safe-money] +invert (ConversionRate r) = ConversionRate (0 / r)
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | Compose two conversion rates
41.95 s
[really-safe-money] --
41.95 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:116:45-46
41.95 s
[really-safe-money] @@ -113,7 +113,7 @@
41.95 s
[really-safe-money] -- >>> invert (ConversionRate (1 % 2))
41.95 s
[really-safe-money] -- ConversionRate {unConversionRate = 2 % 1}
41.95 s
[really-safe-money] invert :: ConversionRate -> ConversionRate
41.95 s
[really-safe-money] -invert (ConversionRate r) = ConversionRate (1 / r)
41.95 s
[really-safe-money] +invert (ConversionRate r) = ConversionRate (-1 / r)
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | Compose two conversion rates
41.95 s
[really-safe-money] --
41.95 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:109:27-28
41.95 s
[really-safe-money] @@ -106,7 +106,7 @@
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | One-to-one conversion rate
41.95 s
[really-safe-money] oneToOne :: ConversionRate
41.95 s
[really-safe-money] -oneToOne = ConversionRate 1
41.95 s
[really-safe-money] +oneToOne = ConversionRate 0
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | Invert a 'ConversionRate', to convert in the other direction.
41.95 s
[really-safe-money] --
41.95 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:109:27-28
41.95 s
[really-safe-money] @@ -106,7 +106,7 @@
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | One-to-one conversion rate
41.95 s
[really-safe-money] oneToOne :: ConversionRate
41.95 s
[really-safe-money] -oneToOne = ConversionRate 1
41.95 s
[really-safe-money] +oneToOne = ConversionRate -1
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | Invert a 'ConversionRate', to convert in the other direction.
41.95 s
[really-safe-money] --
41.95 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:72:25-26
41.95 s
[really-safe-money] @@ -69,7 +69,7 @@
41.95 s
[really-safe-money] -- >>> fromRational (0 % 1)
41.95 s
[really-safe-money] -- Nothing
41.95 s
[really-safe-money] fromRational :: Rational -> Maybe ConversionRate
41.95 s
[really-safe-money] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
41.95 s
[really-safe-money] +fromRational r = if r < 1 then Nothing else fromRatio (realToFrac r)
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | Turn a 'ConversionRate' back into a 'Rational'
41.95 s
[really-safe-money] --
41.95 s
[really-safe-money] added mutation ConstBool at src/Money/ConversionRate.hs:72:21-26
41.95 s
[really-safe-money] @@ -69,7 +69,7 @@
41.95 s
[really-safe-money] -- >>> fromRational (0 % 1)
41.95 s
[really-safe-money] -- Nothing
41.95 s
[really-safe-money] fromRational :: Rational -> Maybe ConversionRate
41.95 s
[really-safe-money] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
41.95 s
[really-safe-money] +fromRational r = if True then Nothing else fromRatio (realToFrac r)
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | Turn a 'ConversionRate' back into a 'Rational'
41.95 s
[really-safe-money] --
41.95 s
[really-safe-money] added mutation ConstBool at src/Money/ConversionRate.hs:72:21-26
41.95 s
[really-safe-money] @@ -69,7 +69,7 @@
41.95 s
[really-safe-money] -- >>> fromRational (0 % 1)
41.95 s
[really-safe-money] -- Nothing
41.95 s
[really-safe-money] fromRational :: Rational -> Maybe ConversionRate
41.95 s
[really-safe-money] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
41.95 s
[really-safe-money] +fromRational r = if False then Nothing else fromRatio (realToFrac r)
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | Turn a 'ConversionRate' back into a 'Rational'
41.95 s
[really-safe-money] --
41.95 s
[really-safe-money] added mutation Negate at src/Money/ConversionRate.hs:72:21-26
41.95 s
[really-safe-money] @@ -69,7 +69,7 @@
41.95 s
[really-safe-money] -- >>> fromRational (0 % 1)
41.95 s
[really-safe-money] -- Nothing
41.95 s
[really-safe-money] fromRational :: Rational -> Maybe ConversionRate
41.95 s
[really-safe-money] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
41.95 s
[really-safe-money] +fromRational r = if not (r < 0) then Nothing else fromRatio (realToFrac r)
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | Turn a 'ConversionRate' back into a 'Rational'
41.95 s
[really-safe-money] --
41.95 s
[really-safe-money] added mutation CondFlip at src/Money/ConversionRate.hs:72:18-69
41.95 s
[really-safe-money] @@ -69,7 +69,7 @@
41.95 s
[really-safe-money] -- >>> fromRational (0 % 1)
41.95 s
[really-safe-money] -- Nothing
41.95 s
[really-safe-money] fromRational :: Rational -> Maybe ConversionRate
41.95 s
[really-safe-money] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
41.95 s
[really-safe-money] +fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] -- | Turn a 'ConversionRate' back into a 'Rational'
41.95 s
[really-safe-money] --
41.95 s
[really-safe-money] added mutation IntLit at src/Money/ConversionRate.hs:38:56-57
41.95 s
[really-safe-money] @@ -35,7 +35,7 @@
41.95 s
[really-safe-money] validate cr@(ConversionRate r) =
41.95 s
[really-safe-money] mconcat
41.95 s
[really-safe-money] [ genericValidate cr,
41.95 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
41.95 s
[really-safe-money] + declare "The rate is nonzero" $ numerator r /= 1
41.95 s
[really-safe-money] ]
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] instance NFData ConversionRate
41.95 s
[really-safe-money] added mutation ConstBool at src/Money/ConversionRate.hs:38:41-57
41.95 s
[really-safe-money] @@ -35,7 +35,7 @@
41.95 s
[really-safe-money] validate cr@(ConversionRate r) =
41.95 s
[really-safe-money] mconcat
41.95 s
[really-safe-money] [ genericValidate cr,
41.95 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
41.95 s
[really-safe-money] + declare "The rate is nonzero" $ True
41.95 s
[really-safe-money] ]
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] instance NFData ConversionRate
41.95 s
[really-safe-money] added mutation ConstBool at src/Money/ConversionRate.hs:38:41-57
41.95 s
[really-safe-money] @@ -35,7 +35,7 @@
41.95 s
[really-safe-money] validate cr@(ConversionRate r) =
41.95 s
[really-safe-money] mconcat
41.95 s
[really-safe-money] [ genericValidate cr,
41.95 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
41.95 s
[really-safe-money] + declare "The rate is nonzero" $ False
41.95 s
[really-safe-money] ]
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] instance NFData ConversionRate
41.95 s
[really-safe-money] added mutation Negate at src/Money/ConversionRate.hs:38:41-57
41.95 s
[really-safe-money] @@ -35,7 +35,7 @@
41.95 s
[really-safe-money] validate cr@(ConversionRate r) =
41.95 s
[really-safe-money] mconcat
41.95 s
[really-safe-money] [ genericValidate cr,
41.95 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
41.95 s
[really-safe-money] + declare "The rate is nonzero" $ not (numerator r /= 0)
41.95 s
[really-safe-money] ]
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] instance NFData ConversionRate
41.95 s
[really-safe-money] added mutation ListLit at src/Money/ConversionRate.hs:37:7-8
41.95 s
[really-safe-money] @@ -34,9 +34,7 @@
41.95 s
[really-safe-money] instance Validity ConversionRate where
41.95 s
[really-safe-money] validate cr@(ConversionRate r) =
41.95 s
[really-safe-money] mconcat
41.95 s
[really-safe-money] - [ genericValidate cr,
41.95 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
41.95 s
[really-safe-money] - ]
41.95 s
[really-safe-money] + []
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] instance NFData ConversionRate
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] added mutation ListLit at src/Money/ConversionRate.hs:37:7-8
41.95 s
[really-safe-money] @@ -34,9 +34,9 @@
41.95 s
[really-safe-money] instance Validity ConversionRate where
41.95 s
[really-safe-money] validate cr@(ConversionRate r) =
41.95 s
[really-safe-money] mconcat
41.95 s
[really-safe-money] - [ genericValidate cr,
41.95 s
[really-safe-money] - declare "The rate is nonzero" $ numerator r /= 0
41.95 s
[really-safe-money] - ]
41.95 s
[really-safe-money] + [ genericValidate cr,
41.95 s
[really-safe-money] + declare "The rate is nonzero" $ numerator r /= 0
41.95 s
[really-safe-money] + ]
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] instance NFData ConversionRate
41.95 s
[really-safe-money]
41.95 s
[really-safe-money] added 15 mutations
42.29 s
[really-safe-money] [ 5 of 12] Compiling Money.ConversionRateOf ( src/Money/ConversionRateOf.hs, dist/build/Money/ConversionRateOf.p_o )
42.30 s
[really-safe-money] mutation: instrumenting Money.ConversionRateOf
42.30 s
[really-safe-money] added 0 mutations
42.47 s
[really-safe-money] [ 6 of 12] Compiling Money.Amount ( src/Money/Amount.hs, dist/build/Money/Amount.p_o )
42.56 s
[really-safe-money] mutation: instrumenting Money.Amount
42.56 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:801:36-38
42.72 s
[really-safe-money] @@ -798,7 +798,7 @@
42.72 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor 0) = "%f"
42.72 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor qf) =
42.72 s
[really-safe-money] let decimals :: Int
42.72 s
[really-safe-money] - decimals = ceiling $ logBase 10 (fromIntegral qf :: Float)
42.72 s
[really-safe-money] + decimals = ceiling $ logBase 0 (fromIntegral qf :: Float)
42.72 s
[really-safe-money] in printf "%%0.%df" decimals
42.72 s
[really-safe-money]
42.72 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
42.72 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:801:36-38
42.72 s
[really-safe-money] @@ -798,7 +798,7 @@
42.72 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor 0) = "%f"
42.72 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor qf) =
42.72 s
[really-safe-money] let decimals :: Int
42.72 s
[really-safe-money] - decimals = ceiling $ logBase 10 (fromIntegral qf :: Float)
42.72 s
[really-safe-money] + decimals = ceiling $ logBase 1 (fromIntegral qf :: Float)
42.72 s
[really-safe-money] in printf "%%0.%df" decimals
42.72 s
[really-safe-money]
42.72 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
42.72 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:801:36-38
42.72 s
[really-safe-money] @@ -798,7 +798,7 @@
42.72 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor 0) = "%f"
42.72 s
[really-safe-money] quantisationFactorFormatString (QuantisationFactor qf) =
42.72 s
[really-safe-money] let decimals :: Int
42.72 s
[really-safe-money] - decimals = ceiling $ logBase 10 (fromIntegral qf :: Float)
42.72 s
[really-safe-money] + decimals = ceiling $ logBase -10 (fromIntegral qf :: Float)
42.72 s
[really-safe-money] in printf "%%0.%df" decimals
42.72 s
[really-safe-money]
42.72 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
42.72 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:569:18-19
42.72 s
[really-safe-money] @@ -566,7 +566,7 @@
42.72 s
[really-safe-money] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
42.72 s
[really-safe-money] smallerChunk :: Amount
42.72 s
[really-safe-money] smallerChunk = Amount smallerChunkSize
42.72 s
[really-safe-money] - in if rest == 0
42.72 s
[really-safe-money] + in if rest == 1
42.72 s
[really-safe-money] then DistributedIntoEqualChunks f smallerChunk
42.72 s
[really-safe-money] else
42.72 s
[really-safe-money] let -- This 'fromIntegral' is theoretically not safe, but it's
42.72 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:569:10-19
42.72 s
[really-safe-money] @@ -566,7 +566,7 @@
42.72 s
[really-safe-money] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
42.72 s
[really-safe-money] smallerChunk :: Amount
42.72 s
[really-safe-money] smallerChunk = Amount smallerChunkSize
42.72 s
[really-safe-money] - in if rest == 0
42.72 s
[really-safe-money] + in if True
42.72 s
[really-safe-money] then DistributedIntoEqualChunks f smallerChunk
42.72 s
[really-safe-money] else
42.72 s
[really-safe-money] let -- This 'fromIntegral' is theoretically not safe, but it's
42.72 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:569:10-19
42.72 s
[really-safe-money] @@ -566,7 +566,7 @@
42.72 s
[really-safe-money] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
42.72 s
[really-safe-money] smallerChunk :: Amount
42.72 s
[really-safe-money] smallerChunk = Amount smallerChunkSize
42.72 s
[really-safe-money] - in if rest == 0
42.72 s
[really-safe-money] + in if False
42.72 s
[really-safe-money] then DistributedIntoEqualChunks f smallerChunk
42.72 s
[really-safe-money] else
42.72 s
[really-safe-money] let -- This 'fromIntegral' is theoretically not safe, but it's
42.72 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:569:10-19
42.72 s
[really-safe-money] @@ -566,7 +566,7 @@
42.72 s
[really-safe-money] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
42.72 s
[really-safe-money] smallerChunk :: Amount
42.72 s
[really-safe-money] smallerChunk = Amount smallerChunkSize
42.72 s
[really-safe-money] - in if rest == 0
42.72 s
[really-safe-money] + in if not (rest == 0)
42.72 s
[really-safe-money] then DistributedIntoEqualChunks f smallerChunk
42.72 s
[really-safe-money] else
42.72 s
[really-safe-money] let -- This 'fromIntegral' is theoretically not safe, but it's
42.72 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:569:7-29
42.72 s
[really-safe-money] @@ -566,22 +566,22 @@
42.72 s
[really-safe-money] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
42.72 s
[really-safe-money] smallerChunk :: Amount
42.72 s
[really-safe-money] smallerChunk = Amount smallerChunkSize
42.72 s
[really-safe-money] - in if rest == 0
42.72 s
[really-safe-money] - then DistributedIntoEqualChunks f smallerChunk
42.72 s
[really-safe-money] - else
42.72 s
[really-safe-money] - let -- This 'fromIntegral' is theoretically not safe, but it's
42.72 s
[really-safe-money] - -- necessarily smaller than f so it will fit.
42.72 s
[really-safe-money] - numberOfLargerChunks :: Word32
42.72 s
[really-safe-money] - numberOfLargerChunks = (fromIntegral :: Word64 -> Word32) rest
42.72 s
[really-safe-money] - numberOfSmallerChunks :: Word32
42.72 s
[really-safe-money] - numberOfSmallerChunks = f - numberOfLargerChunks
42.72 s
[really-safe-money] - largerChunk :: Amount
42.72 s
[really-safe-money] - largerChunk = Amount $ succ smallerChunkSize
42.72 s
[really-safe-money] - in DistributedIntoUnequalChunks
42.72 s
[really-safe-money] - numberOfLargerChunks
42.72 s
[really-safe-money] - largerChunk
42.72 s
[really-safe-money] - numberOfSmallerChunks
42.72 s
[really-safe-money] - smallerChunk
42.72 s
[really-safe-money] + in if rest == 0
42.72 s
[really-safe-money] + then DistributedIntoEqualChunks f smallerChunk
42.72 s
[really-safe-money] + else
42.72 s
[really-safe-money] + let -- This 'fromIntegral' is theoretically not safe, but it's
42.72 s
[really-safe-money] + -- necessarily smaller than f so it will fit.
42.72 s
[really-safe-money] + numberOfLargerChunks :: Word32
42.72 s
[really-safe-money] + numberOfLargerChunks = (fromIntegral :: Word64 -> Word32) rest
42.72 s
[really-safe-money] + numberOfSmallerChunks :: Word32
42.72 s
[really-safe-money] + numberOfSmallerChunks = f - numberOfLargerChunks
42.72 s
[really-safe-money] + largerChunk :: Amount
42.72 s
[really-safe-money] + largerChunk = Amount $ succ smallerChunkSize
42.72 s
[really-safe-money] + in DistributedIntoUnequalChunks
42.72 s
[really-safe-money] + numberOfLargerChunks
42.72 s
[really-safe-money] + largerChunk
42.72 s
[really-safe-money] + numberOfSmallerChunks
42.73 s
[really-safe-money] + smallerChunk
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] -- | The result of 'distribute'
42.73 s
[really-safe-money] type AmountDistribution = Distribution Amount
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:544:10-23
42.73 s
[really-safe-money] @@ -541,7 +541,7 @@
42.73 s
[really-safe-money] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
42.73 s
[really-safe-money] - in if r > maxBoundI
42.73 s
[really-safe-money] + in if True
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:544:10-23
42.73 s
[really-safe-money] @@ -541,7 +541,7 @@
42.73 s
[really-safe-money] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
42.73 s
[really-safe-money] - in if r > maxBoundI
42.73 s
[really-safe-money] + in if False
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:544:10-23
42.73 s
[really-safe-money] @@ -541,7 +541,7 @@
42.73 s
[really-safe-money] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
42.73 s
[really-safe-money] - in if r > maxBoundI
42.73 s
[really-safe-money] + in if not (r > maxBoundI)
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:544:7-66
42.73 s
[really-safe-money] @@ -541,9 +541,9 @@
42.73 s
[really-safe-money] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
42.73 s
[really-safe-money] - in if r > maxBoundI
42.73 s
[really-safe-money] - then Nothing
42.73 s
[really-safe-money] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money] + in if r > maxBoundI
42.73 s
[really-safe-money] + then Nothing
42.73 s
[really-safe-money] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
42.73 s
[really-safe-money] --
42.73 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:518:14-15
42.73 s
[really-safe-money] @@ -515,7 +515,7 @@
42.73 s
[really-safe-money] i2 = (fromIntegral :: Word64 -> Integer) a2
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = i1 - i2
42.73 s
[really-safe-money] - in if r < 0
42.73 s
[really-safe-money] + in if r < 1
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:518:10-15
42.73 s
[really-safe-money] @@ -515,7 +515,7 @@
42.73 s
[really-safe-money] i2 = (fromIntegral :: Word64 -> Integer) a2
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = i1 - i2
42.73 s
[really-safe-money] - in if r < 0
42.73 s
[really-safe-money] + in if True
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:518:10-15
42.73 s
[really-safe-money] @@ -515,7 +515,7 @@
42.73 s
[really-safe-money] i2 = (fromIntegral :: Word64 -> Integer) a2
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = i1 - i2
42.73 s
[really-safe-money] - in if r < 0
42.73 s
[really-safe-money] + in if False
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:518:10-15
42.73 s
[really-safe-money] @@ -515,7 +515,7 @@
42.73 s
[really-safe-money] i2 = (fromIntegral :: Word64 -> Integer) a2
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = i1 - i2
42.73 s
[really-safe-money] - in if r < 0
42.73 s
[really-safe-money] + in if not (r < 0)
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:518:7-66
42.73 s
[really-safe-money] @@ -515,9 +515,9 @@
42.73 s
[really-safe-money] i2 = (fromIntegral :: Word64 -> Integer) a2
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = i1 - i2
42.73 s
[really-safe-money] - in if r < 0
42.73 s
[really-safe-money] - then Nothing
42.73 s
[really-safe-money] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money] + in if r < 0
42.73 s
[really-safe-money] + then Nothing
42.73 s
[really-safe-money] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] -- | Multiply an amount of money by an integer scalar
42.73 s
[really-safe-money] --
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:476:10-23
42.73 s
[really-safe-money] @@ -473,7 +473,7 @@
42.73 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = i1 + i2
42.73 s
[really-safe-money] - in if r > maxBoundI
42.73 s
[really-safe-money] + in if True
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:476:10-23
42.73 s
[really-safe-money] @@ -473,7 +473,7 @@
42.73 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = i1 + i2
42.73 s
[really-safe-money] - in if r > maxBoundI
42.73 s
[really-safe-money] + in if False
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:476:10-23
42.73 s
[really-safe-money] @@ -473,7 +473,7 @@
42.73 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = i1 + i2
42.73 s
[really-safe-money] - in if r > maxBoundI
42.73 s
[really-safe-money] + in if not (r > maxBoundI)
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:476:7-66
42.73 s
[really-safe-money] @@ -473,9 +473,9 @@
42.73 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
42.73 s
[really-safe-money] r :: Integer
42.73 s
[really-safe-money] r = i1 + i2
42.73 s
[really-safe-money] - in if r > maxBoundI
42.73 s
[really-safe-money] - then Nothing
42.73 s
[really-safe-money] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money] + in if r > maxBoundI
42.73 s
[really-safe-money] + then Nothing
42.73 s
[really-safe-money] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.73 s
[really-safe-money]
42.73 s
[really-safe-money] -- | Add a number of amounts of money together.
42.73 s
[really-safe-money] --
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:388:5-16
42.73 s
[really-safe-money] @@ -385,7 +385,7 @@
42.73 s
[really-safe-money] -- Nothing
42.73 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
42.73 s
[really-safe-money] fromRational (QuantisationFactor qf) r
42.73 s
[really-safe-money] - | isInvalid r = Nothing
42.73 s
[really-safe-money] + | True = Nothing
42.73 s
[really-safe-money] | r < 0 = Nothing
42.73 s
[really-safe-money] | otherwise =
42.73 s
[really-safe-money] let resultRational :: Rational
42.73 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:388:5-16
42.73 s
[really-safe-money] @@ -385,7 +385,7 @@
42.73 s
[really-safe-money] -- Nothing
42.73 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
42.73 s
[really-safe-money] fromRational (QuantisationFactor qf) r
42.73 s
[really-safe-money] - | isInvalid r = Nothing
42.73 s
[really-safe-money] + | not (isInvalid r) = Nothing
42.73 s
[really-safe-money] | r < 0 = Nothing
42.73 s
[really-safe-money] | otherwise =
42.73 s
[really-safe-money] let resultRational :: Rational
42.73 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:389:9-10
42.73 s
[really-safe-money] @@ -386,7 +386,7 @@
42.73 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
42.73 s
[really-safe-money] fromRational (QuantisationFactor qf) r
42.73 s
[really-safe-money] | isInvalid r = Nothing
42.73 s
[really-safe-money] - | r < 0 = Nothing
42.73 s
[really-safe-money] + | r < 1 = Nothing
42.73 s
[really-safe-money] | otherwise =
42.73 s
[really-safe-money] let resultRational :: Rational
42.73 s
[really-safe-money] resultRational = r * (fromIntegral :: Word32 -> Rational) qf
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:389:5-10
42.73 s
[really-safe-money] @@ -386,7 +386,7 @@
42.73 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
42.73 s
[really-safe-money] fromRational (QuantisationFactor qf) r
42.73 s
[really-safe-money] | isInvalid r = Nothing
42.73 s
[really-safe-money] - | r < 0 = Nothing
42.73 s
[really-safe-money] + | True = Nothing
42.73 s
[really-safe-money] | otherwise =
42.73 s
[really-safe-money] let resultRational :: Rational
42.73 s
[really-safe-money] resultRational = r * (fromIntegral :: Word32 -> Rational) qf
42.73 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:389:5-10
42.73 s
[really-safe-money] @@ -386,7 +386,7 @@
42.73 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
42.73 s
[really-safe-money] fromRational (QuantisationFactor qf) r
42.73 s
[really-safe-money] | isInvalid r = Nothing
42.73 s
[really-safe-money] - | r < 0 = Nothing
42.73 s
[really-safe-money] + | not (r < 0) = Nothing
42.73 s
[really-safe-money] | otherwise =
42.73 s
[really-safe-money] let resultRational :: Rational
42.73 s
[really-safe-money] resultRational = r * (fromIntegral :: Word32 -> Rational) qf
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:397:14-31
42.73 s
[really-safe-money] @@ -394,7 +394,7 @@
42.73 s
[really-safe-money] ceiled = (ceiling :: Rational -> Natural) resultRational
42.73 s
[really-safe-money] floored :: Natural
42.73 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
42.73 s
[really-safe-money] - in if ceiled == floored
42.73 s
[really-safe-money] + in if True
42.73 s
[really-safe-money] then
42.73 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:397:14-31
42.73 s
[really-safe-money] @@ -394,7 +394,7 @@
42.73 s
[really-safe-money] ceiled = (ceiling :: Rational -> Natural) resultRational
42.73 s
[really-safe-money] floored :: Natural
42.73 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
42.73 s
[really-safe-money] - in if ceiled == floored
42.73 s
[really-safe-money] + in if False
42.73 s
[really-safe-money] then
42.73 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:397:14-31
42.73 s
[really-safe-money] @@ -394,7 +394,7 @@
42.73 s
[really-safe-money] ceiled = (ceiling :: Rational -> Natural) resultRational
42.73 s
[really-safe-money] floored :: Natural
42.73 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
42.73 s
[really-safe-money] - in if ceiled == floored
42.73 s
[really-safe-money] + in if not (ceiled == floored)
42.73 s
[really-safe-money] then
42.73 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:399:18-83
42.73 s
[really-safe-money] @@ -396,7 +396,7 @@
42.73 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
42.73 s
[really-safe-money] in if ceiled == floored
42.73 s
[really-safe-money] then
42.73 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.73 s
[really-safe-money] + if True
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
42.73 s
[really-safe-money] else Nothing
42.73 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:399:18-83
42.73 s
[really-safe-money] @@ -396,7 +396,7 @@
42.73 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
42.73 s
[really-safe-money] in if ceiled == floored
42.73 s
[really-safe-money] then
42.73 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.73 s
[really-safe-money] + if False
42.73 s
[really-safe-money] then Nothing
42.73 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
42.73 s
[really-safe-money] else Nothing
42.73 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:399:18-83
42.73 s
[really-safe-money] @@ -396,7 +396,7 @@
42.73 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
42.73 s
[really-safe-money] in if ceiled == floored
42.73 s
[really-safe-money] then
42.73 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.73 s
[really-safe-money] + if not (ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64))
42.73 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
42.74 s
[really-safe-money] else Nothing
42.74 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:399:15-57
42.74 s
[really-safe-money] @@ -396,9 +396,9 @@
42.74 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
42.74 s
[really-safe-money] in if ceiled == floored
42.74 s
[really-safe-money] then
42.74 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.74 s
[really-safe-money] - then Nothing
42.74 s
[really-safe-money] - else Just $ Amount (fromIntegral ceiled)
42.74 s
[really-safe-money] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.74 s
[really-safe-money] + then Nothing
42.74 s
[really-safe-money] + else Just $ Amount (fromIntegral ceiled)
42.74 s
[really-safe-money] else Nothing
42.74 s
[really-safe-money]
42.74 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
42.74 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:397:11-25
42.74 s
[really-safe-money] @@ -394,12 +394,12 @@
42.74 s
[really-safe-money] ceiled = (ceiling :: Rational -> Natural) resultRational
42.74 s
[really-safe-money] floored :: Natural
42.74 s
[really-safe-money] floored = (floor :: Rational -> Natural) resultRational
42.74 s
[really-safe-money] - in if ceiled == floored
42.74 s
[really-safe-money] - then
42.74 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.74 s
[really-safe-money] - then Nothing
42.74 s
[really-safe-money] - else Just $ Amount (fromIntegral ceiled)
42.74 s
[really-safe-money] - else Nothing
42.74 s
[really-safe-money] + in if ceiled == floored
42.74 s
[really-safe-money] + then
42.74 s
[really-safe-money] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.74 s
[really-safe-money] + then Nothing
42.74 s
[really-safe-money] + else Just $ Amount (fromIntegral ceiled)
42.74 s
[really-safe-money] + else Nothing
42.74 s
[really-safe-money]
42.74 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
42.74 s
[really-safe-money] --
42.74 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:320:9-10
42.74 s
[really-safe-money] @@ -317,7 +317,7 @@
42.74 s
[really-safe-money] Double ->
42.74 s
[really-safe-money] Maybe Amount
42.74 s
[really-safe-money] fromDouble (QuantisationFactor qf) d
42.74 s
[really-safe-money] - | d < 0 = Nothing
42.74 s
[really-safe-money] + | d < 1 = Nothing
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] let resultDouble :: Double
42.74 s
[really-safe-money] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
42.74 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:320:5-10
42.74 s
[really-safe-money] @@ -317,7 +317,7 @@
42.74 s
[really-safe-money] Double ->
42.74 s
[really-safe-money] Maybe Amount
42.74 s
[really-safe-money] fromDouble (QuantisationFactor qf) d
42.74 s
[really-safe-money] - | d < 0 = Nothing
42.74 s
[really-safe-money] + | True = Nothing
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] let resultDouble :: Double
42.74 s
[really-safe-money] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
42.74 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:320:5-10
42.74 s
[really-safe-money] @@ -317,7 +317,7 @@
42.74 s
[really-safe-money] Double ->
42.74 s
[really-safe-money] Maybe Amount
42.74 s
[really-safe-money] fromDouble (QuantisationFactor qf) d
42.74 s
[really-safe-money] - | d < 0 = Nothing
42.74 s
[really-safe-money] + | not (d < 0) = Nothing
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] let resultDouble :: Double
42.74 s
[really-safe-money] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
42.74 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:327:9-16
42.74 s
[really-safe-money] @@ -324,7 +324,7 @@
42.74 s
[really-safe-money] in go resultDouble
42.74 s
[really-safe-money] where
42.74 s
[really-safe-money] go resultDouble
42.74 s
[really-safe-money] - | isNaN d = Nothing
42.74 s
[really-safe-money] + | True = Nothing
42.74 s
[really-safe-money] | isInfinite d = Nothing
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.74 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:327:9-16
42.74 s
[really-safe-money] @@ -324,7 +324,7 @@
42.74 s
[really-safe-money] in go resultDouble
42.74 s
[really-safe-money] where
42.74 s
[really-safe-money] go resultDouble
42.74 s
[really-safe-money] - | isNaN d = Nothing
42.74 s
[really-safe-money] + | not (isNaN d) = Nothing
42.74 s
[really-safe-money] | isInfinite d = Nothing
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.74 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:328:9-21
42.74 s
[really-safe-money] @@ -325,7 +325,7 @@
42.74 s
[really-safe-money] where
42.74 s
[really-safe-money] go resultDouble
42.74 s
[really-safe-money] | isNaN d = Nothing
42.74 s
[really-safe-money] - | isInfinite d = Nothing
42.74 s
[really-safe-money] + | True = Nothing
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.74 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
42.74 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:328:9-21
42.74 s
[really-safe-money] @@ -325,7 +325,7 @@
42.74 s
[really-safe-money] where
42.74 s
[really-safe-money] go resultDouble
42.74 s
[really-safe-money] | isNaN d = Nothing
42.74 s
[really-safe-money] - | isInfinite d = Nothing
42.74 s
[really-safe-money] + | not (isInfinite d) = Nothing
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.74 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
42.74 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:332:38-40
42.74 s
[really-safe-money] @@ -329,7 +329,7 @@
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.74 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
42.74 s
[really-safe-money] - if exponent resultDouble > 65
42.74 s
[really-safe-money] + if exponent resultDouble > 0
42.74 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] else
42.74 s
[really-safe-money] let ceiled :: Natural
42.74 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:332:38-40
42.74 s
[really-safe-money] @@ -329,7 +329,7 @@
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.74 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
42.74 s
[really-safe-money] - if exponent resultDouble > 65
42.74 s
[really-safe-money] + if exponent resultDouble > 1
42.74 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] else
42.74 s
[really-safe-money] let ceiled :: Natural
42.74 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:332:38-40
42.74 s
[really-safe-money] @@ -329,7 +329,7 @@
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.74 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
42.74 s
[really-safe-money] - if exponent resultDouble > 65
42.74 s
[really-safe-money] + if exponent resultDouble > -65
42.74 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] else
42.74 s
[really-safe-money] let ceiled :: Natural
42.74 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:332:14-40
42.74 s
[really-safe-money] @@ -329,7 +329,7 @@
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.74 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
42.74 s
[really-safe-money] - if exponent resultDouble > 65
42.74 s
[really-safe-money] + if True
42.74 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] else
42.74 s
[really-safe-money] let ceiled :: Natural
42.74 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:332:14-40
42.74 s
[really-safe-money] @@ -329,7 +329,7 @@
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.74 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
42.74 s
[really-safe-money] - if exponent resultDouble > 65
42.74 s
[really-safe-money] + if False
42.74 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] else
42.74 s
[really-safe-money] let ceiled :: Natural
42.74 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:332:14-40
42.74 s
[really-safe-money] @@ -329,7 +329,7 @@
42.74 s
[really-safe-money] | otherwise =
42.74 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.74 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
42.74 s
[really-safe-money] - if exponent resultDouble > 65
42.74 s
[really-safe-money] + if not (exponent resultDouble > 65)
42.74 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] else
42.74 s
[really-safe-money] let ceiled :: Natural
42.74 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:339:22-39
42.74 s
[really-safe-money] @@ -336,7 +336,7 @@
42.74 s
[really-safe-money] ceiled = (ceiling :: Double -> Natural) resultDouble
42.74 s
[really-safe-money] floored :: Natural
42.74 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
42.74 s
[really-safe-money] - in if ceiled == floored
42.74 s
[really-safe-money] + in if True
42.74 s
[really-safe-money] then
42.74 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.74 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:339:22-39
42.74 s
[really-safe-money] @@ -336,7 +336,7 @@
42.74 s
[really-safe-money] ceiled = (ceiling :: Double -> Natural) resultDouble
42.74 s
[really-safe-money] floored :: Natural
42.74 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
42.74 s
[really-safe-money] - in if ceiled == floored
42.74 s
[really-safe-money] + in if False
42.74 s
[really-safe-money] then
42.74 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.74 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:339:22-39
42.74 s
[really-safe-money] @@ -336,7 +336,7 @@
42.74 s
[really-safe-money] ceiled = (ceiling :: Double -> Natural) resultDouble
42.74 s
[really-safe-money] floored :: Natural
42.74 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
42.74 s
[really-safe-money] - in if ceiled == floored
42.74 s
[really-safe-money] + in if not (ceiled == floored)
42.74 s
[really-safe-money] then
42.74 s
[really-safe-money] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.74 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:341:26-91
42.74 s
[really-safe-money] @@ -338,7 +338,7 @@
42.74 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
42.74 s
[really-safe-money] in if ceiled == floored
42.74 s
[really-safe-money] then
42.74 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.74 s
[really-safe-money] + if True
42.74 s
[really-safe-money] then Nothing
42.74 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
42.74 s
[really-safe-money] else Nothing
42.74 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:341:26-91
42.74 s
[really-safe-money] @@ -338,7 +338,7 @@
42.74 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
42.74 s
[really-safe-money] in if ceiled == floored
42.74 s
[really-safe-money] then
42.74 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.74 s
[really-safe-money] + if False
42.74 s
[really-safe-money] then Nothing
42.75 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
42.75 s
[really-safe-money] else Nothing
42.75 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:341:26-91
42.75 s
[really-safe-money] @@ -338,7 +338,7 @@
42.75 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
42.75 s
[really-safe-money] in if ceiled == floored
42.75 s
[really-safe-money] then
42.75 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.75 s
[really-safe-money] + if not (ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64))
42.75 s
[really-safe-money] then Nothing
42.75 s
[really-safe-money] else Just $ Amount (fromIntegral ceiled)
42.75 s
[really-safe-money] else Nothing
42.75 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:341:23-65
42.75 s
[really-safe-money] @@ -338,9 +338,9 @@
42.75 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
42.75 s
[really-safe-money] in if ceiled == floored
42.75 s
[really-safe-money] then
42.75 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.75 s
[really-safe-money] - then Nothing
42.75 s
[really-safe-money] - else Just $ Amount (fromIntegral ceiled)
42.75 s
[really-safe-money] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.75 s
[really-safe-money] + then Nothing
42.75 s
[really-safe-money] + else Just $ Amount (fromIntegral ceiled)
42.75 s
[really-safe-money] else Nothing
42.75 s
[really-safe-money]
42.75 s
[really-safe-money] -- | Turn an amount of money into a 'Double'.
42.75 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:339:19-33
42.75 s
[really-safe-money] @@ -336,12 +336,12 @@
42.75 s
[really-safe-money] ceiled = (ceiling :: Double -> Natural) resultDouble
42.75 s
[really-safe-money] floored :: Natural
42.75 s
[really-safe-money] floored = (floor :: Double -> Natural) resultDouble
42.75 s
[really-safe-money] - in if ceiled == floored
42.75 s
[really-safe-money] - then
42.75 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.75 s
[really-safe-money] - then Nothing
42.75 s
[really-safe-money] - else Just $ Amount (fromIntegral ceiled)
42.75 s
[really-safe-money] - else Nothing
42.75 s
[really-safe-money] + in if ceiled == floored
42.75 s
[really-safe-money] + then
42.75 s
[really-safe-money] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.75 s
[really-safe-money] + then Nothing
42.75 s
[really-safe-money] + else Just $ Amount (fromIntegral ceiled)
42.75 s
[really-safe-money] + else Nothing
42.75 s
[really-safe-money]
42.75 s
[really-safe-money] -- | Turn an amount of money into a 'Double'.
42.75 s
[really-safe-money] --
42.75 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:332:11-33
42.75 s
[really-safe-money] @@ -329,19 +329,19 @@
42.75 s
[really-safe-money] | otherwise =
42.75 s
[really-safe-money] -- Shortcut for numbers that are way too big anyway
42.75 s
[really-safe-money] -- so that we don't have to compute the according 'Natural' values.
42.75 s
[really-safe-money] - if exponent resultDouble > 65
42.75 s
[really-safe-money] - then Nothing
42.75 s
[really-safe-money] - else
42.75 s
[really-safe-money] - let ceiled :: Natural
42.75 s
[really-safe-money] - ceiled = (ceiling :: Double -> Natural) resultDouble
42.75 s
[really-safe-money] - floored :: Natural
42.75 s
[really-safe-money] - floored = (floor :: Double -> Natural) resultDouble
42.75 s
[really-safe-money] - in if ceiled == floored
42.75 s
[really-safe-money] - then
42.75 s
[really-safe-money] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.75 s
[really-safe-money] - then Nothing
42.75 s
[really-safe-money] - else Just $ Amount (fromIntegral ceiled)
42.75 s
[really-safe-money] - else Nothing
42.75 s
[really-safe-money] + if exponent resultDouble > 65
42.75 s
[really-safe-money] + then Nothing
42.75 s
[really-safe-money] + else
42.75 s
[really-safe-money] + let ceiled :: Natural
42.75 s
[really-safe-money] + ceiled = (ceiling :: Double -> Natural) resultDouble
42.75 s
[really-safe-money] + floored :: Natural
42.75 s
[really-safe-money] + floored = (floor :: Double -> Natural) resultDouble
42.75 s
[really-safe-money] + in if ceiled == floored
42.75 s
[really-safe-money] + then
42.75 s
[really-safe-money] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
42.75 s
[really-safe-money] + then Nothing
42.75 s
[really-safe-money] + else Just $ Amount (fromIntegral ceiled)
42.75 s
[really-safe-money] + else Nothing
42.75 s
[really-safe-money]
42.75 s
[really-safe-money] -- | Turn an amount of money into a 'Double'.
42.75 s
[really-safe-money] --
42.75 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:290:79-80
42.75 s
[really-safe-money] @@ -287,7 +287,7 @@
42.75 s
[really-safe-money] -- >>> toRatio (QuantisationFactor 100) (Amount 1)
42.75 s
[really-safe-money] -- 1 % 100
42.75 s
[really-safe-money] toRatio :: QuantisationFactor -> Amount -> Ratio Natural
42.75 s
[really-safe-money] -toRatio (QuantisationFactor 0) a = fromIntegral (toMinimalQuantisations a) :% 0
42.75 s
[really-safe-money] +toRatio (QuantisationFactor 0) a = fromIntegral (toMinimalQuantisations a) :% 1
42.75 s
[really-safe-money] toRatio (QuantisationFactor quantisationFactor) a =
42.75 s
[really-safe-money] (fromIntegral :: Word64 -> Natural) (toMinimalQuantisations a)
42.75 s
[really-safe-money] % (fromIntegral :: Word32 -> Natural) quantisationFactor
42.75 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:494:96-97
42.75 s
[really-safe-money] @@ -491,7 +491,7 @@
42.75 s
[really-safe-money] let maxBoundI :: Integer
42.75 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
42.75 s
[really-safe-money] r :: Integer
42.75 s
[really-safe-money] - r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
42.75 s
[really-safe-money] + r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 1 l
42.75 s
[really-safe-money] in if r > maxBoundI
42.75 s
[really-safe-money] then Nothing
42.75 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.75 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:495:10-23
42.75 s
[really-safe-money] @@ -492,7 +492,7 @@
42.75 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
42.75 s
[really-safe-money] r :: Integer
42.75 s
[really-safe-money] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
42.75 s
[really-safe-money] - in if r > maxBoundI
42.75 s
[really-safe-money] + in if True
42.75 s
[really-safe-money] then Nothing
42.75 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.75 s
[really-safe-money]
42.75 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:495:10-23
42.75 s
[really-safe-money] @@ -492,7 +492,7 @@
42.75 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
42.75 s
[really-safe-money] r :: Integer
42.75 s
[really-safe-money] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
42.75 s
[really-safe-money] - in if r > maxBoundI
42.75 s
[really-safe-money] + in if False
42.75 s
[really-safe-money] then Nothing
42.75 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.75 s
[really-safe-money]
42.75 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:495:10-23
42.75 s
[really-safe-money] @@ -492,7 +492,7 @@
42.75 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
42.75 s
[really-safe-money] r :: Integer
42.75 s
[really-safe-money] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
42.75 s
[really-safe-money] - in if r > maxBoundI
42.75 s
[really-safe-money] + in if not (r > maxBoundI)
42.75 s
[really-safe-money] then Nothing
42.75 s
[really-safe-money] else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.75 s
[really-safe-money]
42.75 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:495:7-66
42.75 s
[really-safe-money] @@ -492,9 +492,9 @@
42.75 s
[really-safe-money] maxBoundI = fromIntegral (maxBound :: Word64)
42.75 s
[really-safe-money] r :: Integer
42.75 s
[really-safe-money] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
42.75 s
[really-safe-money] - in if r > maxBoundI
42.75 s
[really-safe-money] - then Nothing
42.75 s
[really-safe-money] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.75 s
[really-safe-money] + in if r > maxBoundI
42.75 s
[really-safe-money] + then Nothing
42.75 s
[really-safe-money] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
42.75 s
[really-safe-money]
42.75 s
[really-safe-money] -- | Add two amounts of money.
42.75 s
[really-safe-money] --
42.75 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:250:15-16
42.75 s
[really-safe-money] @@ -247,7 +247,7 @@
42.75 s
[really-safe-money] -- >>> zero
42.75 s
[really-safe-money] -- Amount 0
42.75 s
[really-safe-money] zero :: Amount
42.75 s
[really-safe-money] -zero = Amount 0
42.75 s
[really-safe-money] +zero = Amount 1
42.75 s
[really-safe-money]
42.75 s
[really-safe-money] -- | Turn an amount into a number of minimal quantisations.
42.75 s
[really-safe-money] --
42.75 s
[really-safe-money] added mutation IntLit at src/Money/Amount.hs:661:30-31
42.75 s
[really-safe-money] @@ -658,7 +658,7 @@
42.75 s
[really-safe-money] -- | The amount and the real rate that was used, considering the 'Rounding'
42.75 s
[really-safe-money] (Maybe Amount, Ratio Natural)
42.75 s
[really-safe-money] fraction _ (Amount 0) f = (Just zero, f)
42.75 s
[really-safe-money] -fraction _ _ 0 = (Just zero, 0)
42.75 s
[really-safe-money] +fraction _ _ 0 = (Just zero, 1)
42.75 s
[really-safe-money] fraction r (Amount a) f =
42.75 s
[really-safe-money] let amountAsRatio :: Ratio Natural
42.75 s
[really-safe-money] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
42.75 s
[really-safe-money] added mutation RemoveCase at src/Money/Amount.hs:668:17-30
42.75 s
[really-safe-money] @@ -665,10 +665,10 @@
42.75 s
[really-safe-money] theoreticalResult :: Ratio Natural
42.75 s
[really-safe-money] theoreticalResult = amountAsRatio * f
42.75 s
[really-safe-money] rounder :: Ratio Natural -> Natural
42.75 s
[really-safe-money] - rounder = case r of
42.75 s
[really-safe-money] - RoundUp -> ceiling
42.75 s
[really-safe-money] - RoundDown -> floor
42.75 s
[really-safe-money] - RoundNearest -> round
42.75 s
[really-safe-money] + rounder = case r of
42.75 s
[really-safe-money] + RoundUp -> ceiling
42.75 s
[really-safe-money] + RoundDown -> floor
42.75 s
[really-safe-money] + RoundNearest -> round
42.75 s
[really-safe-money] roundedResult :: Natural
42.75 s
[really-safe-money] roundedResult = rounder theoreticalResult
42.75 s
[really-safe-money] actualRate :: Ratio Natural
42.75 s
[really-safe-money] added mutation RemoveCase at src/Money/Amount.hs:668:17-30
42.75 s
[really-safe-money] @@ -665,10 +665,10 @@
42.75 s
[really-safe-money] theoreticalResult :: Ratio Natural
42.75 s
[really-safe-money] theoreticalResult = amountAsRatio * f
42.75 s
[really-safe-money] rounder :: Ratio Natural -> Natural
42.75 s
[really-safe-money] - rounder = case r of
42.75 s
[really-safe-money] - RoundUp -> ceiling
42.75 s
[really-safe-money] - RoundDown -> floor
42.75 s
[really-safe-money] - RoundNearest -> round
42.75 s
[really-safe-money] + rounder = case r of
42.75 s
[really-safe-money] + RoundUp -> ceiling
42.75 s
[really-safe-money] + RoundDown -> floor
42.75 s
[really-safe-money] + RoundNearest -> round
42.75 s
[really-safe-money] roundedResult :: Natural
42.75 s
[really-safe-money] roundedResult = rounder theoreticalResult
42.75 s
[really-safe-money] actualRate :: Ratio Natural
42.75 s
[really-safe-money] added mutation RemoveCase at src/Money/Amount.hs:668:17-30
42.75 s
[really-safe-money] @@ -665,10 +665,10 @@
42.75 s
[really-safe-money] theoreticalResult :: Ratio Natural
42.75 s
[really-safe-money] theoreticalResult = amountAsRatio * f
42.75 s
[really-safe-money] rounder :: Ratio Natural -> Natural
42.75 s
[really-safe-money] - rounder = case r of
42.75 s
[really-safe-money] - RoundUp -> ceiling
42.75 s
[really-safe-money] - RoundDown -> floor
42.75 s
[really-safe-money] - RoundNearest -> round
42.75 s
[really-safe-money] + rounder = case r of
42.75 s
[really-safe-money] + RoundUp -> ceiling
42.75 s
[really-safe-money] + RoundDown -> floor
42.75 s
[really-safe-money] + RoundNearest -> round
42.75 s
[really-safe-money] roundedResult :: Natural
42.75 s
[really-safe-money] roundedResult = rounder theoreticalResult
42.75 s
[really-safe-money] actualRate :: Ratio Natural
42.75 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:681:12-37
42.75 s
[really-safe-money] @@ -678,7 +678,7 @@
42.75 s
[really-safe-money] maxBoundN :: Natural
42.75 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
42.75 s
[really-safe-money] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
42.75 s
[really-safe-money] - in ( if roundedResult > maxBoundN
42.75 s
[really-safe-money] + in ( if True
42.75 s
[really-safe-money] then Nothing
42.75 s
[really-safe-money] else Just result,
42.75 s
[really-safe-money] actualRate
42.75 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:681:12-37
42.75 s
[really-safe-money] @@ -678,7 +678,7 @@
42.76 s
[really-safe-money] maxBoundN :: Natural
42.76 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
42.76 s
[really-safe-money] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
42.76 s
[really-safe-money] - in ( if roundedResult > maxBoundN
42.76 s
[really-safe-money] + in ( if False
42.76 s
[really-safe-money] then Nothing
42.76 s
[really-safe-money] else Just result,
42.76 s
[really-safe-money] actualRate
42.76 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:681:12-37
42.76 s
[really-safe-money] @@ -678,7 +678,7 @@
42.76 s
[really-safe-money] maxBoundN :: Natural
42.76 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
42.76 s
[really-safe-money] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
42.76 s
[really-safe-money] - in ( if roundedResult > maxBoundN
42.76 s
[really-safe-money] + in ( if not (roundedResult > maxBoundN)
42.76 s
[really-safe-money] then Nothing
42.76 s
[really-safe-money] else Just result,
42.76 s
[really-safe-money] actualRate
42.76 s
[really-safe-money] added mutation CondFlip at src/Money/Amount.hs:681:9-27
42.76 s
[really-safe-money] @@ -678,9 +678,9 @@
42.76 s
[really-safe-money] maxBoundN :: Natural
42.76 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
42.76 s
[really-safe-money] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
42.76 s
[really-safe-money] - in ( if roundedResult > maxBoundN
42.76 s
[really-safe-money] - then Nothing
42.76 s
[really-safe-money] - else Just result,
42.76 s
[really-safe-money] + in ( if roundedResult > maxBoundN
42.76 s
[really-safe-money] + then Nothing
42.76 s
[really-safe-money] + else Just result,
42.76 s
[really-safe-money] actualRate
42.76 s
[really-safe-money] )
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:806:79-92
42.76 s
[really-safe-money] @@ -803,4 +803,4 @@
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
42.76 s
[really-safe-money] validateStrictlyPositive :: Amount -> Validation
42.76 s
[really-safe-money] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
42.76 s
[really-safe-money] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ True
42.76 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:806:79-92
42.76 s
[really-safe-money] @@ -803,4 +803,4 @@
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
42.76 s
[really-safe-money] validateStrictlyPositive :: Amount -> Validation
42.76 s
[really-safe-money] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
42.76 s
[really-safe-money] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ False
42.76 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:806:79-92
42.76 s
[really-safe-money] @@ -803,4 +803,4 @@
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
42.76 s
[really-safe-money] validateStrictlyPositive :: Amount -> Validation
42.76 s
[really-safe-money] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
42.76 s
[really-safe-money] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ not (amount > zero)
42.76 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:607:15-22
42.76 s
[really-safe-money] @@ -604,7 +604,7 @@
42.76 s
[really-safe-money] case ad of
42.76 s
[really-safe-money] DistributedIntoUnequalChunks _ a1 _ a2 ->
42.76 s
[really-safe-money] declare "The larger chunks are larger" $
42.76 s
[really-safe-money] - a1 > a2
42.76 s
[really-safe-money] + True
42.76 s
[really-safe-money] _ -> valid
42.76 s
[really-safe-money] ]
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] added mutation ConstBool at src/Money/Amount.hs:607:15-22
42.76 s
[really-safe-money] @@ -604,7 +604,7 @@
42.76 s
[really-safe-money] case ad of
42.76 s
[really-safe-money] DistributedIntoUnequalChunks _ a1 _ a2 ->
42.76 s
[really-safe-money] declare "The larger chunks are larger" $
42.76 s
[really-safe-money] - a1 > a2
42.76 s
[really-safe-money] + False
42.76 s
[really-safe-money] _ -> valid
42.76 s
[really-safe-money] ]
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] added mutation Negate at src/Money/Amount.hs:607:15-22
42.76 s
[really-safe-money] @@ -604,7 +604,7 @@
42.76 s
[really-safe-money] case ad of
42.76 s
[really-safe-money] DistributedIntoUnequalChunks _ a1 _ a2 ->
42.76 s
[really-safe-money] declare "The larger chunks are larger" $
42.76 s
[really-safe-money] - a1 > a2
42.76 s
[really-safe-money] + not (a1 > a2)
42.76 s
[really-safe-money] _ -> valid
42.76 s
[really-safe-money] ]
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] added mutation RemoveCase at src/Money/Amount.hs:604:9-21
42.76 s
[really-safe-money] @@ -601,11 +601,11 @@
42.76 s
[really-safe-money] validate ad =
42.76 s
[really-safe-money] mconcat
42.76 s
[really-safe-money] [ genericValidate ad,
42.76 s
[really-safe-money] - case ad of
42.76 s
[really-safe-money] - DistributedIntoUnequalChunks _ a1 _ a2 ->
42.76 s
[really-safe-money] - declare "The larger chunks are larger" $
42.76 s
[really-safe-money] - a1 > a2
42.76 s
[really-safe-money] - _ -> valid
42.76 s
[really-safe-money] + case ad of
42.76 s
[really-safe-money] + DistributedIntoUnequalChunks _ a1 _ a2 ->
42.76 s
[really-safe-money] + declare "The larger chunks are larger" $
42.76 s
[really-safe-money] + a1 > a2
42.76 s
[really-safe-money] + _ -> valid
42.76 s
[really-safe-money] ]
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] instance (NFData amount) => NFData (Distribution amount)
42.76 s
[really-safe-money] added mutation RemoveCase at src/Money/Amount.hs:604:9-21
42.76 s
[really-safe-money] @@ -601,11 +601,11 @@
42.76 s
[really-safe-money] validate ad =
42.76 s
[really-safe-money] mconcat
42.76 s
[really-safe-money] [ genericValidate ad,
42.76 s
[really-safe-money] - case ad of
42.76 s
[really-safe-money] - DistributedIntoUnequalChunks _ a1 _ a2 ->
42.76 s
[really-safe-money] - declare "The larger chunks are larger" $
42.76 s
[really-safe-money] - a1 > a2
42.76 s
[really-safe-money] - _ -> valid
42.76 s
[really-safe-money] + case ad of
42.76 s
[really-safe-money] + DistributedIntoUnequalChunks _ a1 _ a2 ->
42.76 s
[really-safe-money] + declare "The larger chunks are larger" $
42.76 s
[really-safe-money] + a1 > a2
42.76 s
[really-safe-money] + _ -> valid
42.76 s
[really-safe-money] ]
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] instance (NFData amount) => NFData (Distribution amount)
42.76 s
[really-safe-money] added mutation ListLit at src/Money/Amount.hs:603:7-8
42.76 s
[really-safe-money] @@ -600,13 +600,7 @@
42.76 s
[really-safe-money] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
42.76 s
[really-safe-money] validate ad =
42.76 s
[really-safe-money] mconcat
42.76 s
[really-safe-money] - [ genericValidate ad,
42.76 s
[really-safe-money] - case ad of
42.76 s
[really-safe-money] - DistributedIntoUnequalChunks _ a1 _ a2 ->
42.76 s
[really-safe-money] - declare "The larger chunks are larger" $
42.76 s
[really-safe-money] - a1 > a2
42.76 s
[really-safe-money] - _ -> valid
42.76 s
[really-safe-money] - ]
42.76 s
[really-safe-money] + []
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] instance (NFData amount) => NFData (Distribution amount)
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] added mutation ListLit at src/Money/Amount.hs:603:7-8
42.76 s
[really-safe-money] @@ -600,13 +600,13 @@
42.76 s
[really-safe-money] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
42.76 s
[really-safe-money] validate ad =
42.76 s
[really-safe-money] mconcat
42.76 s
[really-safe-money] - [ genericValidate ad,
42.76 s
[really-safe-money] - case ad of
42.76 s
[really-safe-money] - DistributedIntoUnequalChunks _ a1 _ a2 ->
42.76 s
[really-safe-money] - declare "The larger chunks are larger" $
42.76 s
[really-safe-money] - a1 > a2
42.76 s
[really-safe-money] - _ -> valid
42.76 s
[really-safe-money] - ]
42.76 s
[really-safe-money] + [ genericValidate ad,
42.76 s
[really-safe-money] + case ad of
42.76 s
[really-safe-money] + DistributedIntoUnequalChunks _ a1 _ a2 ->
42.76 s
[really-safe-money] + declare "The larger chunks are larger" $
42.76 s
[really-safe-money] + a1 > a2
42.76 s
[really-safe-money] + _ -> valid
42.76 s
[really-safe-money] + ]
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] instance (NFData amount) => NFData (Distribution amount)
42.76 s
[really-safe-money]
42.76 s
[really-safe-money] added 81 mutations
44.42 s
[really-safe-money] [ 7 of 12] Compiling Money.MultiAmount ( src/Money/MultiAmount.hs, dist/build/Money/MultiAmount.p_o )
44.44 s
[really-safe-money] mutation: instrumenting Money.MultiAmount
44.44 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
44.44 s
[really-safe-money] @@ -156,10 +156,10 @@
44.44 s
[really-safe-money] fmap
44.44 s
[really-safe-money] ( ( \theoreticalResult ->
44.44 s
[really-safe-money] let rounder :: Ratio Natural -> Natural
44.44 s
[really-safe-money] - rounder = case r of
44.44 s
[really-safe-money] - RoundUp -> ceiling
44.44 s
[really-safe-money] - RoundDown -> floor
44.44 s
[really-safe-money] - RoundNearest -> round
44.44 s
[really-safe-money] + rounder = case r of
44.44 s
[really-safe-money] + RoundUp -> ceiling
44.44 s
[really-safe-money] + RoundDown -> floor
44.44 s
[really-safe-money] + RoundNearest -> round
44.44 s
[really-safe-money] roundedResult :: Natural
44.44 s
[really-safe-money] roundedResult = rounder theoreticalResult
44.44 s
[really-safe-money] maxBoundN :: Natural
44.44 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
44.44 s
[really-safe-money] @@ -156,10 +156,10 @@
44.44 s
[really-safe-money] fmap
44.44 s
[really-safe-money] ( ( \theoreticalResult ->
44.44 s
[really-safe-money] let rounder :: Ratio Natural -> Natural
44.44 s
[really-safe-money] - rounder = case r of
44.44 s
[really-safe-money] - RoundUp -> ceiling
44.44 s
[really-safe-money] - RoundDown -> floor
44.44 s
[really-safe-money] - RoundNearest -> round
44.44 s
[really-safe-money] + rounder = case r of
44.44 s
[really-safe-money] + RoundUp -> ceiling
44.44 s
[really-safe-money] + RoundDown -> floor
44.44 s
[really-safe-money] + RoundNearest -> round
44.44 s
[really-safe-money] roundedResult :: Natural
44.44 s
[really-safe-money] roundedResult = rounder theoreticalResult
44.44 s
[really-safe-money] maxBoundN :: Natural
44.44 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
44.44 s
[really-safe-money] @@ -156,10 +156,10 @@
44.44 s
[really-safe-money] fmap
44.44 s
[really-safe-money] ( ( \theoreticalResult ->
44.44 s
[really-safe-money] let rounder :: Ratio Natural -> Natural
44.44 s
[really-safe-money] - rounder = case r of
44.44 s
[really-safe-money] - RoundUp -> ceiling
44.44 s
[really-safe-money] - RoundDown -> floor
44.45 s
[really-safe-money] - RoundNearest -> round
44.45 s
[really-safe-money] + rounder = case r of
44.45 s
[really-safe-money] + RoundUp -> ceiling
44.45 s
[really-safe-money] + RoundDown -> floor
44.45 s
[really-safe-money] + RoundNearest -> round
44.45 s
[really-safe-money] roundedResult :: Natural
44.45 s
[really-safe-money] roundedResult = rounder theoreticalResult
44.45 s
[really-safe-money] maxBoundN :: Natural
44.45 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:168:20-45
44.45 s
[really-safe-money] @@ -165,7 +165,7 @@
44.45 s
[really-safe-money] maxBoundN :: Natural
44.45 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
44.45 s
[really-safe-money] actualResult =
44.45 s
[really-safe-money] - if roundedResult > maxBoundN
44.45 s
[really-safe-money] + if True
44.45 s
[really-safe-money] then Nothing
44.45 s
[really-safe-money] else Just (fromIntegral roundedResult)
44.45 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
44.45 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:168:20-45
44.45 s
[really-safe-money] @@ -165,7 +165,7 @@
44.45 s
[really-safe-money] maxBoundN :: Natural
44.45 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
44.45 s
[really-safe-money] actualResult =
44.45 s
[really-safe-money] - if roundedResult > maxBoundN
44.45 s
[really-safe-money] + if False
44.45 s
[really-safe-money] then Nothing
44.45 s
[really-safe-money] else Just (fromIntegral roundedResult)
44.45 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
44.45 s
[really-safe-money] added mutation Negate at src/Money/MultiAmount.hs:168:20-45
44.45 s
[really-safe-money] @@ -165,7 +165,7 @@
44.45 s
[really-safe-money] maxBoundN :: Natural
44.45 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
44.45 s
[really-safe-money] actualResult =
44.45 s
[really-safe-money] - if roundedResult > maxBoundN
44.45 s
[really-safe-money] + if not (roundedResult > maxBoundN)
44.45 s
[really-safe-money] then Nothing
44.45 s
[really-safe-money] else Just (fromIntegral roundedResult)
44.45 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
44.45 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAmount.hs:168:17-57
44.45 s
[really-safe-money] @@ -165,9 +165,9 @@
44.45 s
[really-safe-money] maxBoundN :: Natural
44.45 s
[really-safe-money] maxBoundN = fromIntegral (maxBound :: Word64)
44.45 s
[really-safe-money] actualResult =
44.45 s
[really-safe-money] - if roundedResult > maxBoundN
44.45 s
[really-safe-money] - then Nothing
44.45 s
[really-safe-money] - else Just (fromIntegral roundedResult)
44.45 s
[really-safe-money] + if roundedResult > maxBoundN
44.45 s
[really-safe-money] + then Nothing
44.45 s
[really-safe-money] + else Just (fromIntegral roundedResult)
44.45 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
44.45 s
[really-safe-money] LT -> RoundedDown
44.45 s
[really-safe-money] EQ -> DidNotRound
44.45 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
44.45 s
[really-safe-money] @@ -168,10 +168,10 @@
44.45 s
[really-safe-money] if roundedResult > maxBoundN
44.45 s
[really-safe-money] then Nothing
44.45 s
[really-safe-money] else Just (fromIntegral roundedResult)
44.45 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
44.45 s
[really-safe-money] - LT -> RoundedDown
44.45 s
[really-safe-money] - EQ -> DidNotRound
44.45 s
[really-safe-money] - GT -> RoundedUp
44.45 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
44.45 s
[really-safe-money] + LT -> RoundedDown
44.45 s
[really-safe-money] + EQ -> DidNotRound
44.45 s
[really-safe-money] + GT -> RoundedUp
44.45 s
[really-safe-money] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
44.45 s
[really-safe-money] )
44.45 s
[really-safe-money] . Prelude.sum
44.45 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
44.45 s
[really-safe-money] @@ -168,10 +168,10 @@
44.45 s
[really-safe-money] if roundedResult > maxBoundN
44.45 s
[really-safe-money] then Nothing
44.45 s
[really-safe-money] else Just (fromIntegral roundedResult)
44.45 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
44.45 s
[really-safe-money] - LT -> RoundedDown
44.45 s
[really-safe-money] - EQ -> DidNotRound
44.45 s
[really-safe-money] - GT -> RoundedUp
44.45 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
44.45 s
[really-safe-money] + LT -> RoundedDown
44.45 s
[really-safe-money] + EQ -> DidNotRound
44.45 s
[really-safe-money] + GT -> RoundedUp
44.45 s
[really-safe-money] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
44.45 s
[really-safe-money] )
44.45 s
[really-safe-money] . Prelude.sum
44.45 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
44.45 s
[really-safe-money] @@ -168,10 +168,10 @@
44.45 s
[really-safe-money] if roundedResult > maxBoundN
44.45 s
[really-safe-money] then Nothing
44.45 s
[really-safe-money] else Just (fromIntegral roundedResult)
44.45 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
44.45 s
[really-safe-money] - LT -> RoundedDown
44.45 s
[really-safe-money] - EQ -> DidNotRound
44.45 s
[really-safe-money] - GT -> RoundedUp
44.45 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
44.45 s
[really-safe-money] + LT -> RoundedDown
44.45 s
[really-safe-money] + EQ -> DidNotRound
44.45 s
[really-safe-money] + GT -> RoundedUp
44.45 s
[really-safe-money] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
44.45 s
[really-safe-money] )
44.45 s
[really-safe-money] . Prelude.sum
44.45 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:119:12-28
44.45 s
[really-safe-money] @@ -116,7 +116,7 @@
44.45 s
[really-safe-money] Just a -> do
44.45 s
[really-safe-money] r <- Amount.subtract a amount
44.45 s
[really-safe-money] Just $
44.45 s
[really-safe-money] - if r == Amount.zero
44.45 s
[really-safe-money] + if True
44.45 s
[really-safe-money] then M.delete currency m
44.45 s
[really-safe-money] else M.insert currency r m
44.45 s
[really-safe-money]
44.45 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:119:12-28
44.45 s
[really-safe-money] @@ -116,7 +116,7 @@
44.45 s
[really-safe-money] Just a -> do
44.45 s
[really-safe-money] r <- Amount.subtract a amount
44.45 s
[really-safe-money] Just $
44.45 s
[really-safe-money] - if r == Amount.zero
44.45 s
[really-safe-money] + if False
44.45 s
[really-safe-money] then M.delete currency m
44.45 s
[really-safe-money] else M.insert currency r m
44.45 s
[really-safe-money]
44.45 s
[really-safe-money] added mutation Negate at src/Money/MultiAmount.hs:119:12-28
44.45 s
[really-safe-money] @@ -116,7 +116,7 @@
44.45 s
[really-safe-money] Just a -> do
44.45 s
[really-safe-money] r <- Amount.subtract a amount
44.45 s
[really-safe-money] Just $
44.45 s
[really-safe-money] - if r == Amount.zero
44.45 s
[really-safe-money] + if not (r == Amount.zero)
44.45 s
[really-safe-money] then M.delete currency m
44.45 s
[really-safe-money] else M.insert currency r m
44.45 s
[really-safe-money]
44.45 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAmount.hs:119:9-37
44.45 s
[really-safe-money] @@ -116,9 +116,9 @@
44.45 s
[really-safe-money] Just a -> do
44.45 s
[really-safe-money] r <- Amount.subtract a amount
44.45 s
[really-safe-money] Just $
44.45 s
[really-safe-money] - if r == Amount.zero
44.45 s
[really-safe-money] - then M.delete currency m
44.45 s
[really-safe-money] - else M.insert currency r m
44.45 s
[really-safe-money] + if r == Amount.zero
44.45 s
[really-safe-money] + then M.delete currency m
44.45 s
[really-safe-money] + else M.insert currency r m
44.45 s
[really-safe-money]
44.45 s
[really-safe-money] -- | Try to convert every amount to one currency.
44.45 s
[really-safe-money] --
44.45 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:114:22-37
44.45 s
[really-safe-money] @@ -111,14 +111,14 @@
44.45 s
[really-safe-money] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
44.45 s
[really-safe-money] subtractAmount m _ (Amount 0) = Just m
44.45 s
[really-safe-money] subtractAmount (MultiAmount m) currency amount =
44.45 s
[really-safe-money] - fmap MultiAmount $ case M.lookup currency m of
44.45 s
[really-safe-money] - Nothing -> Nothing -- Can't go below zero
44.45 s
[really-safe-money] - Just a -> do
44.45 s
[really-safe-money] - r <- Amount.subtract a amount
44.45 s
[really-safe-money] - Just $
44.45 s
[really-safe-money] - if r == Amount.zero
44.45 s
[really-safe-money] - then M.delete currency m
44.45 s
[really-safe-money] - else M.insert currency r m
44.45 s
[really-safe-money] + fmap MultiAmount $ case M.lookup currency m of
44.45 s
[really-safe-money] + Nothing -> Nothing -- Can't go below zero
44.45 s
[really-safe-money] + Just a -> do
44.45 s
[really-safe-money] + r <- Amount.subtract a amount
44.45 s
[really-safe-money] + Just $
44.45 s
[really-safe-money] + if r == Amount.zero
44.45 s
[really-safe-money] + then M.delete currency m
44.45 s
[really-safe-money] + else M.insert currency r m
44.45 s
[really-safe-money]
44.45 s
[really-safe-money] -- | Try to convert every amount to one currency.
44.45 s
[really-safe-money] --
44.45 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:114:22-37
44.45 s
[really-safe-money] @@ -111,14 +111,14 @@
44.45 s
[really-safe-money] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
44.45 s
[really-safe-money] subtractAmount m _ (Amount 0) = Just m
44.45 s
[really-safe-money] subtractAmount (MultiAmount m) currency amount =
44.45 s
[really-safe-money] - fmap MultiAmount $ case M.lookup currency m of
44.45 s
[really-safe-money] - Nothing -> Nothing -- Can't go below zero
44.45 s
[really-safe-money] - Just a -> do
44.45 s
[really-safe-money] - r <- Amount.subtract a amount
44.45 s
[really-safe-money] - Just $
44.45 s
[really-safe-money] - if r == Amount.zero
44.45 s
[really-safe-money] - then M.delete currency m
44.45 s
[really-safe-money] - else M.insert currency r m
44.45 s
[really-safe-money] + fmap MultiAmount $ case M.lookup currency m of
44.45 s
[really-safe-money] + Nothing -> Nothing -- Can't go below zero
44.45 s
[really-safe-money] + Just a -> do
44.45 s
[really-safe-money] + r <- Amount.subtract a amount
44.45 s
[really-safe-money] + Just $
44.45 s
[really-safe-money] + if r == Amount.zero
44.45 s
[really-safe-money] + then M.delete currency m
44.45 s
[really-safe-money] + else M.insert currency r m
44.45 s
[really-safe-money]
44.45 s
[really-safe-money] -- | Try to convert every amount to one currency.
44.45 s
[really-safe-money] --
44.45 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:106:12-28
44.45 s
[really-safe-money] @@ -103,7 +103,7 @@
44.45 s
[really-safe-money] Just a -> do
44.45 s
[really-safe-money] r <- Amount.add a amount
44.45 s
[really-safe-money] Just $
44.45 s
[really-safe-money] - if r == Amount.zero
44.45 s
[really-safe-money] + if True
44.45 s
[really-safe-money] then M.delete currency m
44.45 s
[really-safe-money] else M.insert currency r m
44.45 s
[really-safe-money]
44.45 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:106:12-28
44.45 s
[really-safe-money] @@ -103,7 +103,7 @@
44.45 s
[really-safe-money] Just a -> do
44.45 s
[really-safe-money] r <- Amount.add a amount
44.45 s
[really-safe-money] Just $
44.45 s
[really-safe-money] - if r == Amount.zero
44.45 s
[really-safe-money] + if False
44.45 s
[really-safe-money] then M.delete currency m
44.45 s
[really-safe-money] else M.insert currency r m
44.45 s
[really-safe-money]
44.45 s
[really-safe-money] added mutation Negate at src/Money/MultiAmount.hs:106:12-28
44.45 s
[really-safe-money] @@ -103,7 +103,7 @@
44.45 s
[really-safe-money] Just a -> do
44.45 s
[really-safe-money] r <- Amount.add a amount
44.45 s
[really-safe-money] Just $
44.45 s
[really-safe-money] - if r == Amount.zero
44.45 s
[really-safe-money] + if not (r == Amount.zero)
44.45 s
[really-safe-money] then M.delete currency m
44.45 s
[really-safe-money] else M.insert currency r m
44.45 s
[really-safe-money]
44.45 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAmount.hs:106:9-37
44.45 s
[really-safe-money] @@ -103,9 +103,9 @@
44.45 s
[really-safe-money] Just a -> do
44.45 s
[really-safe-money] r <- Amount.add a amount
44.45 s
[really-safe-money] Just $
44.45 s
[really-safe-money] - if r == Amount.zero
44.45 s
[really-safe-money] - then M.delete currency m
44.45 s
[really-safe-money] - else M.insert currency r m
44.45 s
[really-safe-money] + if r == Amount.zero
44.45 s
[really-safe-money] + then M.delete currency m
44.45 s
[really-safe-money] + else M.insert currency r m
44.45 s
[really-safe-money]
44.46 s
[really-safe-money] -- | Subtract an 'Amount' from a 'MultiAmount'
44.46 s
[really-safe-money] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
44.46 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:101:22-37
44.46 s
[really-safe-money] @@ -98,14 +98,14 @@
44.46 s
[really-safe-money] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
44.46 s
[really-safe-money] addAmount m _ (Amount 0) = Just m
44.46 s
[really-safe-money] addAmount (MultiAmount m) currency amount =
44.46 s
[really-safe-money] - fmap MultiAmount $ case M.lookup currency m of
44.46 s
[really-safe-money] - Nothing -> Just $ M.insert currency amount m
44.46 s
[really-safe-money] - Just a -> do
44.46 s
[really-safe-money] - r <- Amount.add a amount
44.46 s
[really-safe-money] - Just $
44.46 s
[really-safe-money] - if r == Amount.zero
44.46 s
[really-safe-money] - then M.delete currency m
44.46 s
[really-safe-money] - else M.insert currency r m
44.46 s
[really-safe-money] + fmap MultiAmount $ case M.lookup currency m of
44.46 s
[really-safe-money] + Nothing -> Just $ M.insert currency amount m
44.46 s
[really-safe-money] + Just a -> do
44.46 s
[really-safe-money] + r <- Amount.add a amount
44.46 s
[really-safe-money] + Just $
44.46 s
[really-safe-money] + if r == Amount.zero
44.46 s
[really-safe-money] + then M.delete currency m
44.46 s
[really-safe-money] + else M.insert currency r m
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] -- | Subtract an 'Amount' from a 'MultiAmount'
44.46 s
[really-safe-money] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
44.46 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAmount.hs:101:22-37
44.46 s
[really-safe-money] @@ -98,14 +98,14 @@
44.46 s
[really-safe-money] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
44.46 s
[really-safe-money] addAmount m _ (Amount 0) = Just m
44.46 s
[really-safe-money] addAmount (MultiAmount m) currency amount =
44.46 s
[really-safe-money] - fmap MultiAmount $ case M.lookup currency m of
44.46 s
[really-safe-money] - Nothing -> Just $ M.insert currency amount m
44.46 s
[really-safe-money] - Just a -> do
44.46 s
[really-safe-money] - r <- Amount.add a amount
44.46 s
[really-safe-money] - Just $
44.46 s
[really-safe-money] - if r == Amount.zero
44.46 s
[really-safe-money] - then M.delete currency m
44.46 s
[really-safe-money] - else M.insert currency r m
44.46 s
[really-safe-money] + fmap MultiAmount $ case M.lookup currency m of
44.46 s
[really-safe-money] + Nothing -> Just $ M.insert currency amount m
44.46 s
[really-safe-money] + Just a -> do
44.46 s
[really-safe-money] + r <- Amount.add a amount
44.46 s
[really-safe-money] + Just $
44.46 s
[really-safe-money] + if r == Amount.zero
44.46 s
[really-safe-money] + then M.delete currency m
44.46 s
[really-safe-money] + else M.insert currency r m
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] -- | Subtract an 'Amount' from a 'MultiAmount'
44.46 s
[really-safe-money] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
44.46 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:73:6-27
44.46 s
[really-safe-money] @@ -70,7 +70,7 @@
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] fromAmount :: currency -> Amount -> MultiAmount currency
44.46 s
[really-safe-money] fromAmount currency amount =
44.46 s
[really-safe-money] - if amount == Amount.zero
44.46 s
[really-safe-money] + if True
44.46 s
[really-safe-money] then zero
44.46 s
[really-safe-money] else MultiAmount $ M.singleton currency amount
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:73:6-27
44.46 s
[really-safe-money] @@ -70,7 +70,7 @@
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] fromAmount :: currency -> Amount -> MultiAmount currency
44.46 s
[really-safe-money] fromAmount currency amount =
44.46 s
[really-safe-money] - if amount == Amount.zero
44.46 s
[really-safe-money] + if False
44.46 s
[really-safe-money] then zero
44.46 s
[really-safe-money] else MultiAmount $ M.singleton currency amount
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] added mutation Negate at src/Money/MultiAmount.hs:73:6-27
44.46 s
[really-safe-money] @@ -70,7 +70,7 @@
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] fromAmount :: currency -> Amount -> MultiAmount currency
44.46 s
[really-safe-money] fromAmount currency amount =
44.46 s
[really-safe-money] - if amount == Amount.zero
44.46 s
[really-safe-money] + if not (amount == Amount.zero)
44.46 s
[really-safe-money] then zero
44.46 s
[really-safe-money] else MultiAmount $ M.singleton currency amount
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAmount.hs:73:3-51
44.46 s
[really-safe-money] @@ -70,9 +70,9 @@
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] fromAmount :: currency -> Amount -> MultiAmount currency
44.46 s
[really-safe-money] fromAmount currency amount =
44.46 s
[really-safe-money] - if amount == Amount.zero
44.46 s
[really-safe-money] - then zero
44.46 s
[really-safe-money] - else MultiAmount $ M.singleton currency amount
44.46 s
[really-safe-money] + if amount == Amount.zero
44.46 s
[really-safe-money] + then zero
44.46 s
[really-safe-money] + else MultiAmount $ M.singleton currency amount
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] -- | No money of any currency
44.46 s
[really-safe-money] zero :: MultiAmount currency
44.46 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:66:13-29
44.46 s
[really-safe-money] @@ -63,7 +63,7 @@
44.46 s
[really-safe-money] [ genericValidate ma,
44.46 s
[really-safe-money] decorateMap m $ \_ a ->
44.46 s
[really-safe-money] declare "The amount is not zero" $
44.46 s
[really-safe-money] - a /= Amount.zero
44.46 s
[really-safe-money] + True
44.46 s
[really-safe-money] ]
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] instance (NFData currency) => NFData (MultiAmount currency)
44.46 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAmount.hs:66:13-29
44.46 s
[really-safe-money] @@ -63,7 +63,7 @@
44.46 s
[really-safe-money] [ genericValidate ma,
44.46 s
[really-safe-money] decorateMap m $ \_ a ->
44.46 s
[really-safe-money] declare "The amount is not zero" $
44.46 s
[really-safe-money] - a /= Amount.zero
44.46 s
[really-safe-money] + False
44.46 s
[really-safe-money] ]
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] instance (NFData currency) => NFData (MultiAmount currency)
44.46 s
[really-safe-money] added mutation Negate at src/Money/MultiAmount.hs:66:13-29
44.46 s
[really-safe-money] @@ -63,7 +63,7 @@
44.46 s
[really-safe-money] [ genericValidate ma,
44.46 s
[really-safe-money] decorateMap m $ \_ a ->
44.46 s
[really-safe-money] declare "The amount is not zero" $
44.46 s
[really-safe-money] - a /= Amount.zero
44.46 s
[really-safe-money] + not (a /= Amount.zero)
44.46 s
[really-safe-money] ]
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] instance (NFData currency) => NFData (MultiAmount currency)
44.46 s
[really-safe-money] added mutation ListLit at src/Money/MultiAmount.hs:63:7-8
44.46 s
[really-safe-money] @@ -60,11 +60,7 @@
44.46 s
[really-safe-money] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
44.46 s
[really-safe-money] validate ma@(MultiAmount m) =
44.46 s
[really-safe-money] mconcat
44.46 s
[really-safe-money] - [ genericValidate ma,
44.46 s
[really-safe-money] - decorateMap m $ \_ a ->
44.46 s
[really-safe-money] - declare "The amount is not zero" $
44.46 s
[really-safe-money] - a /= Amount.zero
44.46 s
[really-safe-money] - ]
44.46 s
[really-safe-money] + []
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] instance (NFData currency) => NFData (MultiAmount currency)
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] added mutation ListLit at src/Money/MultiAmount.hs:63:7-8
44.46 s
[really-safe-money] @@ -60,11 +60,11 @@
44.46 s
[really-safe-money] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
44.46 s
[really-safe-money] validate ma@(MultiAmount m) =
44.46 s
[really-safe-money] mconcat
44.46 s
[really-safe-money] - [ genericValidate ma,
44.46 s
[really-safe-money] - decorateMap m $ \_ a ->
44.46 s
[really-safe-money] - declare "The amount is not zero" $
44.46 s
[really-safe-money] - a /= Amount.zero
44.46 s
[really-safe-money] - ]
44.46 s
[really-safe-money] + [ genericValidate ma,
44.46 s
[really-safe-money] + decorateMap m $ \_ a ->
44.46 s
[really-safe-money] + declare "The amount is not zero" $
44.46 s
[really-safe-money] + a /= Amount.zero
44.46 s
[really-safe-money] + ]
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] instance (NFData currency) => NFData (MultiAmount currency)
44.46 s
[really-safe-money]
44.46 s
[really-safe-money] added 31 mutations
45.34 s
[really-safe-money] [ 8 of 12] Compiling Money.AmountOf ( src/Money/AmountOf.hs, dist/build/Money/AmountOf.p_o )
45.36 s
[really-safe-money] mutation: instrumenting Money.AmountOf
45.36 s
[really-safe-money] added mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
45.36 s
[really-safe-money] @@ -212,11 +212,11 @@
45.36 s
[really-safe-money]
45.36 s
[really-safe-money] -- | See 'Amount.distribute'
45.36 s
[really-safe-money] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
45.36 s
[really-safe-money] -distribute (AmountOf a) f = case Amount.distribute a f of
45.36 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.36 s
[really-safe-money] - DistributedZero -> DistributedZero
45.36 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
45.36 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
45.36 s
[really-safe-money] +distribute (AmountOf a) f = case Amount.distribute a f of
45.36 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.36 s
[really-safe-money] + DistributedZero -> DistributedZero
45.36 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
45.36 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
45.36 s
[really-safe-money]
45.36 s
[really-safe-money] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
45.36 s
[really-safe-money]
45.36 s
[really-safe-money] added mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
45.36 s
[really-safe-money] @@ -212,11 +212,11 @@
45.36 s
[really-safe-money]
45.36 s
[really-safe-money] -- | See 'Amount.distribute'
45.36 s
[really-safe-money] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
45.36 s
[really-safe-money] -distribute (AmountOf a) f = case Amount.distribute a f of
45.36 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.36 s
[really-safe-money] - DistributedZero -> DistributedZero
45.36 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
45.36 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
45.36 s
[really-safe-money] +distribute (AmountOf a) f = case Amount.distribute a f of
45.36 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.36 s
[really-safe-money] + DistributedZero -> DistributedZero
45.37 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
45.37 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
45.37 s
[really-safe-money]
45.37 s
[really-safe-money] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
45.37 s
[really-safe-money]
45.37 s
[really-safe-money] added mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
45.37 s
[really-safe-money] @@ -212,11 +212,11 @@
45.37 s
[really-safe-money]
45.37 s
[really-safe-money] -- | See 'Amount.distribute'
45.37 s
[really-safe-money] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
45.37 s
[really-safe-money] -distribute (AmountOf a) f = case Amount.distribute a f of
45.37 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.37 s
[really-safe-money] - DistributedZero -> DistributedZero
45.37 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
45.37 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
45.37 s
[really-safe-money] +distribute (AmountOf a) f = case Amount.distribute a f of
45.37 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.37 s
[really-safe-money] + DistributedZero -> DistributedZero
45.37 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
45.37 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
45.37 s
[really-safe-money]
45.37 s
[really-safe-money] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
45.37 s
[really-safe-money]
45.37 s
[really-safe-money] added mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
45.37 s
[really-safe-money] @@ -212,11 +212,11 @@
45.37 s
[really-safe-money]
45.37 s
[really-safe-money] -- | See 'Amount.distribute'
45.37 s
[really-safe-money] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
45.37 s
[really-safe-money] -distribute (AmountOf a) f = case Amount.distribute a f of
45.37 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.37 s
[really-safe-money] - DistributedZero -> DistributedZero
45.37 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
45.37 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
45.37 s
[really-safe-money] +distribute (AmountOf a) f = case Amount.distribute a f of
45.37 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.37 s
[really-safe-money] + DistributedZero -> DistributedZero
45.37 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
45.37 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
45.37 s
[really-safe-money]
45.37 s
[really-safe-money] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
45.37 s
[really-safe-money]
45.37 s
[really-safe-money] added 4 mutations
45.68 s
[really-safe-money] [ 9 of 12] Compiling Money.Account ( src/Money/Account.hs, dist/build/Money/Account.p_o )
45.70 s
[really-safe-money] mutation: instrumenting Money.Account
45.70 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:553:7-39
45.70 s
[really-safe-money] @@ -550,11 +550,11 @@
45.70 s
[really-safe-money] let aa1 = abs a1
45.70 s
[really-safe-money] aa2 = abs a2
45.70 s
[really-safe-money] mr = Amount.rate qf1 aa1 qf2 aa2
45.70 s
[really-safe-money] - in case (a1, a2) of
45.70 s
[really-safe-money] - (Positive _, Positive _) -> mr
45.70 s
[really-safe-money] - (Positive _, Negative _) -> Nothing
45.70 s
[really-safe-money] - (Negative _, Positive _) -> Nothing
45.70 s
[really-safe-money] - (Negative _, Negative _) -> mr
45.70 s
[really-safe-money] + in case (a1, a2) of
45.70 s
[really-safe-money] + (Positive _, Positive _) -> mr
45.70 s
[really-safe-money] + (Positive _, Negative _) -> Nothing
45.70 s
[really-safe-money] + (Negative _, Positive _) -> Nothing
45.70 s
[really-safe-money] + (Negative _, Negative _) -> mr
45.70 s
[really-safe-money]
45.70 s
[really-safe-money] -- | Convert an amount of money of one currency into an amount of money of
45.70 s
[really-safe-money] -- another currency using a conversion rate.
45.70 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:553:7-39
45.70 s
[really-safe-money] @@ -550,11 +550,11 @@
45.70 s
[really-safe-money] let aa1 = abs a1
45.70 s
[really-safe-money] aa2 = abs a2
45.70 s
[really-safe-money] mr = Amount.rate qf1 aa1 qf2 aa2
45.70 s
[really-safe-money] - in case (a1, a2) of
45.70 s
[really-safe-money] - (Positive _, Positive _) -> mr
45.70 s
[really-safe-money] - (Positive _, Negative _) -> Nothing
45.70 s
[really-safe-money] - (Negative _, Positive _) -> Nothing
45.70 s
[really-safe-money] - (Negative _, Negative _) -> mr
45.70 s
[really-safe-money] + in case (a1, a2) of
45.70 s
[really-safe-money] + (Positive _, Positive _) -> mr
45.70 s
[really-safe-money] + (Positive _, Negative _) -> Nothing
45.70 s
[really-safe-money] + (Negative _, Positive _) -> Nothing
45.70 s
[really-safe-money] + (Negative _, Negative _) -> mr
45.70 s
[really-safe-money]
45.70 s
[really-safe-money] -- | Convert an amount of money of one currency into an amount of money of
45.70 s
[really-safe-money] -- another currency using a conversion rate.
45.70 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:553:7-39
45.70 s
[really-safe-money] @@ -550,11 +550,11 @@
45.70 s
[really-safe-money] let aa1 = abs a1
45.70 s
[really-safe-money] aa2 = abs a2
45.70 s
[really-safe-money] mr = Amount.rate qf1 aa1 qf2 aa2
45.70 s
[really-safe-money] - in case (a1, a2) of
45.70 s
[really-safe-money] - (Positive _, Positive _) -> mr
45.70 s
[really-safe-money] - (Positive _, Negative _) -> Nothing
45.70 s
[really-safe-money] - (Negative _, Positive _) -> Nothing
45.70 s
[really-safe-money] - (Negative _, Negative _) -> mr
45.70 s
[really-safe-money] + in case (a1, a2) of
45.70 s
[really-safe-money] + (Positive _, Positive _) -> mr
45.70 s
[really-safe-money] + (Positive _, Negative _) -> Nothing
45.70 s
[really-safe-money] + (Negative _, Positive _) -> Nothing
45.70 s
[really-safe-money] + (Negative _, Negative _) -> mr
45.70 s
[really-safe-money]
45.70 s
[really-safe-money] -- | Convert an amount of money of one currency into an amount of money of
45.70 s
[really-safe-money] -- another currency using a conversion rate.
45.70 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:553:7-39
45.70 s
[really-safe-money] @@ -550,11 +550,11 @@
45.70 s
[really-safe-money] let aa1 = abs a1
45.70 s
[really-safe-money] aa2 = abs a2
45.70 s
[really-safe-money] mr = Amount.rate qf1 aa1 qf2 aa2
45.70 s
[really-safe-money] - in case (a1, a2) of
45.70 s
[really-safe-money] - (Positive _, Positive _) -> mr
45.70 s
[really-safe-money] - (Positive _, Negative _) -> Nothing
45.70 s
[really-safe-money] - (Negative _, Positive _) -> Nothing
45.70 s
[really-safe-money] - (Negative _, Negative _) -> mr
45.70 s
[really-safe-money] + in case (a1, a2) of
45.70 s
[really-safe-money] + (Positive _, Positive _) -> mr
45.70 s
[really-safe-money] + (Positive _, Negative _) -> Nothing
45.70 s
[really-safe-money] + (Negative _, Positive _) -> Nothing
45.70 s
[really-safe-money] + (Negative _, Negative _) -> mr
45.70 s
[really-safe-money]
45.70 s
[really-safe-money] -- | Convert an amount of money of one currency into an amount of money of
45.70 s
[really-safe-money] -- another currency using a conversion rate.
45.70 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:591:7-44
45.70 s
[really-safe-money] @@ -588,9 +588,9 @@
45.70 s
[really-safe-money] (Maybe Account, Maybe ConversionRate)
45.70 s
[really-safe-money] convert r qf1 a cr qf2 =
45.70 s
[really-safe-money] let (ma, mr) = Amount.convert r qf1 (abs a) cr qf2
45.70 s
[really-safe-money] - in case a of
45.70 s
[really-safe-money] - Positive _ -> (Positive <$> ma, mr)
45.70 s
[really-safe-money] - Negative _ -> (Negative <$> ma, mr)
45.70 s
[really-safe-money] + in case a of
45.70 s
[really-safe-money] + Positive _ -> (Positive <$> ma, mr)
45.70 s
[really-safe-money] + Negative _ -> (Negative <$> ma, mr)
45.70 s
[really-safe-money]
45.70 s
[really-safe-money] -- | Format an account of money without a symbol.
45.70 s
[really-safe-money] --
45.70 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:591:7-44
45.70 s
[really-safe-money] @@ -588,9 +588,9 @@
45.70 s
[really-safe-money] (Maybe Account, Maybe ConversionRate)
45.70 s
[really-safe-money] convert r qf1 a cr qf2 =
45.70 s
[really-safe-money] let (ma, mr) = Amount.convert r qf1 (abs a) cr qf2
45.70 s
[really-safe-money] - in case a of
45.70 s
[really-safe-money] - Positive _ -> (Positive <$> ma, mr)
45.70 s
[really-safe-money] - Negative _ -> (Negative <$> ma, mr)
45.70 s
[really-safe-money] + in case a of
45.70 s
[really-safe-money] + Positive _ -> (Positive <$> ma, mr)
45.70 s
[really-safe-money] + Negative _ -> (Negative <$> ma, mr)
45.70 s
[really-safe-money]
45.70 s
[really-safe-money] -- | Format an account of money without a symbol.
45.70 s
[really-safe-money] --
45.70 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:421:32-33
45.70 s
[really-safe-money] @@ -418,7 +418,7 @@
45.70 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
45.70 s
[really-safe-money] multiply factor account =
45.70 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
45.70 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
45.70 s
[really-safe-money] + f = case (compare factor 1, compare account zero) of
45.70 s
[really-safe-money] (EQ, _) -> const zero
45.70 s
[really-safe-money] (_, EQ) -> const zero
45.70 s
[really-safe-money] (GT, GT) -> Positive
45.70 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
45.70 s
[really-safe-money] @@ -418,13 +418,13 @@
45.70 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
45.70 s
[really-safe-money] multiply factor account =
45.70 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
45.70 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
45.70 s
[really-safe-money] - (EQ, _) -> const zero
45.70 s
[really-safe-money] - (_, EQ) -> const zero
45.70 s
[really-safe-money] - (GT, GT) -> Positive
45.70 s
[really-safe-money] - (GT, LT) -> Negative
45.70 s
[really-safe-money] - (LT, GT) -> Negative
45.70 s
[really-safe-money] - (LT, LT) -> Positive
45.70 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
45.70 s
[really-safe-money] + (EQ, _) -> const zero
45.70 s
[really-safe-money] + (_, EQ) -> const zero
45.70 s
[really-safe-money] + (GT, GT) -> Positive
45.70 s
[really-safe-money] + (GT, LT) -> Negative
45.70 s
[really-safe-money] + (LT, GT) -> Negative
45.70 s
[really-safe-money] + (LT, LT) -> Positive
45.70 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
45.70 s
[really-safe-money]
45.70 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
45.70 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
45.70 s
[really-safe-money] @@ -418,13 +418,13 @@
45.70 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
45.70 s
[really-safe-money] multiply factor account =
45.70 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
45.70 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
45.70 s
[really-safe-money] - (EQ, _) -> const zero
45.70 s
[really-safe-money] - (_, EQ) -> const zero
45.70 s
[really-safe-money] - (GT, GT) -> Positive
45.70 s
[really-safe-money] - (GT, LT) -> Negative
45.70 s
[really-safe-money] - (LT, GT) -> Negative
45.70 s
[really-safe-money] - (LT, LT) -> Positive
45.70 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
45.71 s
[really-safe-money] + (EQ, _) -> const zero
45.71 s
[really-safe-money] + (_, EQ) -> const zero
45.71 s
[really-safe-money] + (GT, GT) -> Positive
45.71 s
[really-safe-money] + (GT, LT) -> Negative
45.71 s
[really-safe-money] + (LT, GT) -> Negative
45.71 s
[really-safe-money] + (LT, LT) -> Positive
45.71 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
45.71 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
45.71 s
[really-safe-money] @@ -418,13 +418,13 @@
45.71 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
45.71 s
[really-safe-money] multiply factor account =
45.71 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
45.71 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
45.71 s
[really-safe-money] - (EQ, _) -> const zero
45.71 s
[really-safe-money] - (_, EQ) -> const zero
45.71 s
[really-safe-money] - (GT, GT) -> Positive
45.71 s
[really-safe-money] - (GT, LT) -> Negative
45.71 s
[really-safe-money] - (LT, GT) -> Negative
45.71 s
[really-safe-money] - (LT, LT) -> Positive
45.71 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
45.71 s
[really-safe-money] + (EQ, _) -> const zero
45.71 s
[really-safe-money] + (_, EQ) -> const zero
45.71 s
[really-safe-money] + (GT, GT) -> Positive
45.71 s
[really-safe-money] + (GT, LT) -> Negative
45.71 s
[really-safe-money] + (LT, GT) -> Negative
45.71 s
[really-safe-money] + (LT, LT) -> Positive
45.71 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
45.71 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
45.71 s
[really-safe-money] @@ -418,13 +418,13 @@
45.71 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
45.71 s
[really-safe-money] multiply factor account =
45.71 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
45.71 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
45.71 s
[really-safe-money] - (EQ, _) -> const zero
45.71 s
[really-safe-money] - (_, EQ) -> const zero
45.71 s
[really-safe-money] - (GT, GT) -> Positive
45.71 s
[really-safe-money] - (GT, LT) -> Negative
45.71 s
[really-safe-money] - (LT, GT) -> Negative
45.71 s
[really-safe-money] - (LT, LT) -> Positive
45.71 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
45.71 s
[really-safe-money] + (EQ, _) -> const zero
45.71 s
[really-safe-money] + (_, EQ) -> const zero
45.71 s
[really-safe-money] + (GT, GT) -> Positive
45.71 s
[really-safe-money] + (GT, LT) -> Negative
45.71 s
[really-safe-money] + (LT, GT) -> Negative
45.71 s
[really-safe-money] + (LT, LT) -> Positive
45.71 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
45.71 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
45.71 s
[really-safe-money] @@ -418,13 +418,13 @@
45.71 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
45.71 s
[really-safe-money] multiply factor account =
45.71 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
45.71 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
45.71 s
[really-safe-money] - (EQ, _) -> const zero
45.71 s
[really-safe-money] - (_, EQ) -> const zero
45.71 s
[really-safe-money] - (GT, GT) -> Positive
45.71 s
[really-safe-money] - (GT, LT) -> Negative
45.71 s
[really-safe-money] - (LT, GT) -> Negative
45.71 s
[really-safe-money] - (LT, LT) -> Positive
45.71 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
45.71 s
[really-safe-money] + (EQ, _) -> const zero
45.71 s
[really-safe-money] + (_, EQ) -> const zero
45.71 s
[really-safe-money] + (GT, GT) -> Positive
45.71 s
[really-safe-money] + (GT, LT) -> Negative
45.71 s
[really-safe-money] + (LT, GT) -> Negative
45.71 s
[really-safe-money] + (LT, LT) -> Positive
45.71 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
45.71 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:421:11-29
45.71 s
[really-safe-money] @@ -418,13 +418,13 @@
45.71 s
[really-safe-money] multiply :: Int32 -> Account -> Maybe Account
45.71 s
[really-safe-money] multiply factor account =
45.71 s
[really-safe-money] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
45.71 s
[really-safe-money] - f = case (compare factor 0, compare account zero) of
45.71 s
[really-safe-money] - (EQ, _) -> const zero
45.71 s
[really-safe-money] - (_, EQ) -> const zero
45.71 s
[really-safe-money] - (GT, GT) -> Positive
45.71 s
[really-safe-money] - (GT, LT) -> Negative
45.71 s
[really-safe-money] - (LT, GT) -> Negative
45.71 s
[really-safe-money] - (LT, LT) -> Positive
45.71 s
[really-safe-money] + f = case (compare factor 0, compare account zero) of
45.71 s
[really-safe-money] + (EQ, _) -> const zero
45.71 s
[really-safe-money] + (_, EQ) -> const zero
45.71 s
[really-safe-money] + (GT, GT) -> Positive
45.71 s
[really-safe-money] + (GT, LT) -> Negative
45.71 s
[really-safe-money] + (LT, GT) -> Negative
45.71 s
[really-safe-money] + (LT, LT) -> Positive
45.71 s
[really-safe-money] in f <$> Amount.multiply af (abs account)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
45.71 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:451:14-23
45.71 s
[really-safe-money] @@ -448,7 +448,7 @@
45.71 s
[really-safe-money] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.71 s
[really-safe-money] DistributedZero -> DistributedZero
45.71 s
[really-safe-money] DistributedIntoEqualChunks numberOfChunks chunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] + if True
45.71 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:451:14-23
45.71 s
[really-safe-money] @@ -448,7 +448,7 @@
45.71 s
[really-safe-money] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.71 s
[really-safe-money] DistributedZero -> DistributedZero
45.71 s
[really-safe-money] DistributedIntoEqualChunks numberOfChunks chunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] + if False
45.71 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:451:14-23
45.71 s
[really-safe-money] @@ -448,7 +448,7 @@
45.71 s
[really-safe-money] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.71 s
[really-safe-money] DistributedZero -> DistributedZero
45.71 s
[really-safe-money] DistributedIntoEqualChunks numberOfChunks chunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] + if not (a >= zero)
45.71 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:451:11-76
45.71 s
[really-safe-money] @@ -448,9 +448,9 @@
45.71 s
[really-safe-money] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.71 s
[really-safe-money] DistributedZero -> DistributedZero
45.71 s
[really-safe-money] DistributedIntoEqualChunks numberOfChunks chunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] + if a >= zero
45.71 s
[really-safe-money] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] if a >= zero
45.71 s
[really-safe-money] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.71 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:455:14-23
45.71 s
[really-safe-money] @@ -452,7 +452,7 @@
45.71 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] + if True
45.71 s
[really-safe-money] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.71 s
[really-safe-money] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:455:14-23
45.71 s
[really-safe-money] @@ -452,7 +452,7 @@
45.71 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] + if False
45.71 s
[really-safe-money] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.71 s
[really-safe-money] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:455:14-23
45.71 s
[really-safe-money] @@ -452,7 +452,7 @@
45.71 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] + if not (a >= zero)
45.71 s
[really-safe-money] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.71 s
[really-safe-money] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:455:11-136
45.71 s
[really-safe-money] @@ -452,9 +452,9 @@
45.71 s
[really-safe-money] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.71 s
[really-safe-money] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.71 s
[really-safe-money] + if a >= zero
45.71 s
[really-safe-money] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.71 s
[really-safe-money] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] type AccountDistribution = Amount.Distribution Account
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:447:7-136
45.71 s
[really-safe-money] @@ -444,17 +444,17 @@
45.71 s
[really-safe-money] distribute a f =
45.71 s
[really-safe-money] let aa = abs a
45.71 s
[really-safe-money] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
45.71 s
[really-safe-money] - in case Amount.distribute aa af of
45.71 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.71 s
[really-safe-money] - DistributedZero -> DistributedZero
45.71 s
[really-safe-money] - DistributedIntoEqualChunks numberOfChunks chunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.71 s
[really-safe-money] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.71 s
[really-safe-money] + in case Amount.distribute aa af of
45.71 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.71 s
[really-safe-money] + DistributedZero -> DistributedZero
45.71 s
[really-safe-money] + DistributedIntoEqualChunks numberOfChunks chunk ->
45.71 s
[really-safe-money] + if a >= zero
45.71 s
[really-safe-money] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] + if a >= zero
45.71 s
[really-safe-money] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.71 s
[really-safe-money] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] type AccountDistribution = Amount.Distribution Account
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:447:7-136
45.71 s
[really-safe-money] @@ -444,17 +444,17 @@
45.71 s
[really-safe-money] distribute a f =
45.71 s
[really-safe-money] let aa = abs a
45.71 s
[really-safe-money] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
45.71 s
[really-safe-money] - in case Amount.distribute aa af of
45.71 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.71 s
[really-safe-money] - DistributedZero -> DistributedZero
45.71 s
[really-safe-money] - DistributedIntoEqualChunks numberOfChunks chunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] - if a >= zero
45.71 s
[really-safe-money] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.71 s
[really-safe-money] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.71 s
[really-safe-money] + in case Amount.distribute aa af of
45.71 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.71 s
[really-safe-money] + DistributedZero -> DistributedZero
45.71 s
[really-safe-money] + DistributedIntoEqualChunks numberOfChunks chunk ->
45.71 s
[really-safe-money] + if a >= zero
45.71 s
[really-safe-money] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.71 s
[really-safe-money] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.71 s
[really-safe-money] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.71 s
[really-safe-money] + if a >= zero
45.71 s
[really-safe-money] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.71 s
[really-safe-money] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] type AccountDistribution = Amount.Distribution Account
45.71 s
[really-safe-money]
45.71 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:447:7-136
45.71 s
[really-safe-money] @@ -444,17 +444,17 @@
45.71 s
[really-safe-money] distribute a f =
45.71 s
[really-safe-money] let aa = abs a
45.71 s
[really-safe-money] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
45.71 s
[really-safe-money] - in case Amount.distribute aa af of
45.71 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.71 s
[really-safe-money] - DistributedZero -> DistributedZero
45.72 s
[really-safe-money] - DistributedIntoEqualChunks numberOfChunks chunk ->
45.72 s
[really-safe-money] - if a >= zero
45.72 s
[really-safe-money] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.72 s
[really-safe-money] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.72 s
[really-safe-money] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.72 s
[really-safe-money] - if a >= zero
45.72 s
[really-safe-money] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.72 s
[really-safe-money] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.72 s
[really-safe-money] + in case Amount.distribute aa af of
45.72 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.72 s
[really-safe-money] + DistributedZero -> DistributedZero
45.72 s
[really-safe-money] + DistributedIntoEqualChunks numberOfChunks chunk ->
45.72 s
[really-safe-money] + if a >= zero
45.72 s
[really-safe-money] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.72 s
[really-safe-money] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.72 s
[really-safe-money] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.72 s
[really-safe-money] + if a >= zero
45.72 s
[really-safe-money] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.72 s
[really-safe-money] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] type AccountDistribution = Amount.Distribution Account
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:447:7-136
45.72 s
[really-safe-money] @@ -444,17 +444,17 @@
45.72 s
[really-safe-money] distribute a f =
45.72 s
[really-safe-money] let aa = abs a
45.72 s
[really-safe-money] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
45.72 s
[really-safe-money] - in case Amount.distribute aa af of
45.72 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.72 s
[really-safe-money] - DistributedZero -> DistributedZero
45.72 s
[really-safe-money] - DistributedIntoEqualChunks numberOfChunks chunk ->
45.72 s
[really-safe-money] - if a >= zero
45.72 s
[really-safe-money] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.72 s
[really-safe-money] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.72 s
[really-safe-money] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.72 s
[really-safe-money] - if a >= zero
45.72 s
[really-safe-money] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.72 s
[really-safe-money] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.72 s
[really-safe-money] + in case Amount.distribute aa af of
45.72 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
45.72 s
[really-safe-money] + DistributedZero -> DistributedZero
45.72 s
[really-safe-money] + DistributedIntoEqualChunks numberOfChunks chunk ->
45.72 s
[really-safe-money] + if a >= zero
45.72 s
[really-safe-money] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
45.72 s
[really-safe-money] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
45.72 s
[really-safe-money] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
45.72 s
[really-safe-money] + if a >= zero
45.72 s
[really-safe-money] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
45.72 s
[really-safe-money] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] type AccountDistribution = Amount.Distribution Account
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:522:19-35
45.72 s
[really-safe-money] @@ -519,10 +519,10 @@
45.72 s
[really-safe-money] let aa = abs account
45.72 s
[really-safe-money] (amount, actualFraction) = Amount.fraction ro aa af
45.72 s
[really-safe-money] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
45.72 s
[really-safe-money] - func ma r = case compare account zero of
45.72 s
[really-safe-money] - EQ -> (Just zero, r)
45.72 s
[really-safe-money] - GT -> (Positive <$> ma, r)
45.72 s
[really-safe-money] - LT -> (Negative <$> ma, r)
45.72 s
[really-safe-money] + func ma r = case compare account zero of
45.72 s
[really-safe-money] + EQ -> (Just zero, r)
45.72 s
[really-safe-money] + GT -> (Positive <$> ma, r)
45.72 s
[really-safe-money] + LT -> (Negative <$> ma, r)
45.72 s
[really-safe-money] in func amount actualFraction
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] -- | Compute the currency conversion rate between two accounts of money of
45.72 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:522:19-35
45.72 s
[really-safe-money] @@ -519,10 +519,10 @@
45.72 s
[really-safe-money] let aa = abs account
45.72 s
[really-safe-money] (amount, actualFraction) = Amount.fraction ro aa af
45.72 s
[really-safe-money] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
45.72 s
[really-safe-money] - func ma r = case compare account zero of
45.72 s
[really-safe-money] - EQ -> (Just zero, r)
45.72 s
[really-safe-money] - GT -> (Positive <$> ma, r)
45.72 s
[really-safe-money] - LT -> (Negative <$> ma, r)
45.72 s
[really-safe-money] + func ma r = case compare account zero of
45.72 s
[really-safe-money] + EQ -> (Just zero, r)
45.72 s
[really-safe-money] + GT -> (Positive <$> ma, r)
45.72 s
[really-safe-money] + LT -> (Negative <$> ma, r)
45.72 s
[really-safe-money] in func amount actualFraction
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] -- | Compute the currency conversion rate between two accounts of money of
45.72 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:522:19-35
45.72 s
[really-safe-money] @@ -519,10 +519,10 @@
45.72 s
[really-safe-money] let aa = abs account
45.72 s
[really-safe-money] (amount, actualFraction) = Amount.fraction ro aa af
45.72 s
[really-safe-money] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
45.72 s
[really-safe-money] - func ma r = case compare account zero of
45.72 s
[really-safe-money] - EQ -> (Just zero, r)
45.72 s
[really-safe-money] - GT -> (Positive <$> ma, r)
45.72 s
[really-safe-money] - LT -> (Negative <$> ma, r)
45.72 s
[really-safe-money] + func ma r = case compare account zero of
45.72 s
[really-safe-money] + EQ -> (Just zero, r)
45.72 s
[really-safe-money] + GT -> (Positive <$> ma, r)
45.72 s
[really-safe-money] + LT -> (Negative <$> ma, r)
45.72 s
[really-safe-money] in func amount actualFraction
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] -- | Compute the currency conversion rate between two accounts of money of
45.72 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:495:17-18
45.72 s
[really-safe-money] @@ -492,7 +492,7 @@
45.72 s
[really-safe-money] fraction rounding account f =
45.72 s
[really-safe-money] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
45.72 s
[really-safe-money] ro =
45.72 s
[really-safe-money] - if f >= 0
45.72 s
[really-safe-money] + if f >= 1
45.72 s
[really-safe-money] then rounding
45.72 s
[really-safe-money] else case rounding of
45.72 s
[really-safe-money] RoundUp -> RoundDown
45.72 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:495:12-18
45.72 s
[really-safe-money] @@ -492,7 +492,7 @@
45.72 s
[really-safe-money] fraction rounding account f =
45.72 s
[really-safe-money] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
45.72 s
[really-safe-money] ro =
45.72 s
[really-safe-money] - if f >= 0
45.72 s
[really-safe-money] + if True
45.72 s
[really-safe-money] then rounding
45.72 s
[really-safe-money] else case rounding of
45.72 s
[really-safe-money] RoundUp -> RoundDown
45.72 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:495:12-18
45.72 s
[really-safe-money] @@ -492,7 +492,7 @@
45.72 s
[really-safe-money] fraction rounding account f =
45.72 s
[really-safe-money] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
45.72 s
[really-safe-money] ro =
45.72 s
[really-safe-money] - if f >= 0
45.72 s
[really-safe-money] + if False
45.72 s
[really-safe-money] then rounding
45.72 s
[really-safe-money] else case rounding of
45.72 s
[really-safe-money] RoundUp -> RoundDown
45.72 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:495:12-18
45.72 s
[really-safe-money] @@ -492,7 +492,7 @@
45.72 s
[really-safe-money] fraction rounding account f =
45.72 s
[really-safe-money] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
45.72 s
[really-safe-money] ro =
45.72 s
[really-safe-money] - if f >= 0
45.72 s
[really-safe-money] + if not (f >= 0)
45.72 s
[really-safe-money] then rounding
45.72 s
[really-safe-money] else case rounding of
45.72 s
[really-safe-money] RoundUp -> RoundDown
45.72 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:497:16-41
45.72 s
[really-safe-money] @@ -494,10 +494,10 @@
45.72 s
[really-safe-money] ro =
45.72 s
[really-safe-money] if f >= 0
45.72 s
[really-safe-money] then rounding
45.72 s
[really-safe-money] - else case rounding of
45.72 s
[really-safe-money] - RoundUp -> RoundDown
45.72 s
[really-safe-money] - RoundDown -> RoundUp
45.72 s
[really-safe-money] - RoundNearest -> RoundNearest
45.72 s
[really-safe-money] + else case rounding of
45.72 s
[really-safe-money] + RoundUp -> RoundDown
45.72 s
[really-safe-money] + RoundDown -> RoundUp
45.72 s
[really-safe-money] + RoundNearest -> RoundNearest
45.72 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
45.72 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
45.72 s
[really-safe-money] in if f >= 0
45.72 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:497:16-41
45.72 s
[really-safe-money] @@ -494,10 +494,10 @@
45.72 s
[really-safe-money] ro =
45.72 s
[really-safe-money] if f >= 0
45.72 s
[really-safe-money] then rounding
45.72 s
[really-safe-money] - else case rounding of
45.72 s
[really-safe-money] - RoundUp -> RoundDown
45.72 s
[really-safe-money] - RoundDown -> RoundUp
45.72 s
[really-safe-money] - RoundNearest -> RoundNearest
45.72 s
[really-safe-money] + else case rounding of
45.72 s
[really-safe-money] + RoundUp -> RoundDown
45.72 s
[really-safe-money] + RoundDown -> RoundUp
45.72 s
[really-safe-money] + RoundNearest -> RoundNearest
45.72 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
45.72 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
45.72 s
[really-safe-money] in if f >= 0
45.72 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:497:16-41
45.72 s
[really-safe-money] @@ -494,10 +494,10 @@
45.72 s
[really-safe-money] ro =
45.72 s
[really-safe-money] if f >= 0
45.72 s
[really-safe-money] then rounding
45.72 s
[really-safe-money] - else case rounding of
45.72 s
[really-safe-money] - RoundUp -> RoundDown
45.72 s
[really-safe-money] - RoundDown -> RoundUp
45.72 s
[really-safe-money] - RoundNearest -> RoundNearest
45.72 s
[really-safe-money] + else case rounding of
45.72 s
[really-safe-money] + RoundUp -> RoundDown
45.72 s
[really-safe-money] + RoundDown -> RoundUp
45.72 s
[really-safe-money] + RoundNearest -> RoundNearest
45.72 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
45.72 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
45.72 s
[really-safe-money] in if f >= 0
45.72 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:495:9-41
45.72 s
[really-safe-money] @@ -492,12 +492,12 @@
45.72 s
[really-safe-money] fraction rounding account f =
45.72 s
[really-safe-money] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
45.72 s
[really-safe-money] ro =
45.72 s
[really-safe-money] - if f >= 0
45.72 s
[really-safe-money] - then rounding
45.72 s
[really-safe-money] - else case rounding of
45.72 s
[really-safe-money] - RoundUp -> RoundDown
45.72 s
[really-safe-money] - RoundDown -> RoundUp
45.72 s
[really-safe-money] - RoundNearest -> RoundNearest
45.72 s
[really-safe-money] + if f >= 0
45.72 s
[really-safe-money] + then rounding
45.72 s
[really-safe-money] + else case rounding of
45.72 s
[really-safe-money] + RoundUp -> RoundDown
45.72 s
[really-safe-money] + RoundDown -> RoundUp
45.72 s
[really-safe-money] + RoundNearest -> RoundNearest
45.72 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
45.72 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
45.72 s
[really-safe-money] in if f >= 0
45.72 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:503:15-16
45.72 s
[really-safe-money] @@ -500,7 +500,7 @@
45.72 s
[really-safe-money] RoundNearest -> RoundNearest
45.72 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
45.72 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
45.72 s
[really-safe-money] - in if f >= 0
45.72 s
[really-safe-money] + in if f >= 1
45.72 s
[really-safe-money] then (ma, r)
45.72 s
[really-safe-money] else (negate <$> ma, -r)
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:503:10-16
45.72 s
[really-safe-money] @@ -500,7 +500,7 @@
45.72 s
[really-safe-money] RoundNearest -> RoundNearest
45.72 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
45.72 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
45.72 s
[really-safe-money] - in if f >= 0
45.72 s
[really-safe-money] + in if True
45.72 s
[really-safe-money] then (ma, r)
45.72 s
[really-safe-money] else (negate <$> ma, -r)
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:503:10-16
45.72 s
[really-safe-money] @@ -500,7 +500,7 @@
45.72 s
[really-safe-money] RoundNearest -> RoundNearest
45.72 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
45.72 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
45.72 s
[really-safe-money] - in if f >= 0
45.72 s
[really-safe-money] + in if False
45.72 s
[really-safe-money] then (ma, r)
45.72 s
[really-safe-money] else (negate <$> ma, -r)
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:503:10-16
45.72 s
[really-safe-money] @@ -500,7 +500,7 @@
45.72 s
[really-safe-money] RoundNearest -> RoundNearest
45.72 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
45.72 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
45.72 s
[really-safe-money] - in if f >= 0
45.72 s
[really-safe-money] + in if not (f >= 0)
45.72 s
[really-safe-money] then (ma, r)
45.72 s
[really-safe-money] else (negate <$> ma, -r)
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:503:7-33
45.72 s
[really-safe-money] @@ -500,9 +500,9 @@
45.72 s
[really-safe-money] RoundNearest -> RoundNearest
45.72 s
[really-safe-money] (ma, ar) = fractionRatio ro account af
45.72 s
[really-safe-money] r = (realToFrac :: Ratio Natural -> Rational) ar
45.72 s
[really-safe-money] - in if f >= 0
45.72 s
[really-safe-money] - then (ma, r)
45.72 s
[really-safe-money] - else (negate <$> ma, -r)
45.72 s
[really-safe-money] + in if f >= 0
45.72 s
[really-safe-money] + then (ma, r)
45.72 s
[really-safe-money] + else (negate <$> ma, -r)
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] -- | Fractional multiplication with a positive fraction, see 'Amount.fraction' and 'Account.fraction'.
45.72 s
[really-safe-money] --
45.72 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:233:19-20
45.72 s
[really-safe-money] @@ -230,7 +230,7 @@
45.72 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Account
45.72 s
[really-safe-money] fromRational quantisationFactor r =
45.72 s
[really-safe-money] let r' = Prelude.abs r
45.72 s
[really-safe-money] - f = if r >= 0 then Positive else Negative
45.72 s
[really-safe-money] + f = if r >= 1 then Positive else Negative
45.72 s
[really-safe-money] in f <$> Amount.fromRational quantisationFactor r'
45.72 s
[really-safe-money]
45.72 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
45.72 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:233:14-20
45.73 s
[really-safe-money] @@ -230,7 +230,7 @@
45.73 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Account
45.73 s
[really-safe-money] fromRational quantisationFactor r =
45.73 s
[really-safe-money] let r' = Prelude.abs r
45.73 s
[really-safe-money] - f = if r >= 0 then Positive else Negative
45.73 s
[really-safe-money] + f = if True then Positive else Negative
45.73 s
[really-safe-money] in f <$> Amount.fromRational quantisationFactor r'
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
45.73 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:233:14-20
45.73 s
[really-safe-money] @@ -230,7 +230,7 @@
45.73 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Account
45.73 s
[really-safe-money] fromRational quantisationFactor r =
45.73 s
[really-safe-money] let r' = Prelude.abs r
45.73 s
[really-safe-money] - f = if r >= 0 then Positive else Negative
45.73 s
[really-safe-money] + f = if False then Positive else Negative
45.73 s
[really-safe-money] in f <$> Amount.fromRational quantisationFactor r'
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
45.73 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:233:14-20
45.73 s
[really-safe-money] @@ -230,7 +230,7 @@
45.73 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Account
45.73 s
[really-safe-money] fromRational quantisationFactor r =
45.73 s
[really-safe-money] let r' = Prelude.abs r
45.73 s
[really-safe-money] - f = if r >= 0 then Positive else Negative
45.73 s
[really-safe-money] + f = if not (r >= 0) then Positive else Negative
45.73 s
[really-safe-money] in f <$> Amount.fromRational quantisationFactor r'
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
45.73 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:233:11-48
45.73 s
[really-safe-money] @@ -230,7 +230,7 @@
45.73 s
[really-safe-money] fromRational :: QuantisationFactor -> Rational -> Maybe Account
45.73 s
[really-safe-money] fromRational quantisationFactor r =
45.73 s
[really-safe-money] let r' = Prelude.abs r
45.73 s
[really-safe-money] - f = if r >= 0 then Positive else Negative
45.73 s
[really-safe-money] + f = if r >= 0 then Positive else Negative
45.73 s
[really-safe-money] in f <$> Amount.fromRational quantisationFactor r'
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
45.73 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:211:11-37
45.73 s
[really-safe-money] @@ -208,9 +208,9 @@
45.73 s
[really-safe-money] -- (-3) % 20
45.73 s
[really-safe-money] toRational :: QuantisationFactor -> Account -> Rational
45.73 s
[really-safe-money] toRational quantisationFactor account =
45.73 s
[really-safe-money] - let f = case account of
45.73 s
[really-safe-money] - Positive _ -> id
45.73 s
[really-safe-money] - Negative _ -> Prelude.negate
45.73 s
[really-safe-money] + let f = case account of
45.73 s
[really-safe-money] + Positive _ -> id
45.73 s
[really-safe-money] + Negative _ -> Prelude.negate
45.73 s
[really-safe-money] in f $ Amount.toRational quantisationFactor (abs account)
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
45.73 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:211:11-37
45.73 s
[really-safe-money] @@ -208,9 +208,9 @@
45.73 s
[really-safe-money] -- (-3) % 20
45.73 s
[really-safe-money] toRational :: QuantisationFactor -> Account -> Rational
45.73 s
[really-safe-money] toRational quantisationFactor account =
45.73 s
[really-safe-money] - let f = case account of
45.73 s
[really-safe-money] - Positive _ -> id
45.73 s
[really-safe-money] - Negative _ -> Prelude.negate
45.73 s
[really-safe-money] + let f = case account of
45.73 s
[really-safe-money] + Positive _ -> id
45.73 s
[really-safe-money] + Negative _ -> Prelude.negate
45.73 s
[really-safe-money] in f $ Amount.toRational quantisationFactor (abs account)
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn a 'Rational' into an amount of money.
45.73 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:197:19-20
45.73 s
[really-safe-money] @@ -194,7 +194,7 @@
45.73 s
[really-safe-money] fromDouble :: QuantisationFactor -> Double -> Maybe Account
45.73 s
[really-safe-money] fromDouble quantisationFactor d =
45.73 s
[really-safe-money] let d' = Prelude.abs d
45.73 s
[really-safe-money] - f = if d >= 0 then Positive else Negative
45.73 s
[really-safe-money] + f = if d >= 1 then Positive else Negative
45.73 s
[really-safe-money] in f <$> Amount.fromDouble quantisationFactor d'
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
45.73 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:197:14-20
45.73 s
[really-safe-money] @@ -194,7 +194,7 @@
45.73 s
[really-safe-money] fromDouble :: QuantisationFactor -> Double -> Maybe Account
45.73 s
[really-safe-money] fromDouble quantisationFactor d =
45.73 s
[really-safe-money] let d' = Prelude.abs d
45.73 s
[really-safe-money] - f = if d >= 0 then Positive else Negative
45.73 s
[really-safe-money] + f = if True then Positive else Negative
45.73 s
[really-safe-money] in f <$> Amount.fromDouble quantisationFactor d'
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
45.73 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:197:14-20
45.73 s
[really-safe-money] @@ -194,7 +194,7 @@
45.73 s
[really-safe-money] fromDouble :: QuantisationFactor -> Double -> Maybe Account
45.73 s
[really-safe-money] fromDouble quantisationFactor d =
45.73 s
[really-safe-money] let d' = Prelude.abs d
45.73 s
[really-safe-money] - f = if d >= 0 then Positive else Negative
45.73 s
[really-safe-money] + f = if False then Positive else Negative
45.73 s
[really-safe-money] in f <$> Amount.fromDouble quantisationFactor d'
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
45.73 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:197:14-20
45.73 s
[really-safe-money] @@ -194,7 +194,7 @@
45.73 s
[really-safe-money] fromDouble :: QuantisationFactor -> Double -> Maybe Account
45.73 s
[really-safe-money] fromDouble quantisationFactor d =
45.73 s
[really-safe-money] let d' = Prelude.abs d
45.73 s
[really-safe-money] - f = if d >= 0 then Positive else Negative
45.73 s
[really-safe-money] + f = if not (d >= 0) then Positive else Negative
45.73 s
[really-safe-money] in f <$> Amount.fromDouble quantisationFactor d'
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
45.73 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:197:11-48
45.73 s
[really-safe-money] @@ -194,7 +194,7 @@
45.73 s
[really-safe-money] fromDouble :: QuantisationFactor -> Double -> Maybe Account
45.73 s
[really-safe-money] fromDouble quantisationFactor d =
45.73 s
[really-safe-money] let d' = Prelude.abs d
45.73 s
[really-safe-money] - f = if d >= 0 then Positive else Negative
45.73 s
[really-safe-money] + f = if d >= 0 then Positive else Negative
45.73 s
[really-safe-money] in f <$> Amount.fromDouble quantisationFactor d'
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn an amount of money into a 'Rational'.
45.73 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:171:11-37
45.73 s
[really-safe-money] @@ -168,9 +168,9 @@
45.73 s
[really-safe-money] -- -0.25
45.73 s
[really-safe-money] toDouble :: QuantisationFactor -> Account -> Double
45.73 s
[really-safe-money] toDouble quantisationFactor account =
45.73 s
[really-safe-money] - let f = case account of
45.73 s
[really-safe-money] - Positive _ -> id
45.73 s
[really-safe-money] - Negative _ -> Prelude.negate
45.73 s
[really-safe-money] + let f = case account of
45.73 s
[really-safe-money] + Positive _ -> id
45.73 s
[really-safe-money] + Negative _ -> Prelude.negate
45.73 s
[really-safe-money] in f $ Amount.toDouble quantisationFactor (abs account)
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn a 'Double' into an amount of money.
45.73 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:171:11-37
45.73 s
[really-safe-money] @@ -168,9 +168,9 @@
45.73 s
[really-safe-money] -- -0.25
45.73 s
[really-safe-money] toDouble :: QuantisationFactor -> Account -> Double
45.73 s
[really-safe-money] toDouble quantisationFactor account =
45.73 s
[really-safe-money] - let f = case account of
45.73 s
[really-safe-money] - Positive _ -> id
45.73 s
[really-safe-money] - Negative _ -> Prelude.negate
45.73 s
[really-safe-money] + let f = case account of
45.73 s
[really-safe-money] + Positive _ -> id
45.73 s
[really-safe-money] + Negative _ -> Prelude.negate
45.73 s
[really-safe-money] in f $ Amount.toDouble quantisationFactor (abs account)
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn a 'Double' into an amount of money.
45.73 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:155:11-37
45.73 s
[really-safe-money] @@ -152,9 +152,9 @@
45.73 s
[really-safe-money] -- We return 'Integer' because the result does not fit into a 'Word64'
45.73 s
[really-safe-money] toMinimalQuantisations :: Account -> Integer
45.73 s
[really-safe-money] toMinimalQuantisations account =
45.73 s
[really-safe-money] - let f = case account of
45.73 s
[really-safe-money] - Positive _ -> id
45.73 s
[really-safe-money] - Negative _ -> Prelude.negate
45.73 s
[really-safe-money] + let f = case account of
45.73 s
[really-safe-money] + Positive _ -> id
45.73 s
[really-safe-money] + Negative _ -> Prelude.negate
45.73 s
[really-safe-money] in f $ (fromIntegral :: Word64 -> Integer) $ Amount.toMinimalQuantisations (abs account)
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn an amount of money into a 'Double'.
45.73 s
[really-safe-money] added mutation RemoveCase at src/Money/Account.hs:155:11-37
45.73 s
[really-safe-money] @@ -152,9 +152,9 @@
45.73 s
[really-safe-money] -- We return 'Integer' because the result does not fit into a 'Word64'
45.73 s
[really-safe-money] toMinimalQuantisations :: Account -> Integer
45.73 s
[really-safe-money] toMinimalQuantisations account =
45.73 s
[really-safe-money] - let f = case account of
45.73 s
[really-safe-money] - Positive _ -> id
45.73 s
[really-safe-money] - Negative _ -> Prelude.negate
45.73 s
[really-safe-money] + let f = case account of
45.73 s
[really-safe-money] + Positive _ -> id
45.73 s
[really-safe-money] + Negative _ -> Prelude.negate
45.73 s
[really-safe-money] in f $ (fromIntegral :: Word64 -> Integer) $ Amount.toMinimalQuantisations (abs account)
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn an amount of money into a 'Double'.
45.73 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:123:10-23
45.73 s
[really-safe-money] @@ -120,7 +120,7 @@
45.73 s
[really-safe-money] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
45.73 s
[really-safe-money] a :: Integer
45.73 s
[really-safe-money] a = (Prelude.abs :: Integer -> Integer) i
45.73 s
[really-safe-money] - in if a > maxBoundI
45.73 s
[really-safe-money] + in if True
45.73 s
[really-safe-money] then Nothing
45.73 s
[really-safe-money] else
45.73 s
[really-safe-money] let w :: Word64
45.73 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:123:10-23
45.73 s
[really-safe-money] @@ -120,7 +120,7 @@
45.73 s
[really-safe-money] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
45.73 s
[really-safe-money] a :: Integer
45.73 s
[really-safe-money] a = (Prelude.abs :: Integer -> Integer) i
45.73 s
[really-safe-money] - in if a > maxBoundI
45.73 s
[really-safe-money] + in if False
45.73 s
[really-safe-money] then Nothing
45.73 s
[really-safe-money] else
45.73 s
[really-safe-money] let w :: Word64
45.73 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:123:10-23
45.73 s
[really-safe-money] @@ -120,7 +120,7 @@
45.73 s
[really-safe-money] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
45.73 s
[really-safe-money] a :: Integer
45.73 s
[really-safe-money] a = (Prelude.abs :: Integer -> Integer) i
45.73 s
[really-safe-money] - in if a > maxBoundI
45.73 s
[really-safe-money] + in if not (a > maxBoundI)
45.73 s
[really-safe-money] then Nothing
45.73 s
[really-safe-money] else
45.73 s
[really-safe-money] let w :: Word64
45.73 s
[really-safe-money] added mutation IntLit at src/Money/Account.hs:131:25-26
45.73 s
[really-safe-money] @@ -128,7 +128,7 @@
45.73 s
[really-safe-money] amount :: Amount
45.73 s
[really-safe-money] amount = Amount.fromMinimalQuantisations w
45.73 s
[really-safe-money] in Just $
45.73 s
[really-safe-money] - if i >= 0
45.73 s
[really-safe-money] + if i >= 1
45.73 s
[really-safe-money] then Positive amount
45.73 s
[really-safe-money] else Negative amount
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:131:20-26
45.73 s
[really-safe-money] @@ -128,7 +128,7 @@
45.73 s
[really-safe-money] amount :: Amount
45.73 s
[really-safe-money] amount = Amount.fromMinimalQuantisations w
45.73 s
[really-safe-money] in Just $
45.73 s
[really-safe-money] - if i >= 0
45.73 s
[really-safe-money] + if True
45.73 s
[really-safe-money] then Positive amount
45.73 s
[really-safe-money] else Negative amount
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] added mutation ConstBool at src/Money/Account.hs:131:20-26
45.73 s
[really-safe-money] @@ -128,7 +128,7 @@
45.73 s
[really-safe-money] amount :: Amount
45.73 s
[really-safe-money] amount = Amount.fromMinimalQuantisations w
45.73 s
[really-safe-money] in Just $
45.73 s
[really-safe-money] - if i >= 0
45.73 s
[really-safe-money] + if False
45.73 s
[really-safe-money] then Positive amount
45.73 s
[really-safe-money] else Negative amount
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] added mutation Negate at src/Money/Account.hs:131:20-26
45.73 s
[really-safe-money] @@ -128,7 +128,7 @@
45.73 s
[really-safe-money] amount :: Amount
45.73 s
[really-safe-money] amount = Amount.fromMinimalQuantisations w
45.73 s
[really-safe-money] in Just $
45.73 s
[really-safe-money] - if i >= 0
45.73 s
[really-safe-money] + if not (i >= 0)
45.73 s
[really-safe-money] then Positive amount
45.73 s
[really-safe-money] else Negative amount
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:131:17-39
45.73 s
[really-safe-money] @@ -128,9 +128,9 @@
45.73 s
[really-safe-money] amount :: Amount
45.73 s
[really-safe-money] amount = Amount.fromMinimalQuantisations w
45.73 s
[really-safe-money] in Just $
45.73 s
[really-safe-money] - if i >= 0
45.73 s
[really-safe-money] - then Positive amount
45.73 s
[really-safe-money] - else Negative amount
45.73 s
[really-safe-money] + if i >= 0
45.73 s
[really-safe-money] + then Positive amount
45.73 s
[really-safe-money] + else Negative amount
45.73 s
[really-safe-money]
45.73 s
[really-safe-money] -- | Turn an amount into a positive account
45.73 s
[really-safe-money] --
45.73 s
[really-safe-money] added mutation CondFlip at src/Money/Account.hs:123:7-39
45.73 s
[really-safe-money] @@ -120,17 +120,17 @@
45.73 s
[really-safe-money] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
45.73 s
[really-safe-money] a :: Integer
45.73 s
[really-safe-money] a = (Prelude.abs :: Integer -> Integer) i
45.73 s
[really-safe-money] - in if a > maxBoundI
45.73 s
[really-safe-money] - then Nothing
45.73 s
[really-safe-money] - else
45.73 s
[really-safe-money] - let w :: Word64
45.73 s
[really-safe-money] - w = (fromIntegral :: Integer -> Word64) a
45.73 s
[really-safe-money] - amount :: Amount
45.73 s
[really-safe-money] - amount = Amount.fromMinimalQuantisations w
45.73 s
[really-safe-money] - in Just $
45.73 s
[really-safe-money] - if i >= 0
45.73 s
[really-safe-money] - then Positive amount
45.73 s
[really-safe-money] - else Negative amount
45.73 s
[really-safe-money] + in if a > maxBoundI
45.73 s
[really-safe-money] + then Nothing
45.73 s
[really-safe-money] + else
45.73 s
[really-safe-money] + let w :: Word64
45.73 s
[really-safe-money] + w = (fromIntegral :: Integer -> Word64) a
45.73 s
[really-safe-money] + amount :: Amount
45.73 s
[really-safe-money] + amount = Amount.fromMinimalQuantisations w
45.73 s
[really-safe-money] + in Just $
45.73 s
[really-safe-money] + if i >= 0
45.73 s
[really-safe-money] + then Positive amount
45.74 s
[really-safe-money] + else Negative amount
45.74 s
[really-safe-money]
45.74 s
[really-safe-money] -- | Turn an amount into a positive account
45.74 s
[really-safe-money] --
45.74 s
[really-safe-money] added 66 mutations
46.61 s
[really-safe-money] [10 of 12] Compiling Money.MultiAccount ( src/Money/MultiAccount.hs, dist/build/Money/MultiAccount.p_o )
46.63 s
[really-safe-money] mutation: instrumenting Money.MultiAccount
46.63 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
46.63 s
[really-safe-money] @@ -171,10 +171,10 @@
46.63 s
[really-safe-money] fmap
46.63 s
[really-safe-money] ( ( \theoreticalResult ->
46.63 s
[really-safe-money] let rounder :: Rational -> Integer
46.63 s
[really-safe-money] - rounder = case r of
46.63 s
[really-safe-money] - RoundUp -> ceiling
46.63 s
[really-safe-money] - RoundDown -> floor
46.63 s
[really-safe-money] - RoundNearest -> round
46.63 s
[really-safe-money] + rounder = case r of
46.63 s
[really-safe-money] + RoundUp -> ceiling
46.63 s
[really-safe-money] + RoundDown -> floor
46.63 s
[really-safe-money] + RoundNearest -> round
46.63 s
[really-safe-money] roundedResult :: Integer
46.63 s
[really-safe-money] roundedResult = rounder theoreticalResult
46.63 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
46.63 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
46.63 s
[really-safe-money] @@ -171,10 +171,10 @@
46.63 s
[really-safe-money] fmap
46.63 s
[really-safe-money] ( ( \theoreticalResult ->
46.63 s
[really-safe-money] let rounder :: Rational -> Integer
46.63 s
[really-safe-money] - rounder = case r of
46.63 s
[really-safe-money] - RoundUp -> ceiling
46.63 s
[really-safe-money] - RoundDown -> floor
46.63 s
[really-safe-money] - RoundNearest -> round
46.63 s
[really-safe-money] + rounder = case r of
46.63 s
[really-safe-money] + RoundUp -> ceiling
46.63 s
[really-safe-money] + RoundDown -> floor
46.63 s
[really-safe-money] + RoundNearest -> round
46.63 s
[really-safe-money] roundedResult :: Integer
46.64 s
[really-safe-money] roundedResult = rounder theoreticalResult
46.64 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
46.64 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
46.64 s
[really-safe-money] @@ -171,10 +171,10 @@
46.64 s
[really-safe-money] fmap
46.64 s
[really-safe-money] ( ( \theoreticalResult ->
46.64 s
[really-safe-money] let rounder :: Rational -> Integer
46.64 s
[really-safe-money] - rounder = case r of
46.64 s
[really-safe-money] - RoundUp -> ceiling
46.64 s
[really-safe-money] - RoundDown -> floor
46.64 s
[really-safe-money] - RoundNearest -> round
46.64 s
[really-safe-money] + rounder = case r of
46.64 s
[really-safe-money] + RoundUp -> ceiling
46.64 s
[really-safe-money] + RoundDown -> floor
46.64 s
[really-safe-money] + RoundNearest -> round
46.64 s
[really-safe-money] roundedResult :: Integer
46.64 s
[really-safe-money] roundedResult = rounder theoreticalResult
46.64 s
[really-safe-money] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
46.64 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
46.64 s
[really-safe-money] @@ -177,10 +177,10 @@
46.64 s
[really-safe-money] RoundNearest -> round
46.64 s
[really-safe-money] roundedResult :: Integer
46.64 s
[really-safe-money] roundedResult = rounder theoreticalResult
46.64 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
46.64 s
[really-safe-money] - LT -> RoundedDown
46.64 s
[really-safe-money] - EQ -> DidNotRound
46.64 s
[really-safe-money] - GT -> RoundedUp
46.64 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
46.64 s
[really-safe-money] + LT -> RoundedDown
46.64 s
[really-safe-money] + EQ -> DidNotRound
46.64 s
[really-safe-money] + GT -> RoundedUp
46.64 s
[really-safe-money] in (Account.fromMinimalQuantisations roundedResult, rounded)
46.64 s
[really-safe-money] )
46.64 s
[really-safe-money] . Prelude.sum
46.64 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
46.64 s
[really-safe-money] @@ -177,10 +177,10 @@
46.64 s
[really-safe-money] RoundNearest -> round
46.64 s
[really-safe-money] roundedResult :: Integer
46.64 s
[really-safe-money] roundedResult = rounder theoreticalResult
46.64 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
46.64 s
[really-safe-money] - LT -> RoundedDown
46.64 s
[really-safe-money] - EQ -> DidNotRound
46.64 s
[really-safe-money] - GT -> RoundedUp
46.64 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
46.64 s
[really-safe-money] + LT -> RoundedDown
46.64 s
[really-safe-money] + EQ -> DidNotRound
46.64 s
[really-safe-money] + GT -> RoundedUp
46.64 s
[really-safe-money] in (Account.fromMinimalQuantisations roundedResult, rounded)
46.64 s
[really-safe-money] )
46.64 s
[really-safe-money] . Prelude.sum
46.64 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
46.64 s
[really-safe-money] @@ -177,10 +177,10 @@
46.64 s
[really-safe-money] RoundNearest -> round
46.64 s
[really-safe-money] roundedResult :: Integer
46.64 s
[really-safe-money] roundedResult = rounder theoreticalResult
46.64 s
[really-safe-money] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
46.64 s
[really-safe-money] - LT -> RoundedDown
46.64 s
[really-safe-money] - EQ -> DidNotRound
46.64 s
[really-safe-money] - GT -> RoundedUp
46.64 s
[really-safe-money] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
46.64 s
[really-safe-money] + LT -> RoundedDown
46.64 s
[really-safe-money] + EQ -> DidNotRound
46.64 s
[really-safe-money] + GT -> RoundedUp
46.64 s
[really-safe-money] in (Account.fromMinimalQuantisations roundedResult, rounded)
46.64 s
[really-safe-money] )
46.64 s
[really-safe-money] . Prelude.sum
46.64 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:134:12-29
46.64 s
[really-safe-money] @@ -131,7 +131,7 @@
46.64 s
[really-safe-money] Just a -> do
46.64 s
[really-safe-money] r <- Account.subtract a account
46.64 s
[really-safe-money] Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] + if True
46.64 s
[really-safe-money] then M.delete currency m
46.64 s
[really-safe-money] else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:134:12-29
46.64 s
[really-safe-money] @@ -131,7 +131,7 @@
46.64 s
[really-safe-money] Just a -> do
46.64 s
[really-safe-money] r <- Account.subtract a account
46.64 s
[really-safe-money] Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] + if False
46.64 s
[really-safe-money] then M.delete currency m
46.64 s
[really-safe-money] else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] added mutation Negate at src/Money/MultiAccount.hs:134:12-29
46.64 s
[really-safe-money] @@ -131,7 +131,7 @@
46.64 s
[really-safe-money] Just a -> do
46.64 s
[really-safe-money] r <- Account.subtract a account
46.64 s
[really-safe-money] Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] + if not (r == Account.zero)
46.64 s
[really-safe-money] then M.delete currency m
46.64 s
[really-safe-money] else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAccount.hs:134:9-37
46.64 s
[really-safe-money] @@ -131,9 +131,9 @@
46.64 s
[really-safe-money] Just a -> do
46.64 s
[really-safe-money] r <- Account.subtract a account
46.64 s
[really-safe-money] Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] - then M.delete currency m
46.64 s
[really-safe-money] - else M.insert currency r m
46.64 s
[really-safe-money] + if r == Account.zero
46.64 s
[really-safe-money] + then M.delete currency m
46.64 s
[really-safe-money] + else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] -- | Try to convert every account to one currency.
46.64 s
[really-safe-money] --
46.64 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:129:23-37
46.64 s
[really-safe-money] @@ -126,14 +126,14 @@
46.64 s
[really-safe-money] subtractAccount m _ (Positive (Amount 0)) = Just m
46.64 s
[really-safe-money] subtractAccount m _ (Negative (Amount 0)) = Just m
46.64 s
[really-safe-money] subtractAccount (MultiAccount m) currency account =
46.64 s
[really-safe-money] - fmap MultiAccount $ case M.lookup currency m of
46.64 s
[really-safe-money] - Nothing -> Just $ M.insert currency (Account.negate account) m
46.64 s
[really-safe-money] - Just a -> do
46.64 s
[really-safe-money] - r <- Account.subtract a account
46.64 s
[really-safe-money] - Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] - then M.delete currency m
46.64 s
[really-safe-money] - else M.insert currency r m
46.64 s
[really-safe-money] + fmap MultiAccount $ case M.lookup currency m of
46.64 s
[really-safe-money] + Nothing -> Just $ M.insert currency (Account.negate account) m
46.64 s
[really-safe-money] + Just a -> do
46.64 s
[really-safe-money] + r <- Account.subtract a account
46.64 s
[really-safe-money] + Just $
46.64 s
[really-safe-money] + if r == Account.zero
46.64 s
[really-safe-money] + then M.delete currency m
46.64 s
[really-safe-money] + else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] -- | Try to convert every account to one currency.
46.64 s
[really-safe-money] --
46.64 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:129:23-37
46.64 s
[really-safe-money] @@ -126,14 +126,14 @@
46.64 s
[really-safe-money] subtractAccount m _ (Positive (Amount 0)) = Just m
46.64 s
[really-safe-money] subtractAccount m _ (Negative (Amount 0)) = Just m
46.64 s
[really-safe-money] subtractAccount (MultiAccount m) currency account =
46.64 s
[really-safe-money] - fmap MultiAccount $ case M.lookup currency m of
46.64 s
[really-safe-money] - Nothing -> Just $ M.insert currency (Account.negate account) m
46.64 s
[really-safe-money] - Just a -> do
46.64 s
[really-safe-money] - r <- Account.subtract a account
46.64 s
[really-safe-money] - Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] - then M.delete currency m
46.64 s
[really-safe-money] - else M.insert currency r m
46.64 s
[really-safe-money] + fmap MultiAccount $ case M.lookup currency m of
46.64 s
[really-safe-money] + Nothing -> Just $ M.insert currency (Account.negate account) m
46.64 s
[really-safe-money] + Just a -> do
46.64 s
[really-safe-money] + r <- Account.subtract a account
46.64 s
[really-safe-money] + Just $
46.64 s
[really-safe-money] + if r == Account.zero
46.64 s
[really-safe-money] + then M.delete currency m
46.64 s
[really-safe-money] + else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] -- | Try to convert every account to one currency.
46.64 s
[really-safe-money] --
46.64 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:120:12-29
46.64 s
[really-safe-money] @@ -117,7 +117,7 @@
46.64 s
[really-safe-money] Just a -> do
46.64 s
[really-safe-money] r <- Account.add a account
46.64 s
[really-safe-money] Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] + if True
46.64 s
[really-safe-money] then M.delete currency m
46.64 s
[really-safe-money] else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:120:12-29
46.64 s
[really-safe-money] @@ -117,7 +117,7 @@
46.64 s
[really-safe-money] Just a -> do
46.64 s
[really-safe-money] r <- Account.add a account
46.64 s
[really-safe-money] Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] + if False
46.64 s
[really-safe-money] then M.delete currency m
46.64 s
[really-safe-money] else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] added mutation Negate at src/Money/MultiAccount.hs:120:12-29
46.64 s
[really-safe-money] @@ -117,7 +117,7 @@
46.64 s
[really-safe-money] Just a -> do
46.64 s
[really-safe-money] r <- Account.add a account
46.64 s
[really-safe-money] Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] + if not (r == Account.zero)
46.64 s
[really-safe-money] then M.delete currency m
46.64 s
[really-safe-money] else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAccount.hs:120:9-37
46.64 s
[really-safe-money] @@ -117,9 +117,9 @@
46.64 s
[really-safe-money] Just a -> do
46.64 s
[really-safe-money] r <- Account.add a account
46.64 s
[really-safe-money] Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] - then M.delete currency m
46.64 s
[really-safe-money] - else M.insert currency r m
46.64 s
[really-safe-money] + if r == Account.zero
46.64 s
[really-safe-money] + then M.delete currency m
46.64 s
[really-safe-money] + else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] -- | Add an 'Account' to a 'MultiAccount'
46.64 s
[really-safe-money] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
46.64 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:115:23-37
46.64 s
[really-safe-money] @@ -112,14 +112,14 @@
46.64 s
[really-safe-money] addAccount m _ (Positive (Amount 0)) = Just m
46.64 s
[really-safe-money] addAccount m _ (Negative (Amount 0)) = Just m
46.64 s
[really-safe-money] addAccount (MultiAccount m) currency account =
46.64 s
[really-safe-money] - fmap MultiAccount $ case M.lookup currency m of
46.64 s
[really-safe-money] - Nothing -> Just $ M.insert currency account m
46.64 s
[really-safe-money] - Just a -> do
46.64 s
[really-safe-money] - r <- Account.add a account
46.64 s
[really-safe-money] - Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] - then M.delete currency m
46.64 s
[really-safe-money] - else M.insert currency r m
46.64 s
[really-safe-money] + fmap MultiAccount $ case M.lookup currency m of
46.64 s
[really-safe-money] + Nothing -> Just $ M.insert currency account m
46.64 s
[really-safe-money] + Just a -> do
46.64 s
[really-safe-money] + r <- Account.add a account
46.64 s
[really-safe-money] + Just $
46.64 s
[really-safe-money] + if r == Account.zero
46.64 s
[really-safe-money] + then M.delete currency m
46.64 s
[really-safe-money] + else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] -- | Add an 'Account' to a 'MultiAccount'
46.64 s
[really-safe-money] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
46.64 s
[really-safe-money] added mutation RemoveCase at src/Money/MultiAccount.hs:115:23-37
46.64 s
[really-safe-money] @@ -112,14 +112,14 @@
46.64 s
[really-safe-money] addAccount m _ (Positive (Amount 0)) = Just m
46.64 s
[really-safe-money] addAccount m _ (Negative (Amount 0)) = Just m
46.64 s
[really-safe-money] addAccount (MultiAccount m) currency account =
46.64 s
[really-safe-money] - fmap MultiAccount $ case M.lookup currency m of
46.64 s
[really-safe-money] - Nothing -> Just $ M.insert currency account m
46.64 s
[really-safe-money] - Just a -> do
46.64 s
[really-safe-money] - r <- Account.add a account
46.64 s
[really-safe-money] - Just $
46.64 s
[really-safe-money] - if r == Account.zero
46.64 s
[really-safe-money] - then M.delete currency m
46.64 s
[really-safe-money] - else M.insert currency r m
46.64 s
[really-safe-money] + fmap MultiAccount $ case M.lookup currency m of
46.64 s
[really-safe-money] + Nothing -> Just $ M.insert currency account m
46.64 s
[really-safe-money] + Just a -> do
46.64 s
[really-safe-money] + r <- Account.add a account
46.64 s
[really-safe-money] + Just $
46.64 s
[really-safe-money] + if r == Account.zero
46.64 s
[really-safe-money] + then M.delete currency m
46.64 s
[really-safe-money] + else M.insert currency r m
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] -- | Add an 'Account' to a 'MultiAccount'
46.64 s
[really-safe-money] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
46.64 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:78:6-28
46.64 s
[really-safe-money] @@ -75,7 +75,7 @@
46.64 s
[really-safe-money]
46.64 s
[really-safe-money] fromAccount :: currency -> Account -> MultiAccount currency
46.64 s
[really-safe-money] fromAccount currency amount =
46.64 s
[really-safe-money] - if amount == Account.zero
46.64 s
[really-safe-money] + if True
46.65 s
[really-safe-money] then zero
46.65 s
[really-safe-money] else MultiAccount $ M.singleton currency amount
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:78:6-28
46.65 s
[really-safe-money] @@ -75,7 +75,7 @@
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] fromAccount :: currency -> Account -> MultiAccount currency
46.65 s
[really-safe-money] fromAccount currency amount =
46.65 s
[really-safe-money] - if amount == Account.zero
46.65 s
[really-safe-money] + if False
46.65 s
[really-safe-money] then zero
46.65 s
[really-safe-money] else MultiAccount $ M.singleton currency amount
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] added mutation Negate at src/Money/MultiAccount.hs:78:6-28
46.65 s
[really-safe-money] @@ -75,7 +75,7 @@
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] fromAccount :: currency -> Account -> MultiAccount currency
46.65 s
[really-safe-money] fromAccount currency amount =
46.65 s
[really-safe-money] - if amount == Account.zero
46.65 s
[really-safe-money] + if not (amount == Account.zero)
46.65 s
[really-safe-money] then zero
46.65 s
[really-safe-money] else MultiAccount $ M.singleton currency amount
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] added mutation CondFlip at src/Money/MultiAccount.hs:78:3-52
46.65 s
[really-safe-money] @@ -75,9 +75,9 @@
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] fromAccount :: currency -> Account -> MultiAccount currency
46.65 s
[really-safe-money] fromAccount currency amount =
46.65 s
[really-safe-money] - if amount == Account.zero
46.65 s
[really-safe-money] - then zero
46.65 s
[really-safe-money] - else MultiAccount $ M.singleton currency amount
46.65 s
[really-safe-money] + if amount == Account.zero
46.65 s
[really-safe-money] + then zero
46.65 s
[really-safe-money] + else MultiAccount $ M.singleton currency amount
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] -- | No money of any currency
46.65 s
[really-safe-money] zero :: MultiAccount currency
46.65 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:69:13-30
46.65 s
[really-safe-money] @@ -66,7 +66,7 @@
46.65 s
[really-safe-money] [ genericValidate ma,
46.65 s
[really-safe-money] decorateMap m $ \_ a ->
46.65 s
[really-safe-money] declare "The account is not zero" $
46.65 s
[really-safe-money] - a /= Account.zero
46.65 s
[really-safe-money] + True
46.65 s
[really-safe-money] ]
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] -- TODO no empty currencies
46.65 s
[really-safe-money] added mutation ConstBool at src/Money/MultiAccount.hs:69:13-30
46.65 s
[really-safe-money] @@ -66,7 +66,7 @@
46.65 s
[really-safe-money] [ genericValidate ma,
46.65 s
[really-safe-money] decorateMap m $ \_ a ->
46.65 s
[really-safe-money] declare "The account is not zero" $
46.65 s
[really-safe-money] - a /= Account.zero
46.65 s
[really-safe-money] + False
46.65 s
[really-safe-money] ]
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] -- TODO no empty currencies
46.65 s
[really-safe-money] added mutation Negate at src/Money/MultiAccount.hs:69:13-30
46.65 s
[really-safe-money] @@ -66,7 +66,7 @@
46.65 s
[really-safe-money] [ genericValidate ma,
46.65 s
[really-safe-money] decorateMap m $ \_ a ->
46.65 s
[really-safe-money] declare "The account is not zero" $
46.65 s
[really-safe-money] - a /= Account.zero
46.65 s
[really-safe-money] + not (a /= Account.zero)
46.65 s
[really-safe-money] ]
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] -- TODO no empty currencies
46.65 s
[really-safe-money] added mutation ListLit at src/Money/MultiAccount.hs:66:7-8
46.65 s
[really-safe-money] @@ -63,11 +63,7 @@
46.65 s
[really-safe-money] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
46.65 s
[really-safe-money] validate ma@(MultiAccount m) =
46.65 s
[really-safe-money] mconcat
46.65 s
[really-safe-money] - [ genericValidate ma,
46.65 s
[really-safe-money] - decorateMap m $ \_ a ->
46.65 s
[really-safe-money] - declare "The account is not zero" $
46.65 s
[really-safe-money] - a /= Account.zero
46.65 s
[really-safe-money] - ]
46.65 s
[really-safe-money] + []
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] -- TODO no empty currencies
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] added mutation ListLit at src/Money/MultiAccount.hs:66:7-8
46.65 s
[really-safe-money] @@ -63,11 +63,11 @@
46.65 s
[really-safe-money] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
46.65 s
[really-safe-money] validate ma@(MultiAccount m) =
46.65 s
[really-safe-money] mconcat
46.65 s
[really-safe-money] - [ genericValidate ma,
46.65 s
[really-safe-money] - decorateMap m $ \_ a ->
46.65 s
[really-safe-money] - declare "The account is not zero" $
46.65 s
[really-safe-money] - a /= Account.zero
46.65 s
[really-safe-money] - ]
46.65 s
[really-safe-money] + [ genericValidate ma,
46.65 s
[really-safe-money] + decorateMap m $ \_ a ->
46.65 s
[really-safe-money] + declare "The account is not zero" $
46.65 s
[really-safe-money] + a /= Account.zero
46.65 s
[really-safe-money] + ]
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] -- TODO no empty currencies
46.65 s
[really-safe-money]
46.65 s
[really-safe-money] added 27 mutations
47.23 s
[really-safe-money] [11 of 12] Compiling Money.AccountOf ( src/Money/AccountOf.hs, dist/build/Money/AccountOf.p_o )
47.25 s
[really-safe-money] mutation: instrumenting Money.AccountOf
47.25 s
[really-safe-money] added mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
47.25 s
[really-safe-money] @@ -177,11 +177,11 @@
47.25 s
[really-safe-money]
47.25 s
[really-safe-money] -- | See 'Account.distribute'
47.25 s
[really-safe-money] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
47.25 s
[really-safe-money] -distribute (AccountOf a) w = case Account.distribute a w of
47.25 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
47.25 s
[really-safe-money] - DistributedZero -> DistributedZero
47.25 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
47.25 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
47.25 s
[really-safe-money] +distribute (AccountOf a) w = case Account.distribute a w of
47.25 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
47.25 s
[really-safe-money] + DistributedZero -> DistributedZero
47.25 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
47.25 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
47.25 s
[really-safe-money]
47.25 s
[really-safe-money] -- | The result of 'distribute'
47.25 s
[really-safe-money] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
47.25 s
[really-safe-money] added mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
47.25 s
[really-safe-money] @@ -177,11 +177,11 @@
47.25 s
[really-safe-money]
47.25 s
[really-safe-money] -- | See 'Account.distribute'
47.25 s
[really-safe-money] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
47.25 s
[really-safe-money] -distribute (AccountOf a) w = case Account.distribute a w of
47.25 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
47.25 s
[really-safe-money] - DistributedZero -> DistributedZero
47.25 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
47.25 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
47.25 s
[really-safe-money] +distribute (AccountOf a) w = case Account.distribute a w of
47.25 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
47.25 s
[really-safe-money] + DistributedZero -> DistributedZero
47.25 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
47.25 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
47.25 s
[really-safe-money]
47.25 s
[really-safe-money] -- | The result of 'distribute'
47.25 s
[really-safe-money] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
47.25 s
[really-safe-money] added mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
47.25 s
[really-safe-money] @@ -177,11 +177,11 @@
47.25 s
[really-safe-money]
47.25 s
[really-safe-money] -- | See 'Account.distribute'
47.25 s
[really-safe-money] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
47.25 s
[really-safe-money] -distribute (AccountOf a) w = case Account.distribute a w of
47.25 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
47.25 s
[really-safe-money] - DistributedZero -> DistributedZero
47.25 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
47.25 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
47.25 s
[really-safe-money] +distribute (AccountOf a) w = case Account.distribute a w of
47.25 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
47.25 s
[really-safe-money] + DistributedZero -> DistributedZero
47.25 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
47.25 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
47.25 s
[really-safe-money]
47.25 s
[really-safe-money] -- | The result of 'distribute'
47.25 s
[really-safe-money] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
47.25 s
[really-safe-money] added mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
47.25 s
[really-safe-money] @@ -177,11 +177,11 @@
47.25 s
[really-safe-money]
47.25 s
[really-safe-money] -- | See 'Account.distribute'
47.25 s
[really-safe-money] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
47.25 s
[really-safe-money] -distribute (AccountOf a) w = case Account.distribute a w of
47.25 s
[really-safe-money] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
47.25 s
[really-safe-money] - DistributedZero -> DistributedZero
47.25 s
[really-safe-money] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
47.25 s
[really-safe-money] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
47.25 s
[really-safe-money] +distribute (AccountOf a) w = case Account.distribute a w of
47.25 s
[really-safe-money] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
47.25 s
[really-safe-money] + DistributedZero -> DistributedZero
47.25 s
[really-safe-money] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
47.25 s
[really-safe-money] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
47.25 s
[really-safe-money]
47.25 s
[really-safe-money] -- | The result of 'distribute'
47.25 s
[really-safe-money] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
47.25 s
[really-safe-money] added 4 mutations
47.54 s
[really-safe-money] [12 of 12] Compiling Paths_really_safe_money ( dist/build/autogen/Paths_really_safe_money.hs, dist/build/Paths_really_safe_money.p_o )
47.94 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Money/Account.dyn_o'
47.94 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Money/AccountOf.dyn_o'
48.19 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Money/Amount.dyn_o'
48.19 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Money/AmountOf.dyn_o'
48.19 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Money/ConversionRate.dyn_o'
48.19 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Money/ConversionRateOf.dyn_o'
48.19 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Money/Currency.dyn_o'
48.19 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Money/MultiAccount.dyn_o'
48.19 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Money/MultiAmount.dyn_o'
48.19 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Money/QuantisationFactor.dyn_o'
48.19 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Numeric/DecimalLiteral.dyn_o'
48.19 s
[really-safe-money] Warning: ignoring unrecognised input `dist/build/Paths_really_safe_money.dyn_o'
49.12 s
[really-safe-money] mutation-nix: manifest output at /nix/store/nfynk6q38yhj3djq59kjh39ii2l95n4m-really-safe-money-0.0.0.0-manifest:
49.12 s
[really-safe-money] total 296
49.12 s
[really-safe-money] drwxr-xr-x 2 nixbld nixbld 4096 May 13 16:10 .
49.12 s
[really-safe-money] drwxrwxr-t 238 nobody nixbld 28672 May 13 16:10 ..
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 56505 May 13 16:10 Money.Account.json
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 5229 May 13 16:10 Money.AccountOf.json
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 54786 May 13 16:10 Money.Amount.json
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 5033 May 13 16:10 Money.AmountOf.json
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 8599 May 13 16:10 Money.ConversionRate.json
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 2 May 13 16:10 Money.ConversionRateOf.json
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 2 May 13 16:10 Money.Currency.json
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 20330 May 13 16:10 Money.MultiAccount.json
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 23239 May 13 16:10 Money.MultiAmount.json
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 15615 May 13 16:10 Money.QuantisationFactor.json
49.12 s
[really-safe-money] -rw-r--r-- 1 nixbld nixbld 53101 May 13 16:10 Numeric.DecimalLiteral.json
49.12 s
[really-safe-money] Phase: haddockPhase
49.13 s
[really-safe-money] Phase: installPhase
49.16 s
[really-safe-money] Installing library in /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
49.47 s
[really-safe-money] Phase: fixupPhase
49.49 s
[really-safe-money] shrinking RPATHs of ELF executables and libraries in /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0
49.50 s
[really-safe-money] shrinking /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/libHSreally-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9-ghc9.10.3.so
49.52 s
[really-safe-money] checking for references to /build/ in /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0...
49.55 s
[really-safe-money] patching script interpreter paths in /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0
49.55 s
[really-safe-money] stripping (with command strip and flags -S -p) in /nix/store/xa61xikjw2kgpvc3m0cc5r4rikakvs9d-really-safe-money-0.0.0.0/lib
49.71 s
[really-safe-money] shrinking RPATHs of ELF executables and libraries in /nix/store/nfynk6q38yhj3djq59kjh39ii2l95n4m-really-safe-money-0.0.0.0-manifest
49.71 s
[really-safe-money] checking for references to /build/ in /nix/store/nfynk6q38yhj3djq59kjh39ii2l95n4m-really-safe-money-0.0.0.0-manifest...
49.72 s
[really-safe-money] patching script interpreter paths in /nix/store/nfynk6q38yhj3djq59kjh39ii2l95n4m-really-safe-money-0.0.0.0-manifest
49.81 s
Progress: 1 of 7 built
49.86 s
Building really-safe-money-autodocodec-source
49.90 s
Building really-safe-money-gen-source
50.07 s
[really-safe-money-autodocodec-source] Phase: setupCompilerEnvironmentPhase
50.08 s
[really-safe-money-autodocodec-source] Build with /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3.
50.18 s
[really-safe-money-gen-source] Phase: setupCompilerEnvironmentPhase
50.19 s
[really-safe-money-gen-source] Build with /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3.
50.35 s
[really-safe-money-autodocodec-source] Phase: unpackPhase
50.36 s
[really-safe-money-autodocodec-source] unpacking source archive /nix/store/8krpxqimxqvympfqdqxg1jzjg2jrcglb-really-safe-money-autodocodec
50.36 s
[really-safe-money-autodocodec-source] source root is really-safe-money-autodocodec
50.37 s
[really-safe-money-autodocodec-source] Phase: patchPhase
50.38 s
[really-safe-money-autodocodec-source] Phase: compileBuildDriverPhase
50.39 s
[really-safe-money-autodocodec-source] setupCompileFlags: -package-db=/build/tmp.7bsWD1EF18/setup-package.conf.d -threaded
50.44 s
[really-safe-money-autodocodec-source] [1 of 2] Compiling Main ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /build/tmp.7bsWD1EF18/Main.o )
50.50 s
[really-safe-money-autodocodec-source] [2 of 2] Linking Setup
50.54 s
[really-safe-money-gen-source] Phase: unpackPhase
50.54 s
[really-safe-money-gen-source] unpacking source archive /nix/store/igm3hbdpcwgfbdx9yjyf6d68w1ifih08-really-safe-money-gen
50.55 s
[really-safe-money-gen-source] source root is really-safe-money-gen
50.56 s
[really-safe-money-gen-source] Phase: patchPhase
50.57 s
[really-safe-money-gen-source] Phase: compileBuildDriverPhase
50.57 s
[really-safe-money-gen-source] setupCompileFlags: -package-db=/build/tmp.yxenrDyg5w/setup-package.conf.d -threaded
50.62 s
[really-safe-money-gen-source] [1 of 2] Compiling Main ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /build/tmp.yxenrDyg5w/Main.o )
50.67 s
[really-safe-money-gen-source] [2 of 2] Linking Setup
51.75 s
[really-safe-money-autodocodec-source] Phase: updateAutotoolsGnuConfigScriptsPhase
51.77 s
[really-safe-money-autodocodec-source] Phase: configurePhase
51.77 s
[really-safe-money-autodocodec-source] configureFlags: --verbose --prefix=/nix/store/al7lg8kns188ppz1b3kz15ddxk77z5c0-really-safe-money-autodocodec-source-0.0.0.0 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --docdir=/share/doc/really-safe-money-autodocodec-0.0.0.0 --with-gcc=gcc --package-db=/build/tmp.7bsWD1EF18/package.conf.d --ghc-option=-j16 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --disable-tests --enable-benchmarks --enable-library-vanilla --disable-library-for-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping --ghc-option=-haddock --ghc-options=-O2 --ghc-options=-Wall --ghc-options=-Wincomplete-uni-patterns --ghc-options=-Wincomplete-record-updates --ghc-options=-Wpartial-fields --ghc-options=-Widentities --ghc-options=-Wredundant-constraints --ghc-options=-Wcpp-undef --ghc-options=-Werror --extra-lib-dirs=/nix/store/ffyzkisqs4vc4mg28bwwlyqjf8i9ph6b-ncurses-6.5/lib --extra-lib-dirs=/nix/store/n28qgdj8c1q41kf7n4y1jxa6ckp85m3c-libffi-3.5.2/lib --extra-lib-dirs=/nix/store/1b6h99dw7bk4wbn77kbalih42zbc67m1-elfutils-0.194/lib --extra-lib-dirs=/nix/store/hi0ar880110k6jsmmili7dh1gq3cg2a9-gmp-with-cxx-6.3.0/lib --extra-lib-dirs=/nix/store/g09cflpnp4g80q56sj9dng1qzv4v4ybc-numactl-2.0.18/lib --extra-lib-dirs=/nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/lib
51.78 s
[really-safe-money-autodocodec-source] Using Parsec parser
51.78 s
[really-safe-money-autodocodec-source] Configuring really-safe-money-autodocodec-0.0.0.0...
51.91 s
[really-safe-money-gen-source] Phase: updateAutotoolsGnuConfigScriptsPhase
51.93 s
[really-safe-money-gen-source] Phase: configurePhase
51.93 s
[really-safe-money-gen-source] configureFlags: --verbose --prefix=/nix/store/w4nkbq86l33109ak3dwpv6bjsrj1y3n1-really-safe-money-gen-source-0.0.0.0 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --docdir=/share/doc/really-safe-money-gen-0.0.0.0 --with-gcc=gcc --package-db=/build/tmp.yxenrDyg5w/package.conf.d --ghc-option=-j16 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --disable-tests --enable-benchmarks --enable-library-vanilla --disable-library-for-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping --ghc-option=-haddock --ghc-options=-O2 --ghc-options=-Wall --ghc-options=-Wincomplete-uni-patterns --ghc-options=-Wincomplete-record-updates --ghc-options=-Wpartial-fields --ghc-options=-Widentities --ghc-options=-Wredundant-constraints --ghc-options=-Wcpp-undef --ghc-options=-Werror --extra-lib-dirs=/nix/store/ffyzkisqs4vc4mg28bwwlyqjf8i9ph6b-ncurses-6.5/lib --extra-lib-dirs=/nix/store/n28qgdj8c1q41kf7n4y1jxa6ckp85m3c-libffi-3.5.2/lib --extra-lib-dirs=/nix/store/1b6h99dw7bk4wbn77kbalih42zbc67m1-elfutils-0.194/lib --extra-lib-dirs=/nix/store/hi0ar880110k6jsmmili7dh1gq3cg2a9-gmp-with-cxx-6.3.0/lib --extra-lib-dirs=/nix/store/g09cflpnp4g80q56sj9dng1qzv4v4ybc-numactl-2.0.18/lib --extra-lib-dirs=/nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/lib
51.94 s
[really-safe-money-gen-source] Using Parsec parser
51.94 s
[really-safe-money-gen-source] Configuring really-safe-money-gen-0.0.0.0...
52.41 s
[really-safe-money-autodocodec-source] Dependency autodocodec: using autodocodec-0.5.0.0
52.41 s
[really-safe-money-autodocodec-source] Dependency base >=4.7 && <5: using base-4.20.2.0
52.41 s
[really-safe-money-autodocodec-source] Dependency really-safe-money: using really-safe-money-0.0.0.0
52.41 s
[really-safe-money-autodocodec-source] Source component graph: component lib
52.41 s
[really-safe-money-autodocodec-source] Configured component graph:
52.41 s
[really-safe-money-autodocodec-source] component really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk
52.41 s
[really-safe-money-autodocodec-source] include autodocodec-0.5.0.0-1mMvp4WI6JDKv9IH8Klk8Y
52.41 s
[really-safe-money-autodocodec-source] include base-4.20.2.0-64da
52.41 s
[really-safe-money-autodocodec-source] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
52.41 s
[really-safe-money-autodocodec-source] Linked component graph:
52.41 s
[really-safe-money-autodocodec-source] unit really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk
52.41 s
[really-safe-money-autodocodec-source] include autodocodec-0.5.0.0-1mMvp4WI6JDKv9IH8Klk8Y
52.41 s
[really-safe-money-autodocodec-source] include base-4.20.2.0-64da
52.41 s
[really-safe-money-autodocodec-source] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
52.41 s
[really-safe-money-autodocodec-source] Money.Account.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Money.Account.Codec,Money.AccountOf.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Money.AccountOf.Codec,Money.Amount.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Money.Amount.Codec,Money.AmountOf.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Money.AmountOf.Codec,Money.QuantisationFactor.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Money.QuantisationFactor.Codec,Numeric.DecimalLiteral.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Numeric.DecimalLiteral.Codec
52.41 s
[really-safe-money-autodocodec-source] Ready component graph:
52.41 s
[really-safe-money-autodocodec-source] definite really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk
52.41 s
[really-safe-money-autodocodec-source] depends autodocodec-0.5.0.0-1mMvp4WI6JDKv9IH8Klk8Y
52.41 s
[really-safe-money-autodocodec-source] depends base-4.20.2.0-64da
52.41 s
[really-safe-money-autodocodec-source] depends really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
52.41 s
[really-safe-money-autodocodec-source] Using Cabal-3.12.1.0 compiled by ghc-9.10
52.41 s
[really-safe-money-autodocodec-source] Using compiler: ghc-9.10.3
52.41 s
[really-safe-money-autodocodec-source] Using install prefix:
52.41 s
[really-safe-money-autodocodec-source] /nix/store/al7lg8kns188ppz1b3kz15ddxk77z5c0-really-safe-money-autodocodec-source-0.0.0.0
52.41 s
[really-safe-money-autodocodec-source] Executables installed in:
52.41 s
[really-safe-money-autodocodec-source] /nix/store/al7lg8kns188ppz1b3kz15ddxk77z5c0-really-safe-money-autodocodec-source-0.0.0.0/bin
52.41 s
[really-safe-money-autodocodec-source] Libraries installed in:
52.41 s
[really-safe-money-autodocodec-source] /nix/store/al7lg8kns188ppz1b3kz15ddxk77z5c0-really-safe-money-autodocodec-source-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk
52.41 s
[really-safe-money-autodocodec-source] Dynamic Libraries installed in:
52.41 s
[really-safe-money-autodocodec-source] /nix/store/al7lg8kns188ppz1b3kz15ddxk77z5c0-really-safe-money-autodocodec-source-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6
52.41 s
[really-safe-money-autodocodec-source] Private executables installed in:
52.41 s
[really-safe-money-autodocodec-source] /nix/store/al7lg8kns188ppz1b3kz15ddxk77z5c0-really-safe-money-autodocodec-source-0.0.0.0/libexec/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-autodocodec-0.0.0.0
52.41 s
[really-safe-money-autodocodec-source] Data files installed in:
52.41 s
[really-safe-money-autodocodec-source] /nix/store/al7lg8kns188ppz1b3kz15ddxk77z5c0-really-safe-money-autodocodec-source-0.0.0.0/share/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-autodocodec-0.0.0.0
52.41 s
[really-safe-money-autodocodec-source] Documentation installed in: /share/doc/really-safe-money-autodocodec-0.0.0.0
52.41 s
[really-safe-money-autodocodec-source] Configuration files installed in:
52.41 s
[really-safe-money-autodocodec-source] /nix/store/al7lg8kns188ppz1b3kz15ddxk77z5c0-really-safe-money-autodocodec-source-0.0.0.0/etc
52.42 s
[really-safe-money-autodocodec-source] No alex found
52.42 s
[really-safe-money-autodocodec-source] Using ar found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/iz5lckcsg66r223si2gck7csk2hihj0m-binutils-wrapper-2.44/bin/ar
52.42 s
[really-safe-money-autodocodec-source] No c2hs found
52.42 s
[really-safe-money-autodocodec-source] No cpphs found
52.42 s
[really-safe-money-autodocodec-source] No doctest found
52.42 s
[really-safe-money-autodocodec-source] Using gcc version 14.3.0 given by user at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/gcc
52.42 s
[really-safe-money-autodocodec-source] Using ghc version 9.10.3 found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/ghc
52.42 s
[really-safe-money-autodocodec-source] Using ghc-pkg version 9.10.3 found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/ghc-pkg-9.10.3
52.42 s
[really-safe-money-autodocodec-source] No ghcjs found
52.42 s
[really-safe-money-autodocodec-source] No ghcjs-pkg found
52.42 s
[really-safe-money-autodocodec-source] No greencard found
52.42 s
[really-safe-money-autodocodec-source] Using haddock version 2.31.1 found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/haddock-ghc-9.10.3
52.42 s
[really-safe-money-autodocodec-source] No happy found
52.42 s
[really-safe-money-autodocodec-source] Using haskell-suite found on system at: haskell-suite-dummy-location
52.42 s
[really-safe-money-autodocodec-source] Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
52.42 s
[really-safe-money-autodocodec-source] No hmake found
52.42 s
[really-safe-money-autodocodec-source] Using hpc version 0.69 found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/hpc-ghc-9.10.3
52.42 s
[really-safe-money-autodocodec-source] Using hsc2hs version 0.68.10 found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/hsc2hs-ghc-9.10.3
52.42 s
[really-safe-money-autodocodec-source] Using hscolour version 1.25 found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/f755skyzf4jvfx3crwq9mmh3x4lsaz8i-hscolour-1.25/bin/HsColour
52.42 s
[really-safe-money-autodocodec-source] No jhc found
52.42 s
[really-safe-money-autodocodec-source] Using ld found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/ld
52.42 s
[really-safe-money-autodocodec-source] No pkg-config found
52.42 s
[really-safe-money-autodocodec-source] Using runghc version 9.10.3 found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/runghc-9.10.3
52.42 s
[really-safe-money-autodocodec-source] Using strip version 2.44 found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/strip
52.42 s
[really-safe-money-autodocodec-source] Using tar found on system at:
52.42 s
[really-safe-money-autodocodec-source] /nix/store/xl6pd2spjajwcpq09fnmnjv5psqmlmma-gnutar-1.35/bin/tar
52.42 s
[really-safe-money-autodocodec-source] No uhc found
52.62 s
[really-safe-money-gen-source] Dependency QuickCheck: using QuickCheck-2.15.0.1
52.62 s
[really-safe-money-gen-source] Dependency base >=4.7 && <5: using base-4.20.2.0
52.62 s
[really-safe-money-gen-source] Dependency genvalidity: using genvalidity-1.1.1.0
52.62 s
[really-safe-money-gen-source] Dependency genvalidity-containers: using genvalidity-containers-1.0.0.2
52.62 s
[really-safe-money-gen-source] Dependency really-safe-money: using really-safe-money-0.0.0.0
52.62 s
[really-safe-money-gen-source] Dependency QuickCheck: using QuickCheck-2.15.0.1
52.62 s
[really-safe-money-gen-source] Dependency base >=4.7 && <5: using base-4.20.2.0
52.62 s
[really-safe-money-gen-source] Dependency criterion: using criterion-1.6.4.0
52.62 s
[really-safe-money-gen-source] Dependency deepseq: using deepseq-1.5.0.0
52.62 s
[really-safe-money-gen-source] Dependency genvalidity: using genvalidity-1.1.1.0
52.62 s
[really-safe-money-gen-source] Dependency genvalidity-criterion: using genvalidity-criterion-1.1.0.0
52.62 s
[really-safe-money-gen-source] Dependency genvalidity-vector: using genvalidity-vector-1.0.0.0
52.62 s
[really-safe-money-gen-source] Dependency really-safe-money: using really-safe-money-0.0.0.0
52.62 s
[really-safe-money-gen-source] Dependency really-safe-money-gen: using really-safe-money-gen-0.0.0.0
52.62 s
[really-safe-money-gen-source] Dependency vector: using vector-0.13.2.0
52.62 s
[really-safe-money-gen-source] Source component graph:
52.63 s
[really-safe-money-gen-source] component lib
52.63 s
[really-safe-money-gen-source] component bench:really-safe-money-bench dependency lib
52.63 s
[really-safe-money-gen-source] Configured component graph:
52.63 s
[really-safe-money-gen-source] component really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53
52.63 s
[really-safe-money-gen-source] include QuickCheck-2.15.0.1-8fVC1qSJKj9H9pvMjJXUwU
52.63 s
[really-safe-money-gen-source] include base-4.20.2.0-64da
52.63 s
[really-safe-money-gen-source] include genvalidity-1.1.1.0-KJOcA1wEUno9vXRiVdno1L
52.63 s
[really-safe-money-gen-source] include genvalidity-containers-1.0.0.2-DXaOCEBh8iJ1c8u2LwVlK1
52.63 s
[really-safe-money-gen-source] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
52.63 s
[really-safe-money-gen-source] component really-safe-money-gen-0.0.0.0-LP0fSqTOwvk9RMpsKSu0nN-really-safe-money-bench
52.63 s
[really-safe-money-gen-source] include QuickCheck-2.15.0.1-8fVC1qSJKj9H9pvMjJXUwU
52.63 s
[really-safe-money-gen-source] include base-4.20.2.0-64da
52.63 s
[really-safe-money-gen-source] include criterion-1.6.4.0-ExZW8LB8ON09pSIfu9sGRN
52.63 s
[really-safe-money-gen-source] include deepseq-1.5.0.0-9a2c
52.63 s
[really-safe-money-gen-source] include genvalidity-1.1.1.0-KJOcA1wEUno9vXRiVdno1L
52.63 s
[really-safe-money-gen-source] include genvalidity-criterion-1.1.0.0-9pHw4wnFNz9EtFzK0UU3g3
52.63 s
[really-safe-money-gen-source] include genvalidity-vector-1.0.0.0-6KKiduowklk7hSxSW05Gxi
52.63 s
[really-safe-money-gen-source] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
52.63 s
[really-safe-money-gen-source] include really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53
52.63 s
[really-safe-money-gen-source] include vector-0.13.2.0-GDUCoiHhVuq2SKPTzzTr3a
52.63 s
[really-safe-money-gen-source] Linked component graph:
52.63 s
[really-safe-money-gen-source] unit really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53
52.63 s
[really-safe-money-gen-source] include QuickCheck-2.15.0.1-8fVC1qSJKj9H9pvMjJXUwU
52.63 s
[really-safe-money-gen-source] include base-4.20.2.0-64da
52.63 s
[really-safe-money-gen-source] include genvalidity-1.1.1.0-KJOcA1wEUno9vXRiVdno1L
52.63 s
[really-safe-money-gen-source] include genvalidity-containers-1.0.0.2-DXaOCEBh8iJ1c8u2LwVlK1
52.63 s
[really-safe-money-gen-source] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
52.63 s
[really-safe-money-gen-source] Money.Account.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.Account.Gen,Money.AccountOf.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.AccountOf.Gen,Money.Amount.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.Amount.Gen,Money.AmountOf.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.AmountOf.Gen,Money.ConversionRate.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.ConversionRate.Gen,Money.ConversionRateOf.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.ConversionRateOf.Gen,Money.Currency.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.Currency.Gen,Money.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.Gen,Money.MultiAccount.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.MultiAccount.Gen,Money.MultiAmount.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.MultiAmount.Gen,Money.QuantisationFactor.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Money.QuantisationFactor.Gen,Numeric.DecimalLiteral.Gen=really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53:Numeric.DecimalLiteral.Gen
52.63 s
[really-safe-money-gen-source] unit really-safe-money-gen-0.0.0.0-LP0fSqTOwvk9RMpsKSu0nN-really-safe-money-bench
52.63 s
[really-safe-money-gen-source] include QuickCheck-2.15.0.1-8fVC1qSJKj9H9pvMjJXUwU
52.63 s
[really-safe-money-gen-source] include base-4.20.2.0-64da
52.63 s
[really-safe-money-gen-source] include criterion-1.6.4.0-ExZW8LB8ON09pSIfu9sGRN
52.63 s
[really-safe-money-gen-source] include deepseq-1.5.0.0-9a2c
52.63 s
[really-safe-money-gen-source] include genvalidity-1.1.1.0-KJOcA1wEUno9vXRiVdno1L
52.63 s
[really-safe-money-gen-source] include genvalidity-criterion-1.1.0.0-9pHw4wnFNz9EtFzK0UU3g3
52.63 s
[really-safe-money-gen-source] include genvalidity-vector-1.0.0.0-6KKiduowklk7hSxSW05Gxi
52.63 s
[really-safe-money-gen-source] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
52.63 s
[really-safe-money-gen-source] include really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53
52.63 s
[really-safe-money-gen-source] include vector-0.13.2.0-GDUCoiHhVuq2SKPTzzTr3a
52.63 s
[really-safe-money-gen-source] Ready component graph:
52.63 s
[really-safe-money-gen-source] definite really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53
52.63 s
[really-safe-money-gen-source] depends QuickCheck-2.15.0.1-8fVC1qSJKj9H9pvMjJXUwU
52.63 s
[really-safe-money-gen-source] depends base-4.20.2.0-64da
52.63 s
[really-safe-money-gen-source] depends genvalidity-1.1.1.0-KJOcA1wEUno9vXRiVdno1L
52.63 s
[really-safe-money-gen-source] depends genvalidity-containers-1.0.0.2-DXaOCEBh8iJ1c8u2LwVlK1
52.63 s
[really-safe-money-gen-source] depends really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
52.63 s
[really-safe-money-gen-source] definite really-safe-money-gen-0.0.0.0-LP0fSqTOwvk9RMpsKSu0nN-really-safe-money-bench
52.63 s
[really-safe-money-gen-source] depends QuickCheck-2.15.0.1-8fVC1qSJKj9H9pvMjJXUwU
52.63 s
[really-safe-money-gen-source] depends base-4.20.2.0-64da
52.63 s
[really-safe-money-gen-source] depends criterion-1.6.4.0-ExZW8LB8ON09pSIfu9sGRN
52.63 s
[really-safe-money-gen-source] depends deepseq-1.5.0.0-9a2c
52.63 s
[really-safe-money-gen-source] depends genvalidity-1.1.1.0-KJOcA1wEUno9vXRiVdno1L
52.63 s
[really-safe-money-gen-source] depends genvalidity-criterion-1.1.0.0-9pHw4wnFNz9EtFzK0UU3g3
52.63 s
[really-safe-money-gen-source] depends genvalidity-vector-1.0.0.0-6KKiduowklk7hSxSW05Gxi
52.63 s
[really-safe-money-gen-source] depends really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
52.63 s
[really-safe-money-gen-source] depends really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53
52.63 s
[really-safe-money-gen-source] depends vector-0.13.2.0-GDUCoiHhVuq2SKPTzzTr3a
52.63 s
[really-safe-money-gen-source] Using Cabal-3.12.1.0 compiled by ghc-9.10
52.63 s
[really-safe-money-gen-source] Using compiler: ghc-9.10.3
52.63 s
[really-safe-money-gen-source] Using install prefix:
52.63 s
[really-safe-money-gen-source] /nix/store/w4nkbq86l33109ak3dwpv6bjsrj1y3n1-really-safe-money-gen-source-0.0.0.0
52.63 s
[really-safe-money-gen-source] Executables installed in:
52.63 s
[really-safe-money-gen-source] /nix/store/w4nkbq86l33109ak3dwpv6bjsrj1y3n1-really-safe-money-gen-source-0.0.0.0/bin
52.63 s
[really-safe-money-gen-source] Libraries installed in:
52.63 s
[really-safe-money-gen-source] /nix/store/w4nkbq86l33109ak3dwpv6bjsrj1y3n1-really-safe-money-gen-source-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-gen-0.0.0.0-6HAQXS408A94VVAcwfSL53
52.63 s
[really-safe-money-gen-source] Dynamic Libraries installed in:
52.63 s
[really-safe-money-gen-source] /nix/store/w4nkbq86l33109ak3dwpv6bjsrj1y3n1-really-safe-money-gen-source-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6
52.63 s
[really-safe-money-gen-source] Private executables installed in:
52.63 s
[really-safe-money-gen-source] /nix/store/w4nkbq86l33109ak3dwpv6bjsrj1y3n1-really-safe-money-gen-source-0.0.0.0/libexec/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-gen-0.0.0.0
52.63 s
[really-safe-money-gen-source] Data files installed in:
52.63 s
[really-safe-money-gen-source] /nix/store/w4nkbq86l33109ak3dwpv6bjsrj1y3n1-really-safe-money-gen-source-0.0.0.0/share/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-gen-0.0.0.0
52.63 s
[really-safe-money-gen-source] Documentation installed in: /share/doc/really-safe-money-gen-0.0.0.0
52.63 s
[really-safe-money-gen-source] Configuration files installed in:
52.63 s
[really-safe-money-gen-source] /nix/store/w4nkbq86l33109ak3dwpv6bjsrj1y3n1-really-safe-money-gen-source-0.0.0.0/etc
52.63 s
[really-safe-money-gen-source] No alex found
52.63 s
[really-safe-money-gen-source] Using ar found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/iz5lckcsg66r223si2gck7csk2hihj0m-binutils-wrapper-2.44/bin/ar
52.63 s
[really-safe-money-gen-source] No c2hs found
52.63 s
[really-safe-money-gen-source] No cpphs found
52.63 s
[really-safe-money-gen-source] No doctest found
52.63 s
[really-safe-money-gen-source] Using gcc version 14.3.0 given by user at:
52.63 s
[really-safe-money-gen-source] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/gcc
52.63 s
[really-safe-money-gen-source] Using ghc version 9.10.3 found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/ghc
52.63 s
[really-safe-money-gen-source] Using ghc-pkg version 9.10.3 found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/ghc-pkg-9.10.3
52.63 s
[really-safe-money-gen-source] No ghcjs found
52.63 s
[really-safe-money-gen-source] No ghcjs-pkg found
52.63 s
[really-safe-money-gen-source] No greencard found
52.63 s
[really-safe-money-gen-source] Using haddock version 2.31.1 found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/haddock-ghc-9.10.3
52.63 s
[really-safe-money-gen-source] No happy found
52.63 s
[really-safe-money-gen-source] Using haskell-suite found on system at: haskell-suite-dummy-location
52.63 s
[really-safe-money-gen-source] Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
52.63 s
[really-safe-money-gen-source] No hmake found
52.63 s
[really-safe-money-gen-source] Using hpc version 0.69 found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/hpc-ghc-9.10.3
52.63 s
[really-safe-money-gen-source] Using hsc2hs version 0.68.10 found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/hsc2hs-ghc-9.10.3
52.63 s
[really-safe-money-gen-source] Using hscolour version 1.25 found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/f755skyzf4jvfx3crwq9mmh3x4lsaz8i-hscolour-1.25/bin/HsColour
52.63 s
[really-safe-money-gen-source] No jhc found
52.63 s
[really-safe-money-gen-source] Using ld found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/ld
52.63 s
[really-safe-money-gen-source] No pkg-config found
52.63 s
[really-safe-money-gen-source] Using runghc version 9.10.3 found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/runghc-9.10.3
52.63 s
[really-safe-money-gen-source] Using strip version 2.44 found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/strip
52.63 s
[really-safe-money-gen-source] Using tar found on system at:
52.63 s
[really-safe-money-gen-source] /nix/store/xl6pd2spjajwcpq09fnmnjv5psqmlmma-gnutar-1.35/bin/tar
52.63 s
[really-safe-money-gen-source] No uhc found
52.69 s
[really-safe-money-autodocodec-source] Phase: buildPhase
52.70 s
[really-safe-money-autodocodec-source] Distribution quality errors:
52.70 s
[really-safe-money-autodocodec-source] [no-syn-desc] No 'synopsis' or 'description' field.
52.70 s
[really-safe-money-autodocodec-source] Distribution quality warnings:
52.70 s
[really-safe-money-autodocodec-source] [no-category] No 'category' field.
52.70 s
[really-safe-money-autodocodec-source] [no-maintainer] No 'maintainer' field.
52.70 s
[really-safe-money-autodocodec-source] [all-rights-reserved] The 'license' is AllRightsReserved. Is that really what
52.70 s
[really-safe-money-autodocodec-source] you want?
52.70 s
[really-safe-money-autodocodec-source] [missing-upper-bounds] On library, these packages miss upper bounds:
52.70 s
[really-safe-money-autodocodec-source] - autodocodec
52.70 s
[really-safe-money-autodocodec-source] - really-safe-money
52.70 s
[really-safe-money-autodocodec-source] Please add them. There is more information at https://pvp.haskell.org/
52.70 s
[really-safe-money-autodocodec-source] Note: the public hackage server would reject this package.
52.70 s
[really-safe-money-autodocodec-source] Building source dist for really-safe-money-autodocodec-0.0.0.0...
52.72 s
[really-safe-money-autodocodec-source] Source tarball created: dist/really-safe-money-autodocodec-0.0.0.0.tar.gz
52.72 s
[really-safe-money-autodocodec-source] Phase: haddockPhase
52.73 s
[really-safe-money-autodocodec-source] Phase: installPhase
52.73 s
[really-safe-money-autodocodec-source] Phase: fixupPhase
52.76 s
Progress: 2 of 6 built (1 building)
52.81 s
Building really-safe-money-autodocodec
53.00 s
[really-safe-money-gen-source] Phase: buildPhase
53.07 s
[really-safe-money-gen-source] Distribution quality errors:
53.07 s
[really-safe-money-gen-source] [no-syn-desc] No 'synopsis' or 'description' field.
53.07 s
[really-safe-money-gen-source] Distribution quality warnings:
53.07 s
[really-safe-money-gen-source] [no-category] No 'category' field.
53.07 s
[really-safe-money-gen-source] [no-maintainer] No 'maintainer' field.
53.07 s
[really-safe-money-gen-source] [all-rights-reserved] The 'license' is AllRightsReserved. Is that really what
53.07 s
[really-safe-money-gen-source] you want?
53.07 s
[really-safe-money-gen-source] [missing-upper-bounds] On library, these packages miss upper bounds:
53.07 s
[really-safe-money-gen-source] - QuickCheck
53.07 s
[really-safe-money-gen-source] - genvalidity
53.07 s
[really-safe-money-gen-source] - genvalidity-containers
53.07 s
[really-safe-money-gen-source] - really-safe-money
53.07 s
[really-safe-money-gen-source] Please add them. There is more information at https://pvp.haskell.org/
53.07 s
[really-safe-money-gen-source] Note: the public hackage server would reject this package.
53.07 s
[really-safe-money-gen-source] Building source dist for really-safe-money-gen-0.0.0.0...
53.07 s
[really-safe-money-gen-source] Source tarball created: dist/really-safe-money-gen-0.0.0.0.tar.gz
53.07 s
[really-safe-money-gen-source] Phase: haddockPhase
53.07 s
[really-safe-money-autodocodec] Phase: setupCompilerEnvironmentPhase
53.07 s
[really-safe-money-gen-source] Phase: installPhase
53.08 s
[really-safe-money-autodocodec] Build with /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3.
53.08 s
[really-safe-money-gen-source] Phase: fixupPhase
53.08 s
Progress: 3 of 6 built (1 building)
53.35 s
[really-safe-money-autodocodec] Phase: unpackPhase
53.35 s
[really-safe-money-autodocodec] unpacking source archive /nix/store/al7lg8kns188ppz1b3kz15ddxk77z5c0-really-safe-money-autodocodec-source-0.0.0.0/really-safe-money-autodocodec-0.0.0.0.tar.gz
53.36 s
[really-safe-money-autodocodec] source root is really-safe-money-autodocodec-0.0.0.0
53.37 s
[really-safe-money-autodocodec] setting SOURCE_DATE_EPOCH to timestamp 1778688644 of file "really-safe-money-autodocodec-0.0.0.0/test/Spec.hs"
53.37 s
[really-safe-money-autodocodec] warning: file "really-safe-money-autodocodec-0.0.0.0/test/Spec.hs" may be generated; SOURCE_DATE_EPOCH may be non-deterministic
53.37 s
[really-safe-money-autodocodec] Phase: patchPhase
53.38 s
[really-safe-money-autodocodec] Phase: compileBuildDriverPhase
53.39 s
[really-safe-money-autodocodec] setupCompileFlags: -package-db=/build/tmp.nl3kWenk0j/setup-package.conf.d -threaded
53.44 s
[really-safe-money-autodocodec] [1 of 2] Compiling Main ( Setup.hs, /build/tmp.nl3kWenk0j/Main.o )
53.48 s
[really-safe-money-autodocodec] [2 of 2] Linking Setup
54.88 s
[really-safe-money-autodocodec] Phase: updateAutotoolsGnuConfigScriptsPhase
54.90 s
[really-safe-money-autodocodec] Phase: configurePhase
54.91 s
[really-safe-money-autodocodec] configureFlags: --verbose --prefix=/nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --with-gcc=gcc --package-db=/build/tmp.nl3kWenk0j/package.conf.d --ghc-option=-j16 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --disable-static --disable-executable-dynamic --disable-tests --enable-benchmarks --enable-library-vanilla --disable-library-for-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping --ghc-options=-O2 --ghc-options=-Wall --ghc-options=-Wincomplete-uni-patterns --ghc-options=-Wincomplete-record-updates --ghc-options=-Wpartial-fields --ghc-options=-Widentities --ghc-options=-Wredundant-constraints --ghc-options=-Wcpp-undef --ghc-options=-Werror --ghc-options=-fplugin-opt=Test.Syd.Mutation.Plugin:--debug --disable-optimization --ghc-option=-j1 --ghc-option=+RTS --ghc-option=-A32M --ghc-option=-M16g --ghc-option=-RTS --extra-lib-dirs=/nix/store/ffyzkisqs4vc4mg28bwwlyqjf8i9ph6b-ncurses-6.5/lib --extra-lib-dirs=/nix/store/n28qgdj8c1q41kf7n4y1jxa6ckp85m3c-libffi-3.5.2/lib --extra-lib-dirs=/nix/store/1b6h99dw7bk4wbn77kbalih42zbc67m1-elfutils-0.194/lib --extra-lib-dirs=/nix/store/hi0ar880110k6jsmmili7dh1gq3cg2a9-gmp-with-cxx-6.3.0/lib --extra-lib-dirs=/nix/store/g09cflpnp4g80q56sj9dng1qzv4v4ybc-numactl-2.0.18/lib --extra-lib-dirs=/nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/lib
54.92 s
[really-safe-money-autodocodec] Using Parsec parser
54.92 s
[really-safe-money-autodocodec] Configuring really-safe-money-autodocodec-0.0.0.0...
56.41 s
[really-safe-money-autodocodec] Dependency autodocodec: using autodocodec-0.5.0.0
56.41 s
[really-safe-money-autodocodec] Dependency base >=4.7 && <5: using base-4.20.2.0
56.41 s
[really-safe-money-autodocodec] Dependency really-safe-money: using really-safe-money-0.0.0.0
56.41 s
[really-safe-money-autodocodec] Source component graph: component lib
56.41 s
[really-safe-money-autodocodec] Configured component graph:
56.41 s
[really-safe-money-autodocodec] component really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk
56.41 s
[really-safe-money-autodocodec] include autodocodec-0.5.0.0-1mMvp4WI6JDKv9IH8Klk8Y
56.41 s
[really-safe-money-autodocodec] include base-4.20.2.0-64da
56.41 s
[really-safe-money-autodocodec] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
56.41 s
[really-safe-money-autodocodec] Linked component graph:
56.41 s
[really-safe-money-autodocodec] unit really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk
56.41 s
[really-safe-money-autodocodec] include autodocodec-0.5.0.0-1mMvp4WI6JDKv9IH8Klk8Y
56.41 s
[really-safe-money-autodocodec] include base-4.20.2.0-64da
56.41 s
[really-safe-money-autodocodec] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
56.41 s
[really-safe-money-autodocodec] Money.Account.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Money.Account.Codec,Money.AccountOf.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Money.AccountOf.Codec,Money.Amount.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Money.Amount.Codec,Money.AmountOf.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Money.AmountOf.Codec,Money.QuantisationFactor.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Money.QuantisationFactor.Codec,Numeric.DecimalLiteral.Codec=really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk:Numeric.DecimalLiteral.Codec
56.41 s
[really-safe-money-autodocodec] Ready component graph:
56.41 s
[really-safe-money-autodocodec] definite really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk
56.41 s
[really-safe-money-autodocodec] depends autodocodec-0.5.0.0-1mMvp4WI6JDKv9IH8Klk8Y
56.41 s
[really-safe-money-autodocodec] depends base-4.20.2.0-64da
56.41 s
[really-safe-money-autodocodec] depends really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
56.41 s
[really-safe-money-autodocodec] Using Cabal-3.12.1.0 compiled by ghc-9.10
56.41 s
[really-safe-money-autodocodec] Using compiler: ghc-9.10.3
56.41 s
[really-safe-money-autodocodec] Using install prefix:
56.41 s
[really-safe-money-autodocodec] /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0
56.41 s
[really-safe-money-autodocodec] Executables installed in:
56.41 s
[really-safe-money-autodocodec] /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0/bin
56.41 s
[really-safe-money-autodocodec] Libraries installed in:
56.41 s
[really-safe-money-autodocodec] /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk
56.41 s
[really-safe-money-autodocodec] Dynamic Libraries installed in:
56.41 s
[really-safe-money-autodocodec] /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6
56.41 s
[really-safe-money-autodocodec] Private executables installed in:
56.41 s
[really-safe-money-autodocodec] /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0/libexec/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-autodocodec-0.0.0.0
56.41 s
[really-safe-money-autodocodec] Data files installed in:
56.41 s
[really-safe-money-autodocodec] /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0/share/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-autodocodec-0.0.0.0
56.41 s
[really-safe-money-autodocodec] Documentation installed in:
56.41 s
[really-safe-money-autodocodec] /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0/share/doc/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-autodocodec-0.0.0.0
56.41 s
[really-safe-money-autodocodec] Configuration files installed in:
56.41 s
[really-safe-money-autodocodec] /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0/etc
56.41 s
[really-safe-money-autodocodec] No alex found
56.41 s
[really-safe-money-autodocodec] Using ar found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/iz5lckcsg66r223si2gck7csk2hihj0m-binutils-wrapper-2.44/bin/ar
56.41 s
[really-safe-money-autodocodec] No c2hs found
56.41 s
[really-safe-money-autodocodec] No cpphs found
56.41 s
[really-safe-money-autodocodec] No doctest found
56.41 s
[really-safe-money-autodocodec] Using gcc version 14.3.0 given by user at:
56.41 s
[really-safe-money-autodocodec] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/gcc
56.41 s
[really-safe-money-autodocodec] Using ghc version 9.10.3 found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/ghc
56.41 s
[really-safe-money-autodocodec] Using ghc-pkg version 9.10.3 found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/ghc-pkg-9.10.3
56.41 s
[really-safe-money-autodocodec] No ghcjs found
56.41 s
[really-safe-money-autodocodec] No ghcjs-pkg found
56.41 s
[really-safe-money-autodocodec] No greencard found
56.41 s
[really-safe-money-autodocodec] Using haddock version 2.31.1 found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/haddock-ghc-9.10.3
56.41 s
[really-safe-money-autodocodec] No happy found
56.41 s
[really-safe-money-autodocodec] Using haskell-suite found on system at: haskell-suite-dummy-location
56.41 s
[really-safe-money-autodocodec] Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
56.41 s
[really-safe-money-autodocodec] No hmake found
56.41 s
[really-safe-money-autodocodec] Using hpc version 0.69 found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/hpc-ghc-9.10.3
56.41 s
[really-safe-money-autodocodec] Using hsc2hs version 0.68.10 found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/hsc2hs-ghc-9.10.3
56.41 s
[really-safe-money-autodocodec] Using hscolour version 1.25 found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/f755skyzf4jvfx3crwq9mmh3x4lsaz8i-hscolour-1.25/bin/HsColour
56.41 s
[really-safe-money-autodocodec] No jhc found
56.41 s
[really-safe-money-autodocodec] Using ld found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/ld
56.41 s
[really-safe-money-autodocodec] No pkg-config found
56.41 s
[really-safe-money-autodocodec] Using runghc version 9.10.3 found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/runghc-9.10.3
56.41 s
[really-safe-money-autodocodec] Using strip version 2.44 found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/strip
56.41 s
[really-safe-money-autodocodec] Using tar found on system at:
56.41 s
[really-safe-money-autodocodec] /nix/store/xl6pd2spjajwcpq09fnmnjv5psqmlmma-gnutar-1.35/bin/tar
56.41 s
[really-safe-money-autodocodec] No uhc found
56.78 s
[really-safe-money-autodocodec] Phase: buildPhase
56.78 s
[really-safe-money-autodocodec] mutation-nix: setting MUTATION_MANIFEST_DIR=/nix/store/a266611cfdhdmlk5x3ax9s6vmpvn4c18-really-safe-money-autodocodec-0.0.0.0-manifest
56.90 s
[really-safe-money-autodocodec] Preprocessing library for really-safe-money-autodocodec-0.0.0.0...
56.90 s
[really-safe-money-autodocodec] Building library for really-safe-money-autodocodec-0.0.0.0...
57.14 s
[really-safe-money-autodocodec] [1 of 7] Compiling Money.Account.Codec ( src/Money/Account/Codec.hs, dist/build/Money/Account/Codec.o, dist/build/Money/Account/Codec.dyn_o )
57.28 s
[really-safe-money-autodocodec] mutation: instrumenting Money.Account.Codec
57.33 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Account/Codec.hs:79:11-24
57.33 s
[really-safe-money-autodocodec] @@ -76,6 +76,6 @@
57.33 s
[really-safe-money-autodocodec] <?> "Account"
57.33 s
[really-safe-money-autodocodec] where
57.33 s
[really-safe-money-autodocodec] f :: Integer -> Either String Account
57.33 s
[really-safe-money-autodocodec] - f i = case Account.fromMinimalQuantisations i of
57.33 s
[really-safe-money-autodocodec] - Nothing -> Left $ "Number did not fit into an account value: " <> show i
57.33 s
[really-safe-money-autodocodec] - Just a -> Right a
57.33 s
[really-safe-money-autodocodec] + f i = case Account.fromMinimalQuantisations i of
57.33 s
[really-safe-money-autodocodec] + Nothing -> Left $ "Number did not fit into an account value: " <> show i
57.33 s
[really-safe-money-autodocodec] + Just a -> Right a
57.33 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Account/Codec.hs:79:11-24
57.33 s
[really-safe-money-autodocodec] @@ -76,6 +76,6 @@
57.33 s
[really-safe-money-autodocodec] <?> "Account"
57.33 s
[really-safe-money-autodocodec] where
57.33 s
[really-safe-money-autodocodec] f :: Integer -> Either String Account
57.33 s
[really-safe-money-autodocodec] - f i = case Account.fromMinimalQuantisations i of
57.33 s
[really-safe-money-autodocodec] - Nothing -> Left $ "Number did not fit into an account value: " <> show i
57.33 s
[really-safe-money-autodocodec] - Just a -> Right a
57.33 s
[really-safe-money-autodocodec] + f i = case Account.fromMinimalQuantisations i of
57.33 s
[really-safe-money-autodocodec] + Nothing -> Left $ "Number did not fit into an account value: " <> show i
57.33 s
[really-safe-money-autodocodec] + Just a -> Right a
57.33 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Account/Codec.hs:51:33-76
57.33 s
[really-safe-money-autodocodec] @@ -48,7 +48,7 @@
57.33 s
[really-safe-money-autodocodec] where
57.33 s
[really-safe-money-autodocodec] f :: String -> Either String Account
57.33 s
[really-safe-money-autodocodec] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
57.33 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
57.33 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords []
57.33 s
[really-safe-money-autodocodec] Just a -> Right a
57.33 s
[really-safe-money-autodocodec] g :: Account -> String
57.33 s
[really-safe-money-autodocodec] g = show . Account.toMinimalQuantisations
57.33 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Account/Codec.hs:51:33-76
57.33 s
[really-safe-money-autodocodec] @@ -48,7 +48,7 @@
57.33 s
[really-safe-money-autodocodec] where
57.33 s
[really-safe-money-autodocodec] f :: String -> Either String Account
57.33 s
[really-safe-money-autodocodec] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
57.33 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
57.33 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Account:", s]
57.33 s
[really-safe-money-autodocodec] Just a -> Right a
57.33 s
[really-safe-money-autodocodec] g :: Account -> String
57.33 s
[really-safe-money-autodocodec] g = show . Account.toMinimalQuantisations
57.33 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Account/Codec.hs:50:11-24
57.33 s
[really-safe-money-autodocodec] @@ -47,9 +47,9 @@
57.33 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f g stringCodec <?> "Account"
57.33 s
[really-safe-money-autodocodec] where
57.33 s
[really-safe-money-autodocodec] f :: String -> Either String Account
57.33 s
[really-safe-money-autodocodec] - f s = case readMaybe s >>= Account.fromMinimalQuantisations of
57.33 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
57.33 s
[really-safe-money-autodocodec] - Just a -> Right a
57.33 s
[really-safe-money-autodocodec] + f s = case readMaybe s >>= Account.fromMinimalQuantisations of
57.33 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Account:", s]
57.33 s
[really-safe-money-autodocodec] + Just a -> Right a
57.33 s
[really-safe-money-autodocodec] g :: Account -> String
57.33 s
[really-safe-money-autodocodec] g = show . Account.toMinimalQuantisations
57.33 s
[really-safe-money-autodocodec]
57.33 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Account/Codec.hs:50:11-24
57.33 s
[really-safe-money-autodocodec] @@ -47,9 +47,9 @@
57.34 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f g stringCodec <?> "Account"
57.34 s
[really-safe-money-autodocodec] where
57.34 s
[really-safe-money-autodocodec] f :: String -> Either String Account
57.34 s
[really-safe-money-autodocodec] - f s = case readMaybe s >>= Account.fromMinimalQuantisations of
57.34 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
57.34 s
[really-safe-money-autodocodec] - Just a -> Right a
57.34 s
[really-safe-money-autodocodec] + f s = case readMaybe s >>= Account.fromMinimalQuantisations of
57.34 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Account:", s]
57.34 s
[really-safe-money-autodocodec] + Just a -> Right a
57.34 s
[really-safe-money-autodocodec] g :: Account -> String
57.34 s
[really-safe-money-autodocodec] g = show . Account.toMinimalQuantisations
57.34 s
[really-safe-money-autodocodec]
57.34 s
[really-safe-money-autodocodec] added 6 mutations
57.87 s
[really-safe-money-autodocodec] [2 of 7] Compiling Money.AccountOf.Codec ( src/Money/AccountOf/Codec.hs, dist/build/Money/AccountOf/Codec.o, dist/build/Money/AccountOf/Codec.dyn_o )
57.87 s
[really-safe-money-autodocodec] mutation: instrumenting Money.AccountOf.Codec
57.87 s
[really-safe-money-autodocodec] added 0 mutations
57.90 s
[really-safe-money-autodocodec] [3 of 7] Compiling Money.Amount.Codec ( src/Money/Amount/Codec.hs, dist/build/Money/Amount/Codec.o, dist/build/Money/Amount/Codec.dyn_o )
57.91 s
[really-safe-money-autodocodec] mutation: instrumenting Money.Amount.Codec
57.91 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:47:33-75
57.91 s
[really-safe-money-autodocodec] @@ -44,7 +44,7 @@
57.91 s
[really-safe-money-autodocodec] where
57.91 s
[really-safe-money-autodocodec] f :: String -> Either String Amount
57.91 s
[really-safe-money-autodocodec] f s = case readMaybe s of
57.91 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.91 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords []
57.91 s
[really-safe-money-autodocodec] Just i ->
57.91 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
57.91 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.91 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:47:33-75
57.91 s
[really-safe-money-autodocodec] @@ -44,7 +44,7 @@
57.91 s
[really-safe-money-autodocodec] where
57.91 s
[really-safe-money-autodocodec] f :: String -> Either String Amount
57.91 s
[really-safe-money-autodocodec] f s = case readMaybe s of
57.91 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.91 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.91 s
[really-safe-money-autodocodec] Just i ->
57.91 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
57.91 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.91 s
[really-safe-money-autodocodec] added mutation ConstBool at src/Money/Amount/Codec.hs:49:12-59
57.91 s
[really-safe-money-autodocodec] @@ -46,7 +46,7 @@
57.91 s
[really-safe-money-autodocodec] f s = case readMaybe s of
57.91 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.91 s
[really-safe-money-autodocodec] Just i ->
57.91 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
57.91 s
[really-safe-money-autodocodec] + if True
57.91 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.91 s
[really-safe-money-autodocodec] else
57.91 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
57.91 s
[really-safe-money-autodocodec] added mutation ConstBool at src/Money/Amount/Codec.hs:49:12-59
57.91 s
[really-safe-money-autodocodec] @@ -46,7 +46,7 @@
57.91 s
[really-safe-money-autodocodec] f s = case readMaybe s of
57.91 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.91 s
[really-safe-money-autodocodec] Just i ->
57.91 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
57.91 s
[really-safe-money-autodocodec] + if False
57.91 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.91 s
[really-safe-money-autodocodec] else
57.91 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
57.91 s
[really-safe-money-autodocodec] added mutation Negate at src/Money/Amount/Codec.hs:49:12-59
57.91 s
[really-safe-money-autodocodec] @@ -46,7 +46,7 @@
57.91 s
[really-safe-money-autodocodec] f s = case readMaybe s of
57.91 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.91 s
[really-safe-money-autodocodec] Just i ->
57.91 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
57.91 s
[really-safe-money-autodocodec] + if not ((i :: Integer) < toInteger (minBound :: Word64))
57.91 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.91 s
[really-safe-money-autodocodec] else
57.91 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
57.91 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:50:31-84
57.91 s
[really-safe-money-autodocodec] @@ -47,7 +47,7 @@
57.91 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.91 s
[really-safe-money-autodocodec] Just i ->
57.91 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
57.91 s
[really-safe-money-autodocodec] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.91 s
[really-safe-money-autodocodec] + then Left $ unwords []
57.91 s
[really-safe-money-autodocodec] else
57.91 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
57.91 s
[really-safe-money-autodocodec] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.91 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:50:31-84
57.91 s
[really-safe-money-autodocodec] @@ -47,7 +47,7 @@
57.91 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.91 s
[really-safe-money-autodocodec] Just i ->
57.91 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
57.91 s
[really-safe-money-autodocodec] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.91 s
[really-safe-money-autodocodec] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] else
57.92 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] added mutation ConstBool at src/Money/Amount/Codec.hs:52:16-63
57.92 s
[really-safe-money-autodocodec] @@ -49,7 +49,7 @@
57.92 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
57.92 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] else
57.92 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] + if True
57.92 s
[really-safe-money-autodocodec] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] g :: Amount -> String
57.92 s
[really-safe-money-autodocodec] added mutation ConstBool at src/Money/Amount/Codec.hs:52:16-63
57.92 s
[really-safe-money-autodocodec] @@ -49,7 +49,7 @@
57.92 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
57.92 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] else
57.92 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] + if False
57.92 s
[really-safe-money-autodocodec] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] g :: Amount -> String
57.92 s
[really-safe-money-autodocodec] added mutation Negate at src/Money/Amount/Codec.hs:52:16-63
57.92 s
[really-safe-money-autodocodec] @@ -49,7 +49,7 @@
57.92 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
57.92 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] else
57.92 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] + if not ((i :: Integer) > toInteger (maxBound :: Word64))
57.92 s
[really-safe-money-autodocodec] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] g :: Amount -> String
57.92 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:53:35-90
57.92 s
[really-safe-money-autodocodec] @@ -50,7 +50,7 @@
57.92 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] else
57.92 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] + then Left $ unwords []
57.92 s
[really-safe-money-autodocodec] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] g :: Amount -> String
57.92 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
57.92 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:53:35-90
57.92 s
[really-safe-money-autodocodec] @@ -50,7 +50,7 @@
57.92 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] else
57.92 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] g :: Amount -> String
57.92 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
57.92 s
[really-safe-money-autodocodec] added mutation CondFlip at src/Money/Amount/Codec.hs:52:13-86
57.92 s
[really-safe-money-autodocodec] @@ -49,9 +49,9 @@
57.92 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
57.92 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] else
57.92 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] + if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] g :: Amount -> String
57.92 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
57.92 s
[really-safe-money-autodocodec]
57.92 s
[really-safe-money-autodocodec] added mutation CondFlip at src/Money/Amount/Codec.hs:49:9-86
57.92 s
[really-safe-money-autodocodec] @@ -46,12 +46,12 @@
57.92 s
[really-safe-money-autodocodec] f s = case readMaybe s of
57.92 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.92 s
[really-safe-money-autodocodec] Just i ->
57.92 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
57.92 s
[really-safe-money-autodocodec] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] - else
57.92 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] + if (i :: Integer) < toInteger (minBound :: Word64)
57.92 s
[really-safe-money-autodocodec] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] + else
57.92 s
[really-safe-money-autodocodec] + if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] g :: Amount -> String
57.92 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
57.92 s
[really-safe-money-autodocodec]
57.92 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Amount/Codec.hs:46:11-86
57.92 s
[really-safe-money-autodocodec] @@ -43,15 +43,15 @@
57.92 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f g stringCodec <?> "Amount"
57.92 s
[really-safe-money-autodocodec] where
57.92 s
[really-safe-money-autodocodec] f :: String -> Either String Amount
57.92 s
[really-safe-money-autodocodec] - f s = case readMaybe s of
57.92 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.92 s
[really-safe-money-autodocodec] - Just i ->
57.92 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
57.92 s
[really-safe-money-autodocodec] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] - else
57.92 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] + f s = case readMaybe s of
57.92 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.92 s
[really-safe-money-autodocodec] + Just i ->
57.92 s
[really-safe-money-autodocodec] + if (i :: Integer) < toInteger (minBound :: Word64)
57.92 s
[really-safe-money-autodocodec] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] + else
57.92 s
[really-safe-money-autodocodec] + if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] g :: Amount -> String
57.92 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
57.92 s
[really-safe-money-autodocodec]
57.92 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Amount/Codec.hs:46:11-86
57.92 s
[really-safe-money-autodocodec] @@ -43,15 +43,15 @@
57.92 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f g stringCodec <?> "Amount"
57.92 s
[really-safe-money-autodocodec] where
57.92 s
[really-safe-money-autodocodec] f :: String -> Either String Amount
57.92 s
[really-safe-money-autodocodec] - f s = case readMaybe s of
57.92 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.92 s
[really-safe-money-autodocodec] - Just i ->
57.92 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
57.92 s
[really-safe-money-autodocodec] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.92 s
[really-safe-money-autodocodec] - else
57.92 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
57.92 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.92 s
[really-safe-money-autodocodec] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.92 s
[really-safe-money-autodocodec] + f s = case readMaybe s of
57.92 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
57.92 s
[really-safe-money-autodocodec] + Just i ->
57.92 s
[really-safe-money-autodocodec] + if (i :: Integer) < toInteger (minBound :: Word64)
57.92 s
[really-safe-money-autodocodec] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
57.93 s
[really-safe-money-autodocodec] + else
57.93 s
[really-safe-money-autodocodec] + if (i :: Integer) > toInteger (maxBound :: Word64)
57.93 s
[really-safe-money-autodocodec] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
57.93 s
[really-safe-money-autodocodec] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
57.93 s
[really-safe-money-autodocodec] g :: Amount -> String
57.93 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
57.93 s
[really-safe-money-autodocodec]
57.93 s
[really-safe-money-autodocodec] added 16 mutations
58.08 s
[really-safe-money-autodocodec] [4 of 7] Compiling Money.AmountOf.Codec ( src/Money/AmountOf/Codec.hs, dist/build/Money/AmountOf/Codec.o, dist/build/Money/AmountOf/Codec.dyn_o )
58.16 s
[really-safe-money-autodocodec] mutation: instrumenting Money.AmountOf.Codec
58.16 s
[really-safe-money-autodocodec] added 0 mutations
58.16 s
[really-safe-money-autodocodec] [5 of 7] Compiling Money.QuantisationFactor.Codec ( src/Money/QuantisationFactor/Codec.hs, dist/build/Money/QuantisationFactor/Codec.o, dist/build/Money/QuantisationFactor/Codec.dyn_o )
58.16 s
[really-safe-money-autodocodec] mutation: instrumenting Money.QuantisationFactor.Codec
58.16 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/QuantisationFactor/Codec.hs:41:11-26
58.16 s
[really-safe-money-autodocodec] @@ -38,6 +38,6 @@
58.16 s
[really-safe-money-autodocodec] codec
58.16 s
[really-safe-money-autodocodec] <?> "QuantisationFactor"
58.16 s
[really-safe-money-autodocodec] where
58.16 s
[really-safe-money-autodocodec] - f w = case QuantisationFactor.fromWord32 w of
58.16 s
[really-safe-money-autodocodec] - Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
58.16 s
[really-safe-money-autodocodec] - Just qf -> Right qf
58.16 s
[really-safe-money-autodocodec] + f w = case QuantisationFactor.fromWord32 w of
58.16 s
[really-safe-money-autodocodec] + Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
58.16 s
[really-safe-money-autodocodec] + Just qf -> Right qf
58.16 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/QuantisationFactor/Codec.hs:41:11-26
58.16 s
[really-safe-money-autodocodec] @@ -38,6 +38,6 @@
58.16 s
[really-safe-money-autodocodec] codec
58.16 s
[really-safe-money-autodocodec] <?> "QuantisationFactor"
58.16 s
[really-safe-money-autodocodec] where
58.16 s
[really-safe-money-autodocodec] - f w = case QuantisationFactor.fromWord32 w of
58.16 s
[really-safe-money-autodocodec] - Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
58.16 s
[really-safe-money-autodocodec] - Just qf -> Right qf
58.16 s
[really-safe-money-autodocodec] + f w = case QuantisationFactor.fromWord32 w of
58.16 s
[really-safe-money-autodocodec] + Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
58.16 s
[really-safe-money-autodocodec] + Just qf -> Right qf
58.16 s
[really-safe-money-autodocodec] added 2 mutations
58.19 s
[really-safe-money-autodocodec] [6 of 7] Compiling Numeric.DecimalLiteral.Codec ( src/Numeric/DecimalLiteral/Codec.hs, dist/build/Numeric/DecimalLiteral/Codec.o, dist/build/Numeric/DecimalLiteral/Codec.dyn_o )
58.20 s
[really-safe-money-autodocodec] mutation: instrumenting Numeric.DecimalLiteral.Codec
58.20 s
[really-safe-money-autodocodec] added mutation ListLit at src/Numeric/DecimalLiteral/Codec.hs:40:33-82
58.20 s
[really-safe-money-autodocodec] @@ -37,5 +37,5 @@
58.20 s
[really-safe-money-autodocodec] where
58.20 s
[really-safe-money-autodocodec] f :: String -> Either String DecimalLiteral
58.20 s
[really-safe-money-autodocodec] f s = case DecimalLiteral.fromString s of
58.20 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
58.20 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords []
58.20 s
[really-safe-money-autodocodec] Just a -> Right a
58.20 s
[really-safe-money-autodocodec] added mutation ListLit at src/Numeric/DecimalLiteral/Codec.hs:40:33-82
58.20 s
[really-safe-money-autodocodec] @@ -37,5 +37,5 @@
58.20 s
[really-safe-money-autodocodec] where
58.20 s
[really-safe-money-autodocodec] f :: String -> Either String DecimalLiteral
58.20 s
[really-safe-money-autodocodec] f s = case DecimalLiteral.fromString s of
58.20 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
58.20 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
58.20 s
[really-safe-money-autodocodec] Just a -> Right a
58.20 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Numeric/DecimalLiteral/Codec.hs:39:11-24
58.20 s
[really-safe-money-autodocodec] @@ -36,6 +36,6 @@
58.20 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f DecimalLiteral.toString stringCodec <?> "DecimalLiteral"
58.20 s
[really-safe-money-autodocodec] where
58.20 s
[really-safe-money-autodocodec] f :: String -> Either String DecimalLiteral
58.20 s
[really-safe-money-autodocodec] - f s = case DecimalLiteral.fromString s of
58.20 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
58.20 s
[really-safe-money-autodocodec] - Just a -> Right a
58.20 s
[really-safe-money-autodocodec] + f s = case DecimalLiteral.fromString s of
58.20 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
58.20 s
[really-safe-money-autodocodec] + Just a -> Right a
58.20 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Numeric/DecimalLiteral/Codec.hs:39:11-24
58.20 s
[really-safe-money-autodocodec] @@ -36,6 +36,6 @@
58.20 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f DecimalLiteral.toString stringCodec <?> "DecimalLiteral"
58.20 s
[really-safe-money-autodocodec] where
58.20 s
[really-safe-money-autodocodec] f :: String -> Either String DecimalLiteral
58.20 s
[really-safe-money-autodocodec] - f s = case DecimalLiteral.fromString s of
58.20 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
58.20 s
[really-safe-money-autodocodec] - Just a -> Right a
58.20 s
[really-safe-money-autodocodec] + f s = case DecimalLiteral.fromString s of
58.20 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
58.20 s
[really-safe-money-autodocodec] + Just a -> Right a
58.20 s
[really-safe-money-autodocodec] added 4 mutations
58.28 s
[really-safe-money-autodocodec] [7 of 7] Compiling Paths_really_safe_money_autodocodec ( dist/build/autogen/Paths_really_safe_money_autodocodec.hs, dist/build/Paths_really_safe_money_autodocodec.o, dist/build/Paths_really_safe_money_autodocodec.dyn_o )
58.60 s
[really-safe-money-autodocodec] [1 of 7] Compiling Money.Account.Codec ( src/Money/Account/Codec.hs, dist/build/Money/Account/Codec.p_o )
58.63 s
[really-safe-money-autodocodec] mutation: instrumenting Money.Account.Codec
58.69 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Account/Codec.hs:79:11-24
58.69 s
[really-safe-money-autodocodec] @@ -76,6 +76,6 @@
58.69 s
[really-safe-money-autodocodec] <?> "Account"
58.69 s
[really-safe-money-autodocodec] where
58.69 s
[really-safe-money-autodocodec] f :: Integer -> Either String Account
58.69 s
[really-safe-money-autodocodec] - f i = case Account.fromMinimalQuantisations i of
58.69 s
[really-safe-money-autodocodec] - Nothing -> Left $ "Number did not fit into an account value: " <> show i
58.69 s
[really-safe-money-autodocodec] - Just a -> Right a
58.69 s
[really-safe-money-autodocodec] + f i = case Account.fromMinimalQuantisations i of
58.69 s
[really-safe-money-autodocodec] + Nothing -> Left $ "Number did not fit into an account value: " <> show i
58.69 s
[really-safe-money-autodocodec] + Just a -> Right a
58.69 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Account/Codec.hs:79:11-24
58.69 s
[really-safe-money-autodocodec] @@ -76,6 +76,6 @@
58.69 s
[really-safe-money-autodocodec] <?> "Account"
58.69 s
[really-safe-money-autodocodec] where
58.69 s
[really-safe-money-autodocodec] f :: Integer -> Either String Account
58.69 s
[really-safe-money-autodocodec] - f i = case Account.fromMinimalQuantisations i of
58.69 s
[really-safe-money-autodocodec] - Nothing -> Left $ "Number did not fit into an account value: " <> show i
58.69 s
[really-safe-money-autodocodec] - Just a -> Right a
58.69 s
[really-safe-money-autodocodec] + f i = case Account.fromMinimalQuantisations i of
58.69 s
[really-safe-money-autodocodec] + Nothing -> Left $ "Number did not fit into an account value: " <> show i
58.69 s
[really-safe-money-autodocodec] + Just a -> Right a
58.69 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Account/Codec.hs:51:33-76
58.69 s
[really-safe-money-autodocodec] @@ -48,7 +48,7 @@
58.69 s
[really-safe-money-autodocodec] where
58.69 s
[really-safe-money-autodocodec] f :: String -> Either String Account
58.69 s
[really-safe-money-autodocodec] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
58.69 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
58.69 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords []
58.69 s
[really-safe-money-autodocodec] Just a -> Right a
58.69 s
[really-safe-money-autodocodec] g :: Account -> String
58.69 s
[really-safe-money-autodocodec] g = show . Account.toMinimalQuantisations
58.69 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Account/Codec.hs:51:33-76
58.69 s
[really-safe-money-autodocodec] @@ -48,7 +48,7 @@
58.70 s
[really-safe-money-autodocodec] where
58.70 s
[really-safe-money-autodocodec] f :: String -> Either String Account
58.70 s
[really-safe-money-autodocodec] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
58.70 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
58.70 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Account:", s]
58.70 s
[really-safe-money-autodocodec] Just a -> Right a
58.70 s
[really-safe-money-autodocodec] g :: Account -> String
58.70 s
[really-safe-money-autodocodec] g = show . Account.toMinimalQuantisations
58.70 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Account/Codec.hs:50:11-24
58.70 s
[really-safe-money-autodocodec] @@ -47,9 +47,9 @@
58.70 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f g stringCodec <?> "Account"
58.70 s
[really-safe-money-autodocodec] where
58.70 s
[really-safe-money-autodocodec] f :: String -> Either String Account
58.70 s
[really-safe-money-autodocodec] - f s = case readMaybe s >>= Account.fromMinimalQuantisations of
58.70 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
58.70 s
[really-safe-money-autodocodec] - Just a -> Right a
58.70 s
[really-safe-money-autodocodec] + f s = case readMaybe s >>= Account.fromMinimalQuantisations of
58.70 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Account:", s]
58.70 s
[really-safe-money-autodocodec] + Just a -> Right a
58.70 s
[really-safe-money-autodocodec] g :: Account -> String
58.70 s
[really-safe-money-autodocodec] g = show . Account.toMinimalQuantisations
58.70 s
[really-safe-money-autodocodec]
58.70 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Account/Codec.hs:50:11-24
58.70 s
[really-safe-money-autodocodec] @@ -47,9 +47,9 @@
58.70 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f g stringCodec <?> "Account"
58.70 s
[really-safe-money-autodocodec] where
58.70 s
[really-safe-money-autodocodec] f :: String -> Either String Account
58.70 s
[really-safe-money-autodocodec] - f s = case readMaybe s >>= Account.fromMinimalQuantisations of
58.70 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
58.70 s
[really-safe-money-autodocodec] - Just a -> Right a
58.70 s
[really-safe-money-autodocodec] + f s = case readMaybe s >>= Account.fromMinimalQuantisations of
58.70 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Account:", s]
58.70 s
[really-safe-money-autodocodec] + Just a -> Right a
58.70 s
[really-safe-money-autodocodec] g :: Account -> String
58.70 s
[really-safe-money-autodocodec] g = show . Account.toMinimalQuantisations
58.70 s
[really-safe-money-autodocodec]
58.70 s
[really-safe-money-autodocodec] added 6 mutations
59.34 s
[really-safe-money-autodocodec] [2 of 7] Compiling Money.AccountOf.Codec ( src/Money/AccountOf/Codec.hs, dist/build/Money/AccountOf/Codec.p_o )
59.34 s
[really-safe-money-autodocodec] mutation: instrumenting Money.AccountOf.Codec
59.34 s
[really-safe-money-autodocodec] added 0 mutations
59.47 s
[really-safe-money-autodocodec] [3 of 7] Compiling Money.Amount.Codec ( src/Money/Amount/Codec.hs, dist/build/Money/Amount/Codec.p_o )
59.48 s
[really-safe-money-autodocodec] mutation: instrumenting Money.Amount.Codec
59.48 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:47:33-75
59.48 s
[really-safe-money-autodocodec] @@ -44,7 +44,7 @@
59.48 s
[really-safe-money-autodocodec] where
59.48 s
[really-safe-money-autodocodec] f :: String -> Either String Amount
59.48 s
[really-safe-money-autodocodec] f s = case readMaybe s of
59.48 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords []
59.48 s
[really-safe-money-autodocodec] Just i ->
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:47:33-75
59.48 s
[really-safe-money-autodocodec] @@ -44,7 +44,7 @@
59.48 s
[really-safe-money-autodocodec] where
59.48 s
[really-safe-money-autodocodec] f :: String -> Either String Amount
59.48 s
[really-safe-money-autodocodec] f s = case readMaybe s of
59.48 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] Just i ->
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] added mutation ConstBool at src/Money/Amount/Codec.hs:49:12-59
59.48 s
[really-safe-money-autodocodec] @@ -46,7 +46,7 @@
59.48 s
[really-safe-money-autodocodec] f s = case readMaybe s of
59.48 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] Just i ->
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + if True
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] added mutation ConstBool at src/Money/Amount/Codec.hs:49:12-59
59.48 s
[really-safe-money-autodocodec] @@ -46,7 +46,7 @@
59.48 s
[really-safe-money-autodocodec] f s = case readMaybe s of
59.48 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] Just i ->
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + if False
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] added mutation Negate at src/Money/Amount/Codec.hs:49:12-59
59.48 s
[really-safe-money-autodocodec] @@ -46,7 +46,7 @@
59.48 s
[really-safe-money-autodocodec] f s = case readMaybe s of
59.48 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] Just i ->
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + if not ((i :: Integer) < toInteger (minBound :: Word64))
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:50:31-84
59.48 s
[really-safe-money-autodocodec] @@ -47,7 +47,7 @@
59.48 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] Just i ->
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords []
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:50:31-84
59.48 s
[really-safe-money-autodocodec] @@ -47,7 +47,7 @@
59.48 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] Just i ->
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] added mutation ConstBool at src/Money/Amount/Codec.hs:52:16-63
59.48 s
[really-safe-money-autodocodec] @@ -49,7 +49,7 @@
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + if True
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] g :: Amount -> String
59.48 s
[really-safe-money-autodocodec] added mutation ConstBool at src/Money/Amount/Codec.hs:52:16-63
59.48 s
[really-safe-money-autodocodec] @@ -49,7 +49,7 @@
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + if False
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] g :: Amount -> String
59.48 s
[really-safe-money-autodocodec] added mutation Negate at src/Money/Amount/Codec.hs:52:16-63
59.48 s
[really-safe-money-autodocodec] @@ -49,7 +49,7 @@
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + if not ((i :: Integer) > toInteger (maxBound :: Word64))
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] g :: Amount -> String
59.48 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:53:35-90
59.48 s
[really-safe-money-autodocodec] @@ -50,7 +50,7 @@
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords []
59.48 s
[really-safe-money-autodocodec] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] g :: Amount -> String
59.48 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
59.48 s
[really-safe-money-autodocodec] added mutation ListLit at src/Money/Amount/Codec.hs:53:35-90
59.48 s
[really-safe-money-autodocodec] @@ -50,7 +50,7 @@
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] g :: Amount -> String
59.48 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
59.48 s
[really-safe-money-autodocodec] added mutation CondFlip at src/Money/Amount/Codec.hs:52:13-86
59.48 s
[really-safe-money-autodocodec] @@ -49,9 +49,9 @@
59.48 s
[really-safe-money-autodocodec] if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] else
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] + if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] g :: Amount -> String
59.48 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
59.48 s
[really-safe-money-autodocodec]
59.48 s
[really-safe-money-autodocodec] added mutation CondFlip at src/Money/Amount/Codec.hs:49:9-86
59.48 s
[really-safe-money-autodocodec] @@ -46,12 +46,12 @@
59.48 s
[really-safe-money-autodocodec] f s = case readMaybe s of
59.48 s
[really-safe-money-autodocodec] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] Just i ->
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] - else
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] + if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] + else
59.48 s
[really-safe-money-autodocodec] + if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] g :: Amount -> String
59.48 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
59.48 s
[really-safe-money-autodocodec]
59.48 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Amount/Codec.hs:46:11-86
59.48 s
[really-safe-money-autodocodec] @@ -43,15 +43,15 @@
59.48 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f g stringCodec <?> "Amount"
59.48 s
[really-safe-money-autodocodec] where
59.48 s
[really-safe-money-autodocodec] f :: String -> Either String Amount
59.48 s
[really-safe-money-autodocodec] - f s = case readMaybe s of
59.48 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] - Just i ->
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] - else
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] + f s = case readMaybe s of
59.48 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] + Just i ->
59.48 s
[really-safe-money-autodocodec] + if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] + else
59.48 s
[really-safe-money-autodocodec] + if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] g :: Amount -> String
59.48 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
59.48 s
[really-safe-money-autodocodec]
59.48 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/Amount/Codec.hs:46:11-86
59.48 s
[really-safe-money-autodocodec] @@ -43,15 +43,15 @@
59.48 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f g stringCodec <?> "Amount"
59.48 s
[really-safe-money-autodocodec] where
59.48 s
[really-safe-money-autodocodec] f :: String -> Either String Amount
59.48 s
[really-safe-money-autodocodec] - f s = case readMaybe s of
59.48 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] - Just i ->
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] - else
59.48 s
[really-safe-money-autodocodec] - if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] + f s = case readMaybe s of
59.48 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
59.48 s
[really-safe-money-autodocodec] + Just i ->
59.48 s
[really-safe-money-autodocodec] + if (i :: Integer) < toInteger (minBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
59.48 s
[really-safe-money-autodocodec] + else
59.48 s
[really-safe-money-autodocodec] + if (i :: Integer) > toInteger (maxBound :: Word64)
59.48 s
[really-safe-money-autodocodec] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
59.48 s
[really-safe-money-autodocodec] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
59.48 s
[really-safe-money-autodocodec] g :: Amount -> String
59.49 s
[really-safe-money-autodocodec] g = show . Amount.toMinimalQuantisations
59.49 s
[really-safe-money-autodocodec]
59.49 s
[really-safe-money-autodocodec] added 16 mutations
59.72 s
[really-safe-money-autodocodec] [4 of 7] Compiling Money.AmountOf.Codec ( src/Money/AmountOf/Codec.hs, dist/build/Money/AmountOf/Codec.p_o )
59.72 s
[really-safe-money-autodocodec] mutation: instrumenting Money.AmountOf.Codec
59.72 s
[really-safe-money-autodocodec] added 0 mutations
59.86 s
[really-safe-money-autodocodec] [5 of 7] Compiling Money.QuantisationFactor.Codec ( src/Money/QuantisationFactor/Codec.hs, dist/build/Money/QuantisationFactor/Codec.p_o )
59.86 s
[really-safe-money-autodocodec] mutation: instrumenting Money.QuantisationFactor.Codec
59.86 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/QuantisationFactor/Codec.hs:41:11-26
59.86 s
[really-safe-money-autodocodec] @@ -38,6 +38,6 @@
59.86 s
[really-safe-money-autodocodec] codec
59.86 s
[really-safe-money-autodocodec] <?> "QuantisationFactor"
59.86 s
[really-safe-money-autodocodec] where
59.86 s
[really-safe-money-autodocodec] - f w = case QuantisationFactor.fromWord32 w of
59.86 s
[really-safe-money-autodocodec] - Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
59.86 s
[really-safe-money-autodocodec] - Just qf -> Right qf
59.86 s
[really-safe-money-autodocodec] + f w = case QuantisationFactor.fromWord32 w of
59.86 s
[really-safe-money-autodocodec] + Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
59.86 s
[really-safe-money-autodocodec] + Just qf -> Right qf
59.86 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Money/QuantisationFactor/Codec.hs:41:11-26
59.86 s
[really-safe-money-autodocodec] @@ -38,6 +38,6 @@
59.86 s
[really-safe-money-autodocodec] codec
59.86 s
[really-safe-money-autodocodec] <?> "QuantisationFactor"
59.86 s
[really-safe-money-autodocodec] where
59.86 s
[really-safe-money-autodocodec] - f w = case QuantisationFactor.fromWord32 w of
59.86 s
[really-safe-money-autodocodec] - Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
59.86 s
[really-safe-money-autodocodec] - Just qf -> Right qf
59.86 s
[really-safe-money-autodocodec] + f w = case QuantisationFactor.fromWord32 w of
59.86 s
[really-safe-money-autodocodec] + Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
59.86 s
[really-safe-money-autodocodec] + Just qf -> Right qf
59.86 s
[really-safe-money-autodocodec] added 2 mutations
60.02 s
[really-safe-money-autodocodec] [6 of 7] Compiling Numeric.DecimalLiteral.Codec ( src/Numeric/DecimalLiteral/Codec.hs, dist/build/Numeric/DecimalLiteral/Codec.p_o )
60.02 s
[really-safe-money-autodocodec] mutation: instrumenting Numeric.DecimalLiteral.Codec
60.02 s
[really-safe-money-autodocodec] added mutation ListLit at src/Numeric/DecimalLiteral/Codec.hs:40:33-82
60.02 s
[really-safe-money-autodocodec] @@ -37,5 +37,5 @@
60.02 s
[really-safe-money-autodocodec] where
60.02 s
[really-safe-money-autodocodec] f :: String -> Either String DecimalLiteral
60.02 s
[really-safe-money-autodocodec] f s = case DecimalLiteral.fromString s of
60.02 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
60.02 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords []
60.02 s
[really-safe-money-autodocodec] Just a -> Right a
60.02 s
[really-safe-money-autodocodec] added mutation ListLit at src/Numeric/DecimalLiteral/Codec.hs:40:33-82
60.02 s
[really-safe-money-autodocodec] @@ -37,5 +37,5 @@
60.02 s
[really-safe-money-autodocodec] where
60.02 s
[really-safe-money-autodocodec] f :: String -> Either String DecimalLiteral
60.02 s
[really-safe-money-autodocodec] f s = case DecimalLiteral.fromString s of
60.02 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
60.02 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
60.02 s
[really-safe-money-autodocodec] Just a -> Right a
60.02 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Numeric/DecimalLiteral/Codec.hs:39:11-24
60.02 s
[really-safe-money-autodocodec] @@ -36,6 +36,6 @@
60.02 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f DecimalLiteral.toString stringCodec <?> "DecimalLiteral"
60.02 s
[really-safe-money-autodocodec] where
60.02 s
[really-safe-money-autodocodec] f :: String -> Either String DecimalLiteral
60.02 s
[really-safe-money-autodocodec] - f s = case DecimalLiteral.fromString s of
60.02 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
60.02 s
[really-safe-money-autodocodec] - Just a -> Right a
60.02 s
[really-safe-money-autodocodec] + f s = case DecimalLiteral.fromString s of
60.02 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
60.02 s
[really-safe-money-autodocodec] + Just a -> Right a
60.02 s
[really-safe-money-autodocodec] added mutation RemoveCase at src/Numeric/DecimalLiteral/Codec.hs:39:11-24
60.02 s
[really-safe-money-autodocodec] @@ -36,6 +36,6 @@
60.02 s
[really-safe-money-autodocodec] codecViaString = bimapCodec f DecimalLiteral.toString stringCodec <?> "DecimalLiteral"
60.02 s
[really-safe-money-autodocodec] where
60.02 s
[really-safe-money-autodocodec] f :: String -> Either String DecimalLiteral
60.02 s
[really-safe-money-autodocodec] - f s = case DecimalLiteral.fromString s of
60.02 s
[really-safe-money-autodocodec] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
60.02 s
[really-safe-money-autodocodec] - Just a -> Right a
60.02 s
[really-safe-money-autodocodec] + f s = case DecimalLiteral.fromString s of
60.02 s
[really-safe-money-autodocodec] + Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
60.02 s
[really-safe-money-autodocodec] + Just a -> Right a
60.02 s
[really-safe-money-autodocodec] added 4 mutations
60.18 s
[really-safe-money-autodocodec] [7 of 7] Compiling Paths_really_safe_money_autodocodec ( dist/build/autogen/Paths_really_safe_money_autodocodec.hs, dist/build/Paths_really_safe_money_autodocodec.p_o )
60.62 s
[really-safe-money-autodocodec] Warning: ignoring unrecognised input `dist/build/Money/Account/Codec.dyn_o'
60.62 s
[really-safe-money-autodocodec] Warning: ignoring unrecognised input `dist/build/Money/AccountOf/Codec.dyn_o'
60.62 s
[really-safe-money-autodocodec] Warning: ignoring unrecognised input `dist/build/Money/Amount/Codec.dyn_o'
60.62 s
[really-safe-money-autodocodec] Warning: ignoring unrecognised input `dist/build/Money/AmountOf/Codec.dyn_o'
60.62 s
[really-safe-money-autodocodec] Warning: ignoring unrecognised input `dist/build/Money/QuantisationFactor/Codec.dyn_o'
60.62 s
[really-safe-money-autodocodec] Warning: ignoring unrecognised input `dist/build/Numeric/DecimalLiteral/Codec.dyn_o'
60.62 s
[really-safe-money-autodocodec] Warning: ignoring unrecognised input `dist/build/Paths_really_safe_money_autodocodec.dyn_o'
61.70 s
[really-safe-money-autodocodec] mutation-nix: manifest output at /nix/store/a266611cfdhdmlk5x3ax9s6vmpvn4c18-really-safe-money-autodocodec-0.0.0.0-manifest:
61.70 s
[really-safe-money-autodocodec] total 76
61.70 s
[really-safe-money-autodocodec] drwxr-xr-x 2 nixbld nixbld 4096 May 13 16:10 .
61.70 s
[really-safe-money-autodocodec] drwxrwxr-t 239 nobody nixbld 28672 May 13 16:10 ..
61.70 s
[really-safe-money-autodocodec] -rw-r--r-- 1 nixbld nixbld 4702 May 13 16:10 Money.Account.Codec.json
61.70 s
[really-safe-money-autodocodec] -rw-r--r-- 1 nixbld nixbld 2 May 13 16:10 Money.AccountOf.Codec.json
61.70 s
[really-safe-money-autodocodec] -rw-r--r-- 1 nixbld nixbld 14717 May 13 16:10 Money.Amount.Codec.json
61.70 s
[really-safe-money-autodocodec] -rw-r--r-- 1 nixbld nixbld 2 May 13 16:10 Money.AmountOf.Codec.json
61.70 s
[really-safe-money-autodocodec] -rw-r--r-- 1 nixbld nixbld 1549 May 13 16:10 Money.QuantisationFactor.Codec.json
61.70 s
[really-safe-money-autodocodec] -rw-r--r-- 1 nixbld nixbld 2972 May 13 16:10 Numeric.DecimalLiteral.Codec.json
61.70 s
[really-safe-money-autodocodec] Phase: haddockPhase
61.71 s
[really-safe-money-autodocodec] Phase: installPhase
61.80 s
[really-safe-money-autodocodec] Installing library in /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk
62.06 s
[really-safe-money-autodocodec] Phase: fixupPhase
62.08 s
[really-safe-money-autodocodec] shrinking RPATHs of ELF executables and libraries in /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0
62.08 s
[really-safe-money-autodocodec] shrinking /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/libHSreally-safe-money-autodocodec-0.0.0.0-6uQz3PYxbwUCTmvro4lDZk-ghc9.10.3.so
62.10 s
[really-safe-money-autodocodec] checking for references to /build/ in /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0...
62.12 s
[really-safe-money-autodocodec] patching script interpreter paths in /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0
62.12 s
[really-safe-money-autodocodec] stripping (with command strip and flags -S -p) in /nix/store/z7d0pxvwgva7vya06a0z69dyixcs5sgb-really-safe-money-autodocodec-0.0.0.0/lib
62.17 s
[really-safe-money-autodocodec] shrinking RPATHs of ELF executables and libraries in /nix/store/a266611cfdhdmlk5x3ax9s6vmpvn4c18-really-safe-money-autodocodec-0.0.0.0-manifest
62.18 s
[really-safe-money-autodocodec] checking for references to /build/ in /nix/store/a266611cfdhdmlk5x3ax9s6vmpvn4c18-really-safe-money-autodocodec-0.0.0.0-manifest...
62.19 s
[really-safe-money-autodocodec] patching script interpreter paths in /nix/store/a266611cfdhdmlk5x3ax9s6vmpvn4c18-really-safe-money-autodocodec-0.0.0.0-manifest
62.25 s
Progress: 4 of 6 built
62.30 s
Building really-safe-money-gen
62.67 s
[really-safe-money-gen] Phase: setupCompilerEnvironmentPhase
62.68 s
[really-safe-money-gen] Build with /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3.
63.15 s
[really-safe-money-gen] Phase: unpackPhase
63.23 s
[really-safe-money-gen] unpacking source archive /nix/store/w4nkbq86l33109ak3dwpv6bjsrj1y3n1-really-safe-money-gen-source-0.0.0.0/really-safe-money-gen-0.0.0.0.tar.gz
63.23 s
[really-safe-money-gen] source root is really-safe-money-gen-0.0.0.0
63.23 s
[really-safe-money-gen] setting SOURCE_DATE_EPOCH to timestamp 1778688644 of file "really-safe-money-gen-0.0.0.0/test/Spec.hs"
63.23 s
[really-safe-money-gen] warning: file "really-safe-money-gen-0.0.0.0/test/Spec.hs" may be generated; SOURCE_DATE_EPOCH may be non-deterministic
63.23 s
[really-safe-money-gen] Phase: patchPhase
63.23 s
[really-safe-money-gen] Phase: compileBuildDriverPhase
63.23 s
[really-safe-money-gen] setupCompileFlags: -package-db=/build/tmp.Y7AOyHRoEF/setup-package.conf.d -threaded
63.24 s
[really-safe-money-gen] [1 of 2] Compiling Main ( Setup.hs, /build/tmp.Y7AOyHRoEF/Main.o )
63.29 s
[really-safe-money-gen] [2 of 2] Linking Setup
64.58 s
[really-safe-money-gen] Phase: updateAutotoolsGnuConfigScriptsPhase
64.59 s
[really-safe-money-gen] Phase: configurePhase
64.60 s
[really-safe-money-gen] configureFlags: --verbose --prefix=/nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --docdir=/nix/store/26j8gawyiiv96f6syfhs8kk4k2hh32k5-really-safe-money-gen-0.0.0.0-doc/share/doc/really-safe-money-gen-0.0.0.0 --with-gcc=gcc --package-db=/build/tmp.Y7AOyHRoEF/package.conf.d --ghc-option=-j16 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping --ghc-option=-haddock --ghc-options=-O2 --ghc-options=-Wall --ghc-options=-Wincomplete-uni-patterns --ghc-options=-Wincomplete-record-updates --ghc-options=-Wpartial-fields --ghc-options=-Widentities --ghc-options=-Wredundant-constraints --ghc-options=-Wcpp-undef --ghc-options=-Werror --extra-lib-dirs=/nix/store/ffyzkisqs4vc4mg28bwwlyqjf8i9ph6b-ncurses-6.5/lib --extra-lib-dirs=/nix/store/n28qgdj8c1q41kf7n4y1jxa6ckp85m3c-libffi-3.5.2/lib --extra-lib-dirs=/nix/store/1b6h99dw7bk4wbn77kbalih42zbc67m1-elfutils-0.194/lib --extra-lib-dirs=/nix/store/hi0ar880110k6jsmmili7dh1gq3cg2a9-gmp-with-cxx-6.3.0/lib --extra-lib-dirs=/nix/store/g09cflpnp4g80q56sj9dng1qzv4v4ybc-numactl-2.0.18/lib --extra-lib-dirs=/nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/lib
64.60 s
[really-safe-money-gen] Using Parsec parser
64.60 s
[really-safe-money-gen] Configuring really-safe-money-gen-0.0.0.0...
65.25 s
[really-safe-money-gen] Dependency QuickCheck: using QuickCheck-2.15.0.1
65.25 s
[really-safe-money-gen] Dependency base >=4.7 && <5: using base-4.20.2.0
65.25 s
[really-safe-money-gen] Dependency genvalidity: using genvalidity-1.1.1.0
65.25 s
[really-safe-money-gen] Dependency genvalidity-containers: using genvalidity-containers-1.0.0.2
65.25 s
[really-safe-money-gen] Dependency really-safe-money: using really-safe-money-0.0.0.0
65.25 s
[really-safe-money-gen] Dependency base >=4.7 && <5: using base-4.20.2.0
65.25 s
[really-safe-money-gen] Dependency containers: using containers-0.7
65.25 s
[really-safe-money-gen] Dependency genvalidity-sydtest: using genvalidity-sydtest-1.0.1.0
65.25 s
[really-safe-money-gen] Dependency genvalidity-vector: using genvalidity-vector-1.0.0.0
65.25 s
[really-safe-money-gen] Dependency really-safe-money: using really-safe-money-0.0.0.0
65.25 s
[really-safe-money-gen] Dependency really-safe-money-gen: using really-safe-money-gen-0.0.0.0
65.25 s
[really-safe-money-gen] Dependency sydtest: using sydtest-0.23.0.2
65.25 s
[really-safe-money-gen] Dependency vector: using vector-0.13.2.0
65.25 s
[really-safe-money-gen] Source component graph:
65.25 s
[really-safe-money-gen] component lib
65.25 s
[really-safe-money-gen] component test:really-safe-money-test dependency lib
65.25 s
[really-safe-money-gen] Configured component graph:
65.25 s
[really-safe-money-gen] component really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h
65.25 s
[really-safe-money-gen] include QuickCheck-2.15.0.1-8fVC1qSJKj9H9pvMjJXUwU
65.25 s
[really-safe-money-gen] include base-4.20.2.0-64da
65.25 s
[really-safe-money-gen] include genvalidity-1.1.1.0-KJOcA1wEUno9vXRiVdno1L
65.25 s
[really-safe-money-gen] include genvalidity-containers-1.0.0.2-DXaOCEBh8iJ1c8u2LwVlK1
65.25 s
[really-safe-money-gen] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
65.25 s
[really-safe-money-gen] component really-safe-money-gen-0.0.0.0-8cvRTlTZbe8HClZztIkEoX-really-safe-money-test
65.25 s
[really-safe-money-gen] include base-4.20.2.0-64da
65.25 s
[really-safe-money-gen] include containers-0.7-504a
65.25 s
[really-safe-money-gen] include genvalidity-sydtest-1.0.1.0-Cj9ZxpByhih2ReY6BClfG1
65.25 s
[really-safe-money-gen] include genvalidity-vector-1.0.0.0-6KKiduowklk7hSxSW05Gxi
65.25 s
[really-safe-money-gen] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
65.25 s
[really-safe-money-gen] include really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h
65.25 s
[really-safe-money-gen] include sydtest-0.23.0.2-RzVaEpJISaERaSrCHYFLw
65.25 s
[really-safe-money-gen] include vector-0.13.2.0-GDUCoiHhVuq2SKPTzzTr3a
65.25 s
[really-safe-money-gen] Linked component graph:
65.25 s
[really-safe-money-gen] unit really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h
65.25 s
[really-safe-money-gen] include QuickCheck-2.15.0.1-8fVC1qSJKj9H9pvMjJXUwU
65.25 s
[really-safe-money-gen] include base-4.20.2.0-64da
65.25 s
[really-safe-money-gen] include genvalidity-1.1.1.0-KJOcA1wEUno9vXRiVdno1L
65.25 s
[really-safe-money-gen] include genvalidity-containers-1.0.0.2-DXaOCEBh8iJ1c8u2LwVlK1
65.25 s
[really-safe-money-gen] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
65.25 s
[really-safe-money-gen] Money.Account.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.Account.Gen,Money.AccountOf.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.AccountOf.Gen,Money.Amount.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.Amount.Gen,Money.AmountOf.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.AmountOf.Gen,Money.ConversionRate.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.ConversionRate.Gen,Money.ConversionRateOf.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.ConversionRateOf.Gen,Money.Currency.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.Currency.Gen,Money.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.Gen,Money.MultiAccount.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.MultiAccount.Gen,Money.MultiAmount.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.MultiAmount.Gen,Money.QuantisationFactor.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Money.QuantisationFactor.Gen,Numeric.DecimalLiteral.Gen=really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h:Numeric.DecimalLiteral.Gen
65.25 s
[really-safe-money-gen] unit really-safe-money-gen-0.0.0.0-8cvRTlTZbe8HClZztIkEoX-really-safe-money-test
65.25 s
[really-safe-money-gen] include base-4.20.2.0-64da
65.25 s
[really-safe-money-gen] include containers-0.7-504a
65.25 s
[really-safe-money-gen] include genvalidity-sydtest-1.0.1.0-Cj9ZxpByhih2ReY6BClfG1
65.25 s
[really-safe-money-gen] include genvalidity-vector-1.0.0.0-6KKiduowklk7hSxSW05Gxi
65.25 s
[really-safe-money-gen] include really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
65.25 s
[really-safe-money-gen] include really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h
65.25 s
[really-safe-money-gen] include sydtest-0.23.0.2-RzVaEpJISaERaSrCHYFLw
65.25 s
[really-safe-money-gen] include vector-0.13.2.0-GDUCoiHhVuq2SKPTzzTr3a
65.25 s
[really-safe-money-gen] Ready component graph:
65.25 s
[really-safe-money-gen] definite really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h
65.25 s
[really-safe-money-gen] depends QuickCheck-2.15.0.1-8fVC1qSJKj9H9pvMjJXUwU
65.25 s
[really-safe-money-gen] depends base-4.20.2.0-64da
65.25 s
[really-safe-money-gen] depends genvalidity-1.1.1.0-KJOcA1wEUno9vXRiVdno1L
65.25 s
[really-safe-money-gen] depends genvalidity-containers-1.0.0.2-DXaOCEBh8iJ1c8u2LwVlK1
65.25 s
[really-safe-money-gen] depends really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
65.25 s
[really-safe-money-gen] definite really-safe-money-gen-0.0.0.0-8cvRTlTZbe8HClZztIkEoX-really-safe-money-test
65.25 s
[really-safe-money-gen] depends base-4.20.2.0-64da
65.25 s
[really-safe-money-gen] depends containers-0.7-504a
65.25 s
[really-safe-money-gen] depends genvalidity-sydtest-1.0.1.0-Cj9ZxpByhih2ReY6BClfG1
65.25 s
[really-safe-money-gen] depends genvalidity-vector-1.0.0.0-6KKiduowklk7hSxSW05Gxi
65.25 s
[really-safe-money-gen] depends really-safe-money-0.0.0.0-KH9ltLBvnn0Cn1rgifGPh9
65.25 s
[really-safe-money-gen] depends really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h
65.25 s
[really-safe-money-gen] depends sydtest-0.23.0.2-RzVaEpJISaERaSrCHYFLw
65.25 s
[really-safe-money-gen] depends vector-0.13.2.0-GDUCoiHhVuq2SKPTzzTr3a
65.25 s
[really-safe-money-gen] Using Cabal-3.12.1.0 compiled by ghc-9.10
65.25 s
[really-safe-money-gen] Using compiler: ghc-9.10.3
65.25 s
[really-safe-money-gen] Using install prefix:
65.25 s
[really-safe-money-gen] /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0
65.25 s
[really-safe-money-gen] Executables installed in:
65.25 s
[really-safe-money-gen] /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0/bin
65.25 s
[really-safe-money-gen] Libraries installed in:
65.25 s
[really-safe-money-gen] /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h
65.25 s
[really-safe-money-gen] Dynamic Libraries installed in:
65.25 s
[really-safe-money-gen] /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6
65.25 s
[really-safe-money-gen] Private executables installed in:
65.25 s
[really-safe-money-gen] /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0/libexec/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-gen-0.0.0.0
65.25 s
[really-safe-money-gen] Data files installed in:
65.25 s
[really-safe-money-gen] /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0/share/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-gen-0.0.0.0
65.25 s
[really-safe-money-gen] Documentation installed in:
65.25 s
[really-safe-money-gen] /nix/store/26j8gawyiiv96f6syfhs8kk4k2hh32k5-really-safe-money-gen-0.0.0.0-doc/share/doc/really-safe-money-gen-0.0.0.0
65.25 s
[really-safe-money-gen] Configuration files installed in:
65.25 s
[really-safe-money-gen] /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0/etc
65.25 s
[really-safe-money-gen] No alex found
65.25 s
[really-safe-money-gen] Using ar found on system at:
65.25 s
[really-safe-money-gen] /nix/store/iz5lckcsg66r223si2gck7csk2hihj0m-binutils-wrapper-2.44/bin/ar
65.25 s
[really-safe-money-gen] No c2hs found
65.25 s
[really-safe-money-gen] No cpphs found
65.25 s
[really-safe-money-gen] No doctest found
65.25 s
[really-safe-money-gen] Using gcc version 14.3.0 given by user at:
65.25 s
[really-safe-money-gen] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/gcc
65.25 s
[really-safe-money-gen] Using ghc version 9.10.3 found on system at:
65.25 s
[really-safe-money-gen] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/ghc
65.25 s
[really-safe-money-gen] Using ghc-pkg version 9.10.3 found on system at:
65.25 s
[really-safe-money-gen] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/ghc-pkg-9.10.3
65.25 s
[really-safe-money-gen] No ghcjs found
65.25 s
[really-safe-money-gen] No ghcjs-pkg found
65.25 s
[really-safe-money-gen] No greencard found
65.25 s
[really-safe-money-gen] Using haddock version 2.31.1 found on system at:
65.25 s
[really-safe-money-gen] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/haddock-ghc-9.10.3
65.25 s
[really-safe-money-gen] No happy found
65.25 s
[really-safe-money-gen] Using haskell-suite found on system at: haskell-suite-dummy-location
65.25 s
[really-safe-money-gen] Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
65.25 s
[really-safe-money-gen] No hmake found
65.25 s
[really-safe-money-gen] Using hpc version 0.69 found on system at:
65.25 s
[really-safe-money-gen] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/hpc-ghc-9.10.3
65.25 s
[really-safe-money-gen] Using hsc2hs version 0.68.10 found on system at:
65.25 s
[really-safe-money-gen] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/hsc2hs-ghc-9.10.3
65.25 s
[really-safe-money-gen] Using hscolour version 1.25 found on system at:
65.25 s
[really-safe-money-gen] /nix/store/f755skyzf4jvfx3crwq9mmh3x4lsaz8i-hscolour-1.25/bin/HsColour
65.25 s
[really-safe-money-gen] No jhc found
65.25 s
[really-safe-money-gen] Using ld found on system at:
65.25 s
[really-safe-money-gen] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/ld
65.25 s
[really-safe-money-gen] No pkg-config found
65.25 s
[really-safe-money-gen] Using runghc version 9.10.3 found on system at:
65.25 s
[really-safe-money-gen] /nix/store/s9jd43rkwc2syl9cvgj6f786avy8bgzy-ghc-9.10.3/bin/runghc-9.10.3
65.25 s
[really-safe-money-gen] Using strip version 2.44 found on system at:
65.25 s
[really-safe-money-gen] /nix/store/8v97ngkcpfzgghwnnr7fsz33p2x22gy9-gcc-wrapper-14.3.0/bin/strip
65.25 s
[really-safe-money-gen] Using tar found on system at:
65.25 s
[really-safe-money-gen] /nix/store/xl6pd2spjajwcpq09fnmnjv5psqmlmma-gnutar-1.35/bin/tar
65.26 s
[really-safe-money-gen] No uhc found
65.65 s
[really-safe-money-gen] Phase: buildPhase
65.72 s
[really-safe-money-gen] Preprocessing library for really-safe-money-gen-0.0.0.0...
65.72 s
[really-safe-money-gen] Building library for really-safe-money-gen-0.0.0.0...
65.82 s
[really-safe-money-gen] [ 1 of 13] Compiling Money.Amount.Gen ( src/Money/Amount/Gen.hs, dist/build/Money/Amount/Gen.o, dist/build/Money/Amount/Gen.dyn_o )
66.15 s
[really-safe-money-gen] [ 2 of 13] Compiling Money.Account.Gen ( src/Money/Account/Gen.hs, dist/build/Money/Account/Gen.o, dist/build/Money/Account/Gen.dyn_o )
66.24 s
[really-safe-money-gen] [ 3 of 13] Compiling Money.AccountOf.Gen ( src/Money/AccountOf/Gen.hs, dist/build/Money/AccountOf/Gen.o, dist/build/Money/AccountOf/Gen.dyn_o )
66.28 s
[really-safe-money-gen] [ 4 of 13] Compiling Money.AmountOf.Gen ( src/Money/AmountOf/Gen.hs, dist/build/Money/AmountOf/Gen.o, dist/build/Money/AmountOf/Gen.dyn_o )
66.28 s
[really-safe-money-gen] [ 5 of 13] Compiling Money.ConversionRate.Gen ( src/Money/ConversionRate/Gen.hs, dist/build/Money/ConversionRate/Gen.o, dist/build/Money/ConversionRate/Gen.dyn_o )
66.28 s
[really-safe-money-gen] [ 6 of 13] Compiling Money.ConversionRateOf.Gen ( src/Money/ConversionRateOf/Gen.hs, dist/build/Money/ConversionRateOf/Gen.o, dist/build/Money/ConversionRateOf/Gen.dyn_o )
66.28 s
[really-safe-money-gen] [ 7 of 13] Compiling Money.QuantisationFactor.Gen ( src/Money/QuantisationFactor/Gen.hs, dist/build/Money/QuantisationFactor/Gen.o, dist/build/Money/QuantisationFactor/Gen.dyn_o )
66.28 s
[really-safe-money-gen] [ 8 of 13] Compiling Money.Currency.Gen ( src/Money/Currency/Gen.hs, dist/build/Money/Currency/Gen.o, dist/build/Money/Currency/Gen.dyn_o )
66.28 s
[really-safe-money-gen] [ 9 of 13] Compiling Money.MultiAmount.Gen ( src/Money/MultiAmount/Gen.hs, dist/build/Money/MultiAmount/Gen.o, dist/build/Money/MultiAmount/Gen.dyn_o )
66.28 s
[really-safe-money-gen] [10 of 13] Compiling Money.MultiAccount.Gen ( src/Money/MultiAccount/Gen.hs, dist/build/Money/MultiAccount/Gen.o, dist/build/Money/MultiAccount/Gen.dyn_o )
66.33 s
[really-safe-money-gen] [11 of 13] Compiling Money.Gen ( src/Money/Gen.hs, dist/build/Money/Gen.o, dist/build/Money/Gen.dyn_o )
66.35 s
[really-safe-money-gen] [12 of 13] Compiling Numeric.DecimalLiteral.Gen ( src/Numeric/DecimalLiteral/Gen.hs, dist/build/Numeric/DecimalLiteral/Gen.o, dist/build/Numeric/DecimalLiteral/Gen.dyn_o )
66.35 s
[really-safe-money-gen] [13 of 13] Compiling Paths_really_safe_money_gen ( dist/build/autogen/Paths_really_safe_money_gen.hs, dist/build/Paths_really_safe_money_gen.o, dist/build/Paths_really_safe_money_gen.dyn_o )
66.59 s
[really-safe-money-gen] [ 1 of 13] Compiling Money.Amount.Gen ( src/Money/Amount/Gen.hs, dist/build/Money/Amount/Gen.p_o )
66.98 s
[really-safe-money-gen] [ 2 of 13] Compiling Money.Account.Gen ( src/Money/Account/Gen.hs, dist/build/Money/Account/Gen.p_o )
67.17 s
[really-safe-money-gen] [ 3 of 13] Compiling Money.AccountOf.Gen ( src/Money/AccountOf/Gen.hs, dist/build/Money/AccountOf/Gen.p_o )
67.31 s
[really-safe-money-gen] [ 4 of 13] Compiling Money.AmountOf.Gen ( src/Money/AmountOf/Gen.hs, dist/build/Money/AmountOf/Gen.p_o )
67.31 s
[really-safe-money-gen] [ 5 of 13] Compiling Money.ConversionRate.Gen ( src/Money/ConversionRate/Gen.hs, dist/build/Money/ConversionRate/Gen.p_o )
67.31 s
[really-safe-money-gen] [ 6 of 13] Compiling Money.ConversionRateOf.Gen ( src/Money/ConversionRateOf/Gen.hs, dist/build/Money/ConversionRateOf/Gen.p_o )
67.31 s
[really-safe-money-gen] [ 7 of 13] Compiling Money.QuantisationFactor.Gen ( src/Money/QuantisationFactor/Gen.hs, dist/build/Money/QuantisationFactor/Gen.p_o )
67.31 s
[really-safe-money-gen] [ 8 of 13] Compiling Money.Currency.Gen ( src/Money/Currency/Gen.hs, dist/build/Money/Currency/Gen.p_o )
67.31 s
[really-safe-money-gen] [ 9 of 13] Compiling Money.MultiAmount.Gen ( src/Money/MultiAmount/Gen.hs, dist/build/Money/MultiAmount/Gen.p_o )
67.31 s
[really-safe-money-gen] [10 of 13] Compiling Money.MultiAccount.Gen ( src/Money/MultiAccount/Gen.hs, dist/build/Money/MultiAccount/Gen.p_o )
67.34 s
[really-safe-money-gen] [11 of 13] Compiling Money.Gen ( src/Money/Gen.hs, dist/build/Money/Gen.p_o )
67.46 s
[really-safe-money-gen] [12 of 13] Compiling Numeric.DecimalLiteral.Gen ( src/Numeric/DecimalLiteral/Gen.hs, dist/build/Numeric/DecimalLiteral/Gen.p_o )
67.46 s
[really-safe-money-gen] [13 of 13] Compiling Paths_really_safe_money_gen ( dist/build/autogen/Paths_really_safe_money_gen.hs, dist/build/Paths_really_safe_money_gen.p_o )
68.80 s
[really-safe-money-gen] Preprocessing test suite 'really-safe-money-test' for really-safe-money-gen-0.0.0.0...
68.81 s
[really-safe-money-gen] Building test suite 'really-safe-money-test' for really-safe-money-gen-0.0.0.0...
68.97 s
[really-safe-money-gen] [ 1 of 14] Compiling Money.AccountSpec ( test/Money/AccountSpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/AccountSpec.o )
71.91 s
[really-safe-money-gen] [ 2 of 14] Compiling Money.AmountSpec ( test/Money/AmountSpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/AmountSpec.o )
72.21 s
[really-safe-money-gen] [ 3 of 14] Compiling Money.ConversionRateSpec ( test/Money/ConversionRateSpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/ConversionRateSpec.o )
72.21 s
[really-safe-money-gen] [ 4 of 14] Compiling Money.Currency.TestUtils ( test/Money/Currency/TestUtils.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/Currency/TestUtils.o )
72.21 s
[really-safe-money-gen] [ 5 of 14] Compiling Money.ConversionRateOfSpec ( test/Money/ConversionRateOfSpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/ConversionRateOfSpec.o )
72.21 s
[really-safe-money-gen] [ 6 of 14] Compiling Money.AmountOfSpec ( test/Money/AmountOfSpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/AmountOfSpec.o )
72.21 s
[really-safe-money-gen] [ 7 of 14] Compiling Money.AccountOfSpec ( test/Money/AccountOfSpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/AccountOfSpec.o )
72.21 s
[really-safe-money-gen] [ 8 of 14] Compiling Money.CurrencySpec ( test/Money/CurrencySpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/CurrencySpec.o )
72.21 s
[really-safe-money-gen] [ 9 of 14] Compiling Money.MultiAccountSpec ( test/Money/MultiAccountSpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/MultiAccountSpec.o )
72.21 s
[really-safe-money-gen] [10 of 14] Compiling Money.MultiAmountSpec ( test/Money/MultiAmountSpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/MultiAmountSpec.o )
72.21 s
[really-safe-money-gen] [11 of 14] Compiling Money.QuantisationFactorSpec ( test/Money/QuantisationFactorSpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Money/QuantisationFactorSpec.o )
72.21 s
[really-safe-money-gen] [12 of 14] Compiling Numeric.DecimalLiteralSpec ( test/Numeric/DecimalLiteralSpec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Numeric/DecimalLiteralSpec.o )
72.21 s
[really-safe-money-gen] [13 of 14] Compiling Main ( test/Spec.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Main.o )
72.27 s
[really-safe-money-gen] [14 of 14] Compiling Paths_really_safe_money_gen ( dist/build/really-safe-money-test/autogen/Paths_really_safe_money_gen.hs, dist/build/really-safe-money-test/really-safe-money-test-tmp/Paths_really_safe_money_gen.o )
72.70 s
[really-safe-money-gen] [15 of 15] Linking dist/build/really-safe-money-test/really-safe-money-test
74.22 s
[really-safe-money-gen] Phase: checkPhase
74.24 s
[really-safe-money-gen] mutation-nix: collecting coverage for suite really-safe-money-gen
75.32 s
[really-safe-money-gen] coverage (4/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral Nothing 9 2 into rational 9 % 100 (4 mutations)
76.31 s
[really-safe-money-gen] coverage (7/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational (-6) % 1 into DecimalLiteral (Just False) 6 0 (19 mutations)
76.38 s
[really-safe-money-gen] coverage (15/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral (Just False) 600 2 into rational (-6) % 1 (4 mutations)
76.45 s
[really-safe-money-gen] coverage (26/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral Nothing 1 0 into rational 1 % 1 (4 mutations)
76.47 s
[really-safe-money-gen] coverage (13/1610): Numeric\.DecimalLiteralSpec.Rational.fromRational.can parse any rendered rational (26 mutations)
76.47 s
[really-safe-money-gen] coverage (28/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral (Just False) 1 3 into rational (-1) % 1000 (4 mutations)
76.68 s
[really-safe-money-gen] coverage (19/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational (-3) % 1 into DecimalLiteral (Just False) 3 0 (19 mutations)
76.92 s
[really-safe-money-gen] coverage (22/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational 9 % 100 into DecimalLiteral Nothing 9 2 (20 mutations)
76.99 s
[really-safe-money-gen] coverage (25/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational 7 % 1 into DecimalLiteral Nothing 7 0 (18 mutations)
77.07 s
[really-safe-money-gen] coverage (3/1610): Numeric\.DecimalLiteralSpec.Natural.toNatural.renders to valid naturals (0 mutations)
77.11 s
[really-safe-money-gen] coverage (20/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral Nothing 7000 3 into rational 7 % 1 (4 mutations)
77.13 s
[really-safe-money-gen] coverage (12/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational 5 % 1 into DecimalLiteral Nothing 5 0 (18 mutations)
77.13 s
[really-safe-money-gen] coverage (8/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral Nothing 10 0 into rational 10 % 1 (4 mutations)
77.16 s
[really-safe-money-gen] coverage (2/1610): Numeric\.DecimalLiteralSpec.Natural.fromNatural.can parse any rendered literal (4 mutations)
77.28 s
[really-safe-money-gen] coverage (1/1610): Numeric\.DecimalLiteralSpec.Natural.fromNatural.renders to valid decimal literals (1 mutations)
77.30 s
[really-safe-money-gen] coverage (9/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral Nothing 50 1 into rational 5 % 1 (4 mutations)
77.30 s
[really-safe-money-gen] coverage (11/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational (-4) % 5 into DecimalLiteral (Just False) 8 1 (21 mutations)
77.37 s
[really-safe-money-gen] coverage (24/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational 1 % 1 into DecimalLiteral Nothing 1 0 (18 mutations)
77.40 s
[really-safe-money-gen] coverage (23/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral (Just False) 3 0 into rational (-3) % 1 (4 mutations)
77.41 s
[really-safe-money-gen] coverage (27/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational 240009 % 20000 into DecimalLiteral Nothing 1200045 5 (22 mutations)
77.49 s
[really-safe-money-gen] coverage (6/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational 1 % 500 into DecimalLiteral Nothing 2 3 (20 mutations)
77.56 s
[really-safe-money-gen] coverage (21/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral Nothing 2 0 into rational 2 % 1 (4 mutations)
77.56 s
[really-safe-money-gen] coverage (10/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational (-1) % 1000 into DecimalLiteral (Just False) 1 3 (21 mutations)
77.57 s
[really-safe-money-gen] coverage (14/1610): Numeric\.DecimalLiteralSpec.Rational.fromRational.renders to valid decimal literals (23 mutations)
77.59 s
[really-safe-money-gen] coverage (5/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational 400 % 1 into DecimalLiteral Nothing 400 0 (18 mutations)
77.64 s
[really-safe-money-gen] coverage (18/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational 10 % 1 into DecimalLiteral Nothing 10 0 (18 mutations)
77.71 s
[really-safe-money-gen] coverage (16/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral Nothing 400 0 into rational 400 % 1 (4 mutations)
77.75 s
[really-safe-money-gen] coverage (17/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral Nothing 20 4 into rational 1 % 500 (4 mutations)
78.32 s
[really-safe-money-gen] coverage (29/1610): Numeric\.DecimalLiteralSpec.Rational.toRational.renders to valid rationals (4 mutations)
80.22 s
[really-safe-money-gen] coverage (31/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational 2 % 1 into DecimalLiteral Nothing 2 0 (18 mutations)
80.34 s
[really-safe-money-gen] coverage (32/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral Nothing 1200045 5 into rational 240009 % 20000 (4 mutations)
80.39 s
[really-safe-money-gen] coverage (34/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral (Just False) 300 5 into rational (-3) % 1000 (4 mutations)
80.46 s
[really-safe-money-gen] coverage (33/1610): Numeric\.DecimalLiteralSpec.Rational.can turn DecimalLiteral (Just False) 8 1 into rational (-4) % 5 (4 mutations)
80.54 s
[really-safe-money-gen] coverage (30/1610): Numeric\.DecimalLiteralSpec.Rational.can turn rational (-3) % 1000 into DecimalLiteral (Just False) 3 3 (21 mutations)
80.86 s
[really-safe-money-gen] coverage (46/1610): Numeric\.DecimalLiteralSpec.Int.fromInt.can parse any rendered literal (13 mutations)
80.95 s
[really-safe-money-gen] coverage (35/1610): Numeric\.DecimalLiteralSpec.Ratio.fromRatio.can parse any rendered rational (23 mutations)
80.95 s
[really-safe-money-gen] coverage (44/1610): Numeric\.DecimalLiteralSpec.setSignOptional.produces valid values (0 mutations)
81.32 s
[really-safe-money-gen] coverage (45/1610): Numeric\.DecimalLiteralSpec.Int.toInt.renders to valid words (6 mutations)
81.37 s
[really-safe-money-gen] coverage (42/1610): Numeric\.DecimalLiteralSpec.DecimalLiteral\.fromString.fails to parse scientific notation (15 mutations)
81.42 s
[really-safe-money-gen] coverage (41/1610): Numeric\.DecimalLiteralSpec.GenValid DecimalLiteral.genValid \:\: Gen DecimalLiteral.only generates valid 'DecimalLiteral's (0 mutations)
81.48 s
[really-safe-money-gen] coverage (37/1610): Numeric\.DecimalLiteralSpec.Ratio.toRatio.renders to valid rationals (5 mutations)
81.55 s
[really-safe-money-gen] coverage (36/1610): Numeric\.DecimalLiteralSpec.Ratio.fromRatio.renders to valid decimal literals (18 mutations)
81.78 s
[really-safe-money-gen] coverage (39/1610): Numeric\.DecimalLiteralSpec.setMinimumDigits.produces valid literals (6 mutations)
81.81 s
[really-safe-money-gen] coverage (40/1610): Numeric\.DecimalLiteralSpec.setMinimumDigits.produces values with more than the given number of digits (6 mutations)
81.89 s
[really-safe-money-gen] coverage (47/1610): Numeric\.DecimalLiteralSpec.Int.fromInt.renders to valid decimal literals (7 mutations)
81.90 s
[really-safe-money-gen] coverage (38/1610): Numeric\.DecimalLiteralSpec.setMinimumDigits.does not change the value of the literal (9 mutations)
82.04 s
[really-safe-money-gen] coverage (43/1610): Numeric\.DecimalLiteralSpec.DecimalLiteral\.fromString.can parse any rendered decimal literal (30 mutations)
82.15 s
[really-safe-money-gen] coverage (52/1610): Numeric\.DecimalLiteralSpec.toString.can render any decimal literal (2 mutations)
82.19 s
[really-safe-money-gen] coverage (51/1610): Numeric\.DecimalLiteralSpec.Word.toWord.renders to valid words (0 mutations)
82.23 s
[really-safe-money-gen] coverage (48/1610): Numeric\.DecimalLiteralSpec.DecimalLiteral\.fromStringM.does the same as DecimalLiteral\.fromString (11 mutations)
82.36 s
[really-safe-money-gen] coverage (49/1610): Numeric\.DecimalLiteralSpec.Word.fromWord.renders to valid decimal literals (1 mutations)
82.50 s
[really-safe-money-gen] coverage (50/1610): Numeric\.DecimalLiteralSpec.Word.fromWord.can parse any rendered literal (4 mutations)
82.52 s
[really-safe-money-gen] coverage (53/1610): Numeric\.DecimalLiteralSpec.examples.can parse "+2" (18 mutations)
82.64 s
[really-safe-money-gen] coverage (55/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 300 5 (3 mutations)
82.64 s
[really-safe-money-gen] coverage (54/1610): Numeric\.DecimalLiteralSpec.examples.can parse "1" (15 mutations)
82.72 s
[really-safe-money-gen] coverage (56/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 50 1 (1 mutations)
83.42 s
[really-safe-money-gen] coverage (57/1610): Numeric\.DecimalLiteralSpec.examples.can parse "400" (22 mutations)
84.86 s
[really-safe-money-gen] coverage (58/1610): Numeric\.DecimalLiteralSpec.examples.can parse "5\.0" (19 mutations)
84.99 s
[really-safe-money-gen] coverage (59/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 8 1 (3 mutations)
85.01 s
[really-safe-money-gen] coverage (60/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 1 3 (3 mutations)
85.07 s
[really-safe-money-gen] coverage (61/1610): Numeric\.DecimalLiteralSpec.examples.can parse "0\.00300" (22 mutations)
85.12 s
[really-safe-money-gen] coverage (65/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 1 0 (1 mutations)
85.26 s
[really-safe-money-gen] coverage (62/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 7000 3 (1 mutations)
85.33 s
[really-safe-money-gen] coverage (67/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 1200045 5 (1 mutations)
85.35 s
[really-safe-money-gen] coverage (63/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 20 4 (3 mutations)
85.42 s
[really-safe-money-gen] coverage (66/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral (Just True) 2 0 (1 mutations)
85.52 s
[really-safe-money-gen] coverage (68/1610): Numeric\.DecimalLiteralSpec.examples.can parse "0\.001" (20 mutations)
85.53 s
[really-safe-money-gen] coverage (72/1610): Numeric\.DecimalLiteralSpec.examples.can parse "0\.8" (17 mutations)
85.59 s
[really-safe-money-gen] coverage (73/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 400 0 (1 mutations)
85.59 s
[really-safe-money-gen] coverage (70/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 600 2 (1 mutations)
85.62 s
[really-safe-money-gen] coverage (64/1610): Numeric\.DecimalLiteralSpec.examples.can parse "12\.00045" (24 mutations)
85.68 s
[really-safe-money-gen] coverage (74/1610): Numeric\.DecimalLiteralSpec.examples.can parse "0\.09" (20 mutations)
85.73 s
[really-safe-money-gen] coverage (69/1610): Numeric\.DecimalLiteralSpec.examples.can parse "6\.00" (22 mutations)
85.78 s
[really-safe-money-gen] coverage (78/1610): Numeric\.DecimalLiteralSpec.examples.can parse "0\.0020" (22 mutations)
85.90 s
[really-safe-money-gen] coverage (79/1610): Numeric\.DecimalLiteralSpec.Integer.toInteger.renders to valid words (0 mutations)
85.90 s
[really-safe-money-gen] coverage (71/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral Nothing 9 2 (3 mutations)
86.02 s
[really-safe-money-gen] coverage (80/1610): Numeric\.DecimalLiteralSpec.Integer.fromInteger.renders to valid decimal literals (7 mutations)
86.21 s
[really-safe-money-gen] coverage (77/1610): Numeric\.DecimalLiteralSpec.examples.can render DecimalLiteral (Just False) 3 0 (1 mutations)
86.21 s
[really-safe-money-gen] coverage (76/1610): Numeric\.DecimalLiteralSpec.examples.can parse "-3" (15 mutations)
86.33 s
[really-safe-money-gen] coverage (81/1610): Numeric\.DecimalLiteralSpec.Integer.fromInteger.can parse any rendered literal (7 mutations)
86.38 s
[really-safe-money-gen] coverage (83/1610): Numeric\.DecimalLiteralSpec.setSignRequired.produces valid values (1 mutations)
86.51 s
[really-safe-money-gen] coverage (75/1610): Numeric\.DecimalLiteralSpec.examples.can parse "7\.000" (22 mutations)
86.63 s
[really-safe-money-gen] coverage (82/1610): Numeric\.DecimalLiteralSpec.digits.produces valid numbers of digits (0 mutations)
86.88 s
[really-safe-money-gen] coverage (84/1610): Money\.ConversionRateSpec.Rational.toRational.produces valid rationals (0 mutations)
87.68 s
[really-safe-money-gen] coverage (85/1610): Money\.ConversionRateSpec.Rational.fromRational.roundtrips with toRational (11 mutations)
89.07 s
[really-safe-money-gen] coverage (88/1610): Money\.ConversionRateSpec.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
89.29 s
[really-safe-money-gen] coverage (87/1610): Money\.ConversionRateSpec.Ratio.fromRatio.produces valid conversion rates (6 mutations)
89.30 s
[really-safe-money-gen] coverage (89/1610): Money\.ConversionRateSpec.Ratio.toRatio.produces valid ratios (0 mutations)
89.57 s
[really-safe-money-gen] coverage (97/1610): Money\.AccountSpec.Eq.Eq Account.(/=) \:\: Account -> Account -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid Account"s (3 mutations)
89.69 s
[really-safe-money-gen] coverage (86/1610): Money\.ConversionRateSpec.Rational.fromRational.produces valid conversion rates (11 mutations)
89.73 s
[really-safe-money-gen] coverage (90/1610): Money\.ConversionRateSpec.invert.produces valid rates (8 mutations)
89.76 s
[really-safe-money-gen] coverage (100/1610): Money\.AccountSpec.Eq.Eq Account.(==) \:\: Account -> Account -> Bool.is transitive for "valid Account"s (3 mutations)
89.93 s
[really-safe-money-gen] coverage (108/1610): Money\.AccountSpec.convert.converts this USD to CHF correctly (17 mutations)
89.97 s
[really-safe-money-gen] coverage (99/1610): Money\.AccountSpec.Eq.Eq Account.(==) \:\: Account -> Account -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid Account"s (3 mutations)
90.10 s
[really-safe-money-gen] coverage (98/1610): Money\.AccountSpec.Eq.Eq Account.(/=) \:\: Account -> Account -> Bool.is antireflexive for "valid Account"s (3 mutations)
90.20 s
[really-safe-money-gen] coverage (103/1610): Money\.AccountSpec.Eq.says negative 0 equals positive 0 (3 mutations)
90.23 s
[really-safe-money-gen] coverage (104/1610): Money\.AccountSpec.negate.produces valid amounts (1 mutations)
90.26 s
[really-safe-money-gen] coverage (95/1610): Money\.ConversionRateSpec.GenValid ConversionRate.genValid \:\: Gen ConversionRate.only generates valid 'ConversionRate's (6 mutations)
90.35 s
[really-safe-money-gen] coverage (94/1610): Money\.ConversionRateSpec.compose.produces valid rates (6 mutations)
90.40 s
[really-safe-money-gen] coverage (102/1610): Money\.AccountSpec.Eq.Eq Account.(==) \:\: Account -> Account -> Bool.is reflexive for "valid Account"s (3 mutations)
90.43 s
[really-safe-money-gen] coverage (101/1610): Money\.AccountSpec.Eq.Eq Account.(==) \:\: Account -> Account -> Bool.is symmetric for "valid Account"s (3 mutations)
90.49 s
[really-safe-money-gen] coverage (110/1610): Money\.AccountSpec.distribute.correctly distributes 3 into 3 (17 mutations)
90.51 s
[really-safe-money-gen] coverage (109/1610): Money\.AccountSpec.distribute.correctly distributes 5 into 3 (17 mutations)
90.58 s
[really-safe-money-gen] coverage (92/1610): Money\.ConversionRateSpec.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
90.61 s
[really-safe-money-gen] coverage (96/1610): Money\.AccountSpec.Show Account and Read Account.are implemented such that read \. show == id for valid values (3 mutations)
90.96 s
[really-safe-money-gen] coverage (111/1610): Money\.AccountSpec.distribute.Eq (Distribution Account).(==) \:\: (Distribution Account) -> (Distribution Account) -> Bool.is symmetric for "valid (Distribution Account)"s (3 mutations)
91.21 s
[really-safe-money-gen] coverage (112/1610): Money\.AccountSpec.distribute.Eq (Distribution Account).(==) \:\: (Distribution Account) -> (Distribution Account) -> Bool.is transitive for "valid (Distribution Account)"s (3 mutations)
91.24 s
[really-safe-money-gen] coverage (106/1610): Money\.AccountSpec.convert.succeeds in converting 1\:1 without rounding if the quantisation factor is the same (19 mutations)
91.44 s
[really-safe-money-gen] coverage (114/1610): Money\.AccountSpec.distribute.Eq (Distribution Account).(==) \:\: (Distribution Account) -> (Distribution Account) -> Bool.is reflexive for "valid (Distribution Account)"s (3 mutations)
91.73 s
[really-safe-money-gen] coverage (105/1610): Money\.AccountSpec.format.produces valid strings (6 mutations)
92.53 s
[really-safe-money-gen] coverage (113/1610): Money\.AccountSpec.distribute.Eq (Distribution Account).(==) \:\: (Distribution Account) -> (Distribution Account) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution Account)"s (3 mutations)
93.99 s
[really-safe-money-gen] coverage (115/1610): Money\.AccountSpec.distribute.Eq (Distribution Account).(/=) \:\: (Distribution Account) -> (Distribution Account) -> Bool.is antireflexive for "valid (Distribution Account)"s (3 mutations)
94.33 s
[really-safe-money-gen] coverage (116/1610): Money\.AccountSpec.distribute.Eq (Distribution Account).(/=) \:\: (Distribution Account) -> (Distribution Account) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution Account)"s (3 mutations)
94.57 s
[really-safe-money-gen] coverage (118/1610): Money\.AccountSpec.distribute.correctly distributes 10 into 4 (17 mutations)
94.65 s
[really-safe-money-gen] coverage (122/1610): Money\.AccountSpec.fromAmount.produces valid accounts (1 mutations)
94.96 s
[really-safe-money-gen] coverage (121/1610): Money\.AccountSpec.abs.produces valid amounts (1 mutations)
94.97 s
[really-safe-money-gen] coverage (127/1610): Money\.AccountSpec.fromMinimalQuantisations.roundtrips with toMinimalQuantisations (12 mutations)
95.10 s
[really-safe-money-gen] coverage (120/1610): Money\.AccountSpec.distribute.produces valid amounts (28 mutations)
95.15 s
[really-safe-money-gen] coverage (131/1610): Money\.AccountSpec.rate.computes this USD to CHF rate correctly (10 mutations)
95.16 s
[really-safe-money-gen] coverage (117/1610): Money\.AccountSpec.distribute.produces results that sum up to the greater whole (45 mutations)
95.26 s
[really-safe-money-gen] coverage (128/1610): Money\.AccountSpec.fromMinimalQuantisations.produces valid accounts (10 mutations)
95.30 s
[really-safe-money-gen] coverage (125/1610): Money\.AccountSpec.fromRatio.produces valid rational (14 mutations)
95.35 s
[really-safe-money-gen] coverage (133/1610): Money\.AccountSpec.toDouble.produces an infinite or NaN Double with quantisation factor 0 (3 mutations)
95.38 s
[really-safe-money-gen] coverage (124/1610): Money\.AccountSpec.fromRational.produces valid rational (19 mutations)
95.43 s
[really-safe-money-gen] coverage (123/1610): Money\.AccountSpec.fromRational.roundtrips with toRational (23 mutations)
95.54 s
[really-safe-money-gen] coverage (126/1610): Money\.AccountSpec.fromRatio.roundtrips with toRatio (16 mutations)
95.58 s
[really-safe-money-gen] coverage (132/1610): Money\.AccountSpec.toDouble.produces valid Doubles when the quantisation factor is nonzero (3 mutations)
95.65 s
[really-safe-money-gen] coverage (134/1610): Money\.AccountSpec.Ord.says -6 is greater than -7 (2 mutations)
95.70 s
[really-safe-money-gen] coverage (135/1610): Money\.AccountSpec.Ord.says 4 is smaller than 5 (2 mutations)
96.09 s
[really-safe-money-gen] coverage (137/1610): Money\.AccountSpec.Ord.Ord Account."max \:\: (Account -> Account -> Account)".is equivalent to (\\a b -> if a >= b then a else b) for "valid Account"'s (3 mutations)
96.14 s
[really-safe-money-gen] coverage (136/1610): Money\.AccountSpec.Ord.says -3 is smaller than 2 (2 mutations)
96.21 s
[really-safe-money-gen] coverage (130/1610): Money\.AccountSpec.rate.produces valid conversion rates (11 mutations)
96.23 s
[really-safe-money-gen] coverage (138/1610): Money\.AccountSpec.Ord.Ord Account."min \:\: (Account -> Account -> Account)".is equivalent to (\\a b -> if a <= b then a else b) for "valid Account"'s (3 mutations)
96.31 s
[really-safe-money-gen] coverage (107/1610): Money\.AccountSpec.convert.produces valid amounts (17 mutations)
96.65 s
[really-safe-money-gen] coverage (119/1610): Money\.AccountSpec.distribute.Show (Distribution Account) and Read (Distribution Account).are implemented such that read \. show == id for valid values (3 mutations)
96.91 s
[really-safe-money-gen] coverage (139/1610): Money\.AccountSpec.Ord.Ord Account.(<=) \:\: Account -> Account -> Bool.is transitive for "valid Account"'s (3 mutations)
97.10 s
[really-safe-money-gen] coverage (129/1610): Money\.AccountSpec.rate.computes a rate that can be used to do a conversion without rounding (22 mutations)
98.54 s
[really-safe-money-gen] coverage (140/1610): Money\.AccountSpec.Ord.Ord Account.(<=) \:\: Account -> Account -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid Account"'s (3 mutations)
99.00 s
[really-safe-money-gen] coverage (142/1610): Money\.AccountSpec.Ord.Ord Account.(<=) \:\: Account -> Account -> Bool.is reflexive for "valid Account"'s (3 mutations)
99.35 s
[really-safe-money-gen] coverage (141/1610): Money\.AccountSpec.Ord.Ord Account.(<=) \:\: Account -> Account -> Bool.is antisymmetric for "valid Account"'s (3 mutations)
99.43 s
[really-safe-money-gen] coverage (144/1610): Money\.AccountSpec.Ord.Ord Account.(>) \:\: Account -> Account -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid Account"'s (3 mutations)
99.46 s
[really-safe-money-gen] coverage (143/1610): Money\.AccountSpec.Ord.Ord Account.(>) \:\: Account -> Account -> Bool.is transitive for "valid Account"'s (3 mutations)
99.67 s
[really-safe-money-gen] coverage (156/1610): Money\.AccountSpec.sum.fails to sum above maxBound even if the result is back below maxBound (5 mutations)
99.69 s
[really-safe-money-gen] coverage (145/1610): Money\.AccountSpec.Ord.Ord Account.(>) \:\: Account -> Account -> Bool.is antireflexive for "valid Account"'s (3 mutations)
99.92 s
[really-safe-money-gen] coverage (146/1610): Money\.AccountSpec.Ord.Ord Account.(<) \:\: Account -> Account -> Bool.is transitive for "valid Account"'s (3 mutations)
99.94 s
[really-safe-money-gen] coverage (148/1610): Money\.AccountSpec.Ord.Ord Account.(<) \:\: Account -> Account -> Bool.is antireflexive for "valid Account"'s (3 mutations)
99.97 s
[really-safe-money-gen] coverage (153/1610): Money\.AccountSpec.toRatio.produces valid Ratios when the quantisation factor is nonzero (1 mutations)
100.10 s
[really-safe-money-gen] coverage (151/1610): Money\.AccountSpec.Ord.Ord Account.(>=) \:\: Account -> Account -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid Account"'s (3 mutations)
100.18 s
[really-safe-money-gen] coverage (158/1610): Money\.AccountSpec.sum.correctly sums [1,2,3] to 6 (7 mutations)
100.18 s
[really-safe-money-gen] coverage (149/1610): Money\.AccountSpec.Ord.Ord Account.(>=) \:\: Account -> Account -> Bool.is reflexive for "valid Account"'s (3 mutations)
100.30 s
[really-safe-money-gen] coverage (157/1610): Money\.AccountSpec.sum.fails to sum above maxBound (5 mutations)
100.32 s
[really-safe-money-gen] coverage (147/1610): Money\.AccountSpec.Ord.Ord Account.(<) \:\: Account -> Account -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid Account"'s (3 mutations)
100.36 s
[really-safe-money-gen] coverage (152/1610): Money\.AccountSpec.Ord.Ord Account.(>=) \:\: Account -> Account -> Bool.is transitive for "valid Account"'s (3 mutations)
100.52 s
[really-safe-money-gen] coverage (150/1610): Money\.AccountSpec.Ord.Ord Account.(>=) \:\: Account -> Account -> Bool.is antisymmetric for "valid Account"'s (3 mutations)
100.81 s
[really-safe-money-gen] coverage (154/1610): Money\.AccountSpec.fractionRatio.produces valid amounts (15 mutations)
100.93 s
[really-safe-money-gen] coverage (163/1610): Money\.AccountSpec.add.fails for minBound + minBound (4 mutations)
100.96 s
[really-safe-money-gen] coverage (162/1610): Money\.AccountSpec.add.fails for minBound + (-1) (4 mutations)
101.12 s
[really-safe-money-gen] coverage (160/1610): Money\.AccountSpec.toMinimalQuantisations.produces valid accounts (3 mutations)
101.77 s
[really-safe-money-gen] coverage (161/1610): Money\.AccountSpec.add.is commutative (16 mutations)
101.84 s
[really-safe-money-gen] coverage (155/1610): Money\.AccountSpec.sum.produces valid amounts (17 mutations)
101.96 s
[really-safe-money-gen] coverage (164/1610): Money\.AccountSpec.add.produces valid amounts (16 mutations)
102.28 s
[really-safe-money-gen] coverage (165/1610): Money\.AccountSpec.add.has a right-identity\: zero (17 mutations)
102.55 s
[really-safe-money-gen] coverage (159/1610): Money\.AccountSpec.sum.matches what you would get with Integer, if nothing fails (17 mutations)
103.08 s
[really-safe-money-gen] coverage (166/1610): Money\.AccountSpec.add.fails for maxBound + 1 (4 mutations)
103.31 s
[really-safe-money-gen] coverage (167/1610): Money\.AccountSpec.add.fails for maxBound + maxBound (4 mutations)
103.47 s
[really-safe-money-gen] coverage (171/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 3 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 100} (24 mutations)
103.72 s
[really-safe-money-gen] coverage (169/1610): Money\.AccountSpec.add.has a left-identity\: zero (17 mutations)
103.74 s
[really-safe-money-gen] coverage (173/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 500 8 into decimalLiteral QuantisationFactor {unQuantisationFactor = 100000000} (24 mutations)
103.76 s
[really-safe-money-gen] coverage (168/1610): Money\.AccountSpec.add.is associative when both succeed (16 mutations)
103.82 s
[really-safe-money-gen] coverage (174/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 100} into DecimalLiteral (Just False) 4 2 (27 mutations)
103.84 s
[really-safe-money-gen] coverage (172/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 1 0 into decimalLiteral QuantisationFactor {unQuantisationFactor = 1} (24 mutations)
103.88 s
[really-safe-money-gen] coverage (175/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 100} into DecimalLiteral (Just False) 200 2 (27 mutations)
103.91 s
[really-safe-money-gen] coverage (176/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 100 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 100} (24 mutations)
103.96 s
[really-safe-money-gen] coverage (177/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 20} into DecimalLiteral (Just True) 500 2 (27 mutations)
104.07 s
[really-safe-money-gen] coverage (179/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 500 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 20} (24 mutations)
104.19 s
[really-safe-money-gen] coverage (178/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 20} into DecimalLiteral (Just False) 600 2 (27 mutations)
104.32 s
[really-safe-money-gen] coverage (182/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 100} into DecimalLiteral (Just True) 100 2 (27 mutations)
104.32 s
[really-safe-money-gen] coverage (181/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 20} into DecimalLiteral (Just True) 10 2 (29 mutations)
104.43 s
[really-safe-money-gen] coverage (180/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 100} into DecimalLiteral (Just True) 3 2 (27 mutations)
104.81 s
[really-safe-money-gen] coverage (187/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just False) 600 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 20} (24 mutations)
104.87 s
[really-safe-money-gen] coverage (186/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just False) 4 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 100} (24 mutations)
104.94 s
[really-safe-money-gen] coverage (185/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 1} into DecimalLiteral (Just True) 1 0 (25 mutations)
105.48 s
[really-safe-money-gen] coverage (188/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 20} into DecimalLiteral (Just False) 20 2 (29 mutations)
105.55 s
[really-safe-money-gen] coverage (189/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 1} into DecimalLiteral (Just False) 2 0 (25 mutations)
105.76 s
[really-safe-money-gen] coverage (190/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just False) 20 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 20} (24 mutations)
105.93 s
[really-safe-money-gen] coverage (191/1610): Money\.AccountSpec.DecimalLiteral.Account\.fromDecimalLiteral.fails on this amount that is too precise (13 mutations)
106.63 s
[really-safe-money-gen] coverage (192/1610): Money\.AccountSpec.DecimalLiteral.Account\.fromDecimalLiteral.produces valid factors (22 mutations)
106.72 s
[really-safe-money-gen] coverage (193/1610): Money\.AccountSpec.DecimalLiteral.Account\.fromDecimalLiteral.fails on this amount that is too precise:1 (13 mutations)
106.94 s
[really-safe-money-gen] coverage (194/1610): Money\.AccountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 100000000} into DecimalLiteral (Just True) 500 8 (29 mutations)
107.05 s
[really-safe-money-gen] coverage (195/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just False) 2 0 into decimalLiteral QuantisationFactor {unQuantisationFactor = 1} (24 mutations)
107.27 s
[really-safe-money-gen] coverage (202/1610): Money\.AccountSpec.subtract.fails for minBound - maxBound (4 mutations)
107.36 s
[really-safe-money-gen] coverage (204/1610): Money\.AccountSpec.multiply.fails for 3 * minBound (4 mutations)
107.43 s
[really-safe-money-gen] coverage (197/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just False) 200 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 100} (24 mutations)
107.47 s
[really-safe-money-gen] coverage (203/1610): Money\.AccountSpec.subtract.fails for maxBound - minBound (4 mutations)
107.61 s
[really-safe-money-gen] coverage (200/1610): Money\.AccountSpec.subtract.matches what you would get with Integer, if nothing fails (16 mutations)
107.62 s
[really-safe-money-gen] coverage (207/1610): Money\.AccountSpec.multiply.succeeds for 3 * 6 (14 mutations)
107.63 s
[really-safe-money-gen] coverage (170/1610): Money\.AccountSpec.add.matches what you would get with Integer, if nothing fails (16 mutations)
107.70 s
[really-safe-money-gen] coverage (199/1610): Money\.AccountSpec.fromDouble.roundtrips with toDouble back to double (30 mutations)
107.72 s
[really-safe-money-gen] coverage (206/1610): Money\.AccountSpec.multiply.produces valid amounts (15 mutations)
107.81 s
[really-safe-money-gen] coverage (205/1610): Money\.AccountSpec.multiply.is absorbed by 0 (15 mutations)
107.83 s
[really-safe-money-gen] coverage (211/1610): Money\.AccountSpec.multiply.fails for 2 * maxbound (4 mutations)
108.01 s
[really-safe-money-gen] coverage (209/1610): Money\.AccountSpec.multiply.is distributive with add when both succeed (28 mutations)
108.04 s
[really-safe-money-gen] coverage (198/1610): Money\.AccountSpec.fromDouble.produces valid rational (28 mutations)
108.23 s
[really-safe-money-gen] coverage (212/1610): Money\.AccountSpec.GenValid Account.genValid \:\: Gen Account.only generates valid 'Account's (1 mutations)
108.46 s
[really-safe-money-gen] coverage (210/1610): Money\.AccountSpec.multiply.matches what you would get with Integer, if nothing fails (15 mutations)
109.17 s
[really-safe-money-gen] coverage (214/1610): Money\.AccountSpec.fraction.produces valid amounts (28 mutations)
109.33 s
[really-safe-money-gen] coverage (221/1610): Money\.MultiAmountSpec.fromAmount.produces valid amounts (16 mutations)
109.36 s
[really-safe-money-gen] coverage (219/1610): Money\.AccountSpec.toRational.produces valid Rationals when the quantisation factor is nonzero (3 mutations)
109.65 s
[really-safe-money-gen] coverage (218/1610): Money\.AccountSpec.fraction.Produces a result that has been rounded in the right direction when using RoundUp (24 mutations)
110.02 s
[really-safe-money-gen] coverage (215/1610): Money\.AccountSpec.fraction.Produces a result that can be multiplied back (28 mutations)
110.04 s
[really-safe-money-gen] coverage (213/1610): Money\.AccountSpec.fraction.Correctly fractions 101 with 1 % 100 (23 mutations)
110.48 s
[really-safe-money-gen] coverage (224/1610): Money\.MultiAmountSpec.Eq (MultiAmount Currency).(/=) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is antireflexive for "valid (MultiAmount Currency)"s (2 mutations)
110.68 s
[really-safe-money-gen] coverage (222/1610): Money\.MultiAmountSpec.Show (MultiAmount Currency) and Read (MultiAmount Currency).are implemented such that read \. show == id for valid values (2 mutations)
110.88 s
[really-safe-money-gen] coverage (225/1610): Money\.MultiAmountSpec.Eq (MultiAmount Currency).(/=) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (MultiAmount Currency)"s (1 mutations)
111.36 s
[really-safe-money-gen] coverage (223/1610): Money\.MultiAmountSpec.zero.is valid (2 mutations)
111.47 s
[really-safe-money-gen] coverage (226/1610): Money\.MultiAmountSpec.Eq (MultiAmount Currency).(==) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is transitive for "valid (MultiAmount Currency)"s (1 mutations)
111.61 s
[really-safe-money-gen] coverage (228/1610): Money\.MultiAmountSpec.Eq (MultiAmount Currency).(==) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (MultiAmount Currency)"s (1 mutations)
111.89 s
[really-safe-money-gen] coverage (231/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(<) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is antireflexive for "valid (MultiAmount Currency)"'s (2 mutations)
111.94 s
[really-safe-money-gen] coverage (227/1610): Money\.MultiAmountSpec.Eq (MultiAmount Currency).(==) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is symmetric for "valid (MultiAmount Currency)"s (1 mutations)
112.06 s
[really-safe-money-gen] coverage (237/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(<=) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is antisymmetric for "valid (MultiAmount Currency)"'s (2 mutations)
112.09 s
[really-safe-money-gen] coverage (235/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(<=) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (MultiAmount Currency)"'s (2 mutations)
112.12 s
[really-safe-money-gen] coverage (239/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(>=) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is antisymmetric for "valid (MultiAmount Currency)"'s (2 mutations)
112.32 s
[really-safe-money-gen] coverage (240/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(>=) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is reflexive for "valid (MultiAmount Currency)"'s (2 mutations)
112.39 s
[really-safe-money-gen] coverage (232/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(<) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is transitive for "valid (MultiAmount Currency)"'s (2 mutations)
112.47 s
[really-safe-money-gen] coverage (229/1610): Money\.MultiAmountSpec.Eq (MultiAmount Currency).(==) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is reflexive for "valid (MultiAmount Currency)"s (2 mutations)
112.65 s
[really-safe-money-gen] coverage (241/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(>=) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is transitive for "valid (MultiAmount Currency)"'s (2 mutations)
112.89 s
[really-safe-money-gen] coverage (238/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency)."min \:\: (MultiAmount Currency -> MultiAmount Currency -> MultiAmount Currency)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (MultiAmount Currency)"'s (2 mutations)
112.96 s
[really-safe-money-gen] coverage (230/1610): Money\.MultiAmountSpec.sum.produces valid amounts (23 mutations)
113.15 s
[really-safe-money-gen] coverage (242/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(>=) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (MultiAmount Currency)"'s (2 mutations)
113.57 s
[really-safe-money-gen] coverage (243/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency)."max \:\: (MultiAmount Currency -> MultiAmount Currency -> MultiAmount Currency)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (MultiAmount Currency)"'s (2 mutations)
113.68 s
[really-safe-money-gen] coverage (244/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(>) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is antireflexive for "valid (MultiAmount Currency)"'s (2 mutations)
113.92 s
[really-safe-money-gen] coverage (245/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(>) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is transitive for "valid (MultiAmount Currency)"'s (2 mutations)
114.02 s
[really-safe-money-gen] coverage (247/1610): Money\.MultiAmountSpec.convertAll.produces the right result in this example (8 mutations)
114.13 s
[really-safe-money-gen] coverage (246/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(>) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (MultiAmount Currency)"'s (2 mutations)
114.36 s
[really-safe-money-gen] coverage (249/1610): Money\.MultiAmountSpec.convertAll.does the same as 'convert' when there is only one amount (20 mutations)
114.52 s
[really-safe-money-gen] coverage (248/1610): Money\.MultiAmountSpec.convertAll.produces valid results when converting two currencies to one (13 mutations)
114.82 s
[really-safe-money-gen] coverage (255/1610): Money\.MultiAmountSpec.addAmount.produces valid amounts (19 mutations)
114.87 s
[really-safe-money-gen] coverage (251/1610): Money\.MultiAmountSpec.add.has a right-identity\: zero (2 mutations)
114.92 s
[really-safe-money-gen] coverage (250/1610): Money\.MultiAmountSpec.add.produces valid amounts (23 mutations)
115.20 s
[really-safe-money-gen] coverage (256/1610): Money\.MultiAmountSpec.subtractAmount.produces valid amounts (24 mutations)
115.54 s
[really-safe-money-gen] coverage (258/1610): Money\.MultiAmountSpec.subtract.produces valid amounts (24 mutations)
115.60 s
[really-safe-money-gen] coverage (196/1610): Money\.AccountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 10 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 20} (24 mutations)
115.64 s
[really-safe-money-gen] coverage (220/1610): Money\.AccountSpec.toRational.produces an invalid Rational with quantisation factor 0 (4 mutations)
115.64 s
[really-safe-money-gen] coverage (257/1610): Money\.MultiAmountSpec.GenValid (MultiAmount Currency).genValid \:\: Gen (MultiAmount Currency).only generates valid '(MultiAmount Currency)'s (13 mutations)
115.80 s
[really-safe-money-gen] coverage (259/1610): Money\.MultiAmountSpec.subtract.has a right-identity\: zero (2 mutations)
115.96 s
[really-safe-money-gen] coverage (216/1610): Money\.AccountSpec.fraction.Correctly fractions 100 with 1 % 100 (23 mutations)
116.20 s
[really-safe-money-gen] coverage (252/1610): Money\.MultiAmountSpec.add.has a left-identity\: zero (4 mutations)
116.29 s
[really-safe-money-gen] coverage (254/1610): Money\.MultiAmountSpec.add.is commutative (12 mutations)
116.32 s
[really-safe-money-gen] coverage (201/1610): Money\.AccountSpec.subtract.fails for minBound - 1 (4 mutations)
116.44 s
[really-safe-money-gen] coverage (234/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(<=) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is reflexive for "valid (MultiAmount Currency)"'s (2 mutations)
116.54 s
[really-safe-money-gen] coverage (253/1610): Money\.MultiAmountSpec.add.is associative when both succeed (12 mutations)
116.54 s
[really-safe-money-gen] coverage (91/1610): Money\.ConversionRateSpec.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
116.60 s
[really-safe-money-gen] coverage (233/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(<) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (MultiAmount Currency)"'s (2 mutations)
116.80 s
[really-safe-money-gen] coverage (217/1610): Money\.AccountSpec.fraction.Produces a result that has been rounded in the right direction when using RoundDown (24 mutations)
116.97 s
[really-safe-money-gen] coverage (236/1610): Money\.MultiAmountSpec.Ord (MultiAmount Currency).(<=) \:\: (MultiAmount Currency) -> (MultiAmount Currency) -> Bool.is transitive for "valid (MultiAmount Currency)"'s (2 mutations)
117.01 s
[really-safe-money-gen] coverage (93/1610): Money\.ConversionRateSpec.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
117.03 s
[really-safe-money-gen] coverage (263/1610): Money\.AccountOfSpec.USD.sum.matches what you would get with Integer, if nothing fails (17 mutations)
117.23 s
[really-safe-money-gen] coverage (262/1610): Money\.AccountOfSpec.USD.sum.produces valid amounts (17 mutations)
117.29 s
[really-safe-money-gen] coverage (264/1610): Money\.AccountOfSpec.USD.Eq (AccountOf * USD).(/=) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (AccountOf * USD)"s (3 mutations)
117.45 s
[really-safe-money-gen] coverage (265/1610): Money\.AccountOfSpec.USD.Eq (AccountOf * USD).(/=) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is antireflexive for "valid (AccountOf * USD)"s (3 mutations)
117.74 s
[really-safe-money-gen] coverage (261/1610): Money\.MultiAmountSpec.lookupAmount.can find an added amount (4 mutations)
117.78 s
[really-safe-money-gen] coverage (267/1610): Money\.AccountOfSpec.USD.Eq (AccountOf * USD).(==) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is symmetric for "valid (AccountOf * USD)"s (3 mutations)
118.23 s
[really-safe-money-gen] coverage (269/1610): Money\.AccountOfSpec.USD.Eq (AccountOf * USD).(==) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (AccountOf * USD)"s (3 mutations)
118.27 s
[really-safe-money-gen] coverage (268/1610): Money\.AccountOfSpec.USD.Eq (AccountOf * USD).(==) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is transitive for "valid (AccountOf * USD)"s (3 mutations)
118.53 s
[really-safe-money-gen] coverage (266/1610): Money\.AccountOfSpec.USD.Eq (AccountOf * USD).(==) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is reflexive for "valid (AccountOf * USD)"s (3 mutations)
118.57 s
[really-safe-money-gen] coverage (208/1610): Money\.AccountSpec.multiply.has an identity\: 1 (15 mutations)
118.93 s
[really-safe-money-gen] coverage (271/1610): Money\.AccountOfSpec.USD.add.is associative when both succeed (16 mutations)
118.93 s
[really-safe-money-gen] coverage (273/1610): Money\.AccountOfSpec.USD.add.produces valid amounts (16 mutations)
119.00 s
[really-safe-money-gen] coverage (272/1610): Money\.AccountOfSpec.USD.add.matches what you would get with Integer, if nothing fails (16 mutations)
119.01 s
[really-safe-money-gen] coverage (270/1610): Money\.AccountOfSpec.USD.add.has a right-identity\: zero (17 mutations)
119.17 s
[really-safe-money-gen] coverage (276/1610): Money\.AccountOfSpec.USD.fromAmountOf.produces valid AccountOfs (1 mutations)
119.39 s
[really-safe-money-gen] coverage (277/1610): Money\.AccountOfSpec.USD.toMinimalQuantisations.produces valid accounts (3 mutations)
119.66 s
[really-safe-money-gen] coverage (278/1610): Money\.AccountOfSpec.USD.toDouble.produces valid Doubles when the quantisation factor is nonzero (3 mutations)
119.66 s
[really-safe-money-gen] coverage (260/1610): Money\.MultiAmountSpec.lookupAmount.produces valid amounts (2 mutations)
119.69 s
[really-safe-money-gen] coverage (280/1610): Money\.AccountOfSpec.USD.negate.produces valid amounts (1 mutations)
119.85 s
[really-safe-money-gen] coverage (283/1610): Money\.AccountOfSpec.USD.Show (AccountOf * USD) and Read (AccountOf * USD).are implemented such that read \. show == id for valid values (3 mutations)
119.96 s
[really-safe-money-gen] coverage (281/1610): Money\.AccountOfSpec.USD.USD.convert.produces valid amounts (17 mutations)
119.99 s
[really-safe-money-gen] coverage (274/1610): Money\.AccountOfSpec.USD.add.is commutative (16 mutations)
120.06 s
[really-safe-money-gen] coverage (284/1610): Money\.AccountOfSpec.USD.BTC.rate.produces valid amounts (11 mutations)
120.19 s
[really-safe-money-gen] coverage (285/1610): Money\.AccountOfSpec.USD.BTC.convert.produces valid amounts (17 mutations)
120.44 s
[really-safe-money-gen] coverage (288/1610): Money\.AccountOfSpec.USD.ADA.rate.produces valid amounts (11 mutations)
120.48 s
[really-safe-money-gen] coverage (286/1610): Money\.AccountOfSpec.USD.INR.rate.produces valid amounts (11 mutations)
120.53 s
[really-safe-money-gen] coverage (282/1610): Money\.AccountOfSpec.USD.USD.rate.produces valid amounts (11 mutations)
120.73 s
[really-safe-money-gen] coverage (287/1610): Money\.AccountOfSpec.USD.INR.convert.produces valid amounts (17 mutations)
120.79 s
[really-safe-money-gen] coverage (289/1610): Money\.AccountOfSpec.USD.ADA.convert.produces valid amounts (17 mutations)
120.85 s
[really-safe-money-gen] coverage (291/1610): Money\.AccountOfSpec.USD.CHF.rate.produces valid amounts (11 mutations)
121.20 s
[really-safe-money-gen] coverage (295/1610): Money\.AccountOfSpec.USD.fromMinimalQuantisations.roundtrips with toMinimalQuantisations (12 mutations)
121.23 s
[really-safe-money-gen] coverage (290/1610): Money\.AccountOfSpec.USD.CHF.convert.produces valid amounts (17 mutations)
121.81 s
[really-safe-money-gen] coverage (294/1610): Money\.AccountOfSpec.USD.fraction.Produces a result that can be multiplied back (28 mutations)
121.92 s
[really-safe-money-gen] coverage (293/1610): Money\.AccountOfSpec.USD.fraction.produces valid amounts (28 mutations)
122.18 s
[really-safe-money-gen] coverage (292/1610): Money\.AccountOfSpec.USD.abs.produces valid amounts (1 mutations)
122.50 s
[really-safe-money-gen] coverage (296/1610): Money\.AccountOfSpec.USD.fromMinimalQuantisations.produces valid accounts (10 mutations)
122.66 s
[really-safe-money-gen] coverage (275/1610): Money\.AccountOfSpec.USD.add.has a left-identity\: zero (17 mutations)
122.73 s
[really-safe-money-gen] coverage (297/1610): Money\.AccountOfSpec.USD.GenValid (AccountOf * USD).genValid \:\: Gen (AccountOf * USD).only generates valid '(AccountOf * USD)'s (1 mutations)
122.90 s
[really-safe-money-gen] coverage (279/1610): Money\.AccountOfSpec.USD.fromAmount.produces valid AccountOfs (1 mutations)
123.21 s
[really-safe-money-gen] coverage (302/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(>) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is transitive for "valid (AccountOf * USD)"'s (3 mutations)
123.21 s
[really-safe-money-gen] coverage (298/1610): Money\.AccountOfSpec.USD.fromDouble.produces valid rational (28 mutations)
123.28 s
[really-safe-money-gen] coverage (304/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(<) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is antireflexive for "valid (AccountOf * USD)"'s (3 mutations)
123.62 s
[really-safe-money-gen] coverage (311/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(<=) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (AccountOf * USD)"'s (3 mutations)
123.73 s
[really-safe-money-gen] coverage (307/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(>=) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is antisymmetric for "valid (AccountOf * USD)"'s (3 mutations)
123.79 s
[really-safe-money-gen] coverage (305/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(<) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (AccountOf * USD)"'s (3 mutations)
123.94 s
[really-safe-money-gen] coverage (313/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(<=) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is antisymmetric for "valid (AccountOf * USD)"'s (3 mutations)
124.03 s
[really-safe-money-gen] coverage (315/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD)."min \:\: (AccountOf * USD -> AccountOf * USD -> AccountOf * USD)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (AccountOf * USD)"'s (3 mutations)
124.08 s
[really-safe-money-gen] coverage (314/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(<=) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is transitive for "valid (AccountOf * USD)"'s (3 mutations)
124.15 s
[really-safe-money-gen] coverage (316/1610): Money\.AccountOfSpec.USD.distribute.produces results that sum up to the greater whole (45 mutations)
124.54 s
[really-safe-money-gen] coverage (318/1610): Money\.AccountOfSpec.USD.distribute.Eq (Distribution (AccountOf * USD)).(/=) \:\: (Distribution (AccountOf * USD)) -> (Distribution (AccountOf * USD)) -> Bool.is antireflexive for "valid (Distribution (AccountOf * USD))"s (3 mutations)
124.69 s
[really-safe-money-gen] coverage (319/1610): Money\.AccountOfSpec.USD.distribute.Eq (Distribution (AccountOf * USD)).(/=) \:\: (Distribution (AccountOf * USD)) -> (Distribution (AccountOf * USD)) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution (AccountOf * USD))"s (3 mutations)
124.84 s
[really-safe-money-gen] coverage (321/1610): Money\.AccountOfSpec.USD.distribute.Eq (Distribution (AccountOf * USD)).(==) \:\: (Distribution (AccountOf * USD)) -> (Distribution (AccountOf * USD)) -> Bool.is transitive for "valid (Distribution (AccountOf * USD))"s (3 mutations)
124.91 s
[really-safe-money-gen] coverage (320/1610): Money\.AccountOfSpec.USD.distribute.Eq (Distribution (AccountOf * USD)).(==) \:\: (Distribution (AccountOf * USD)) -> (Distribution (AccountOf * USD)) -> Bool.is reflexive for "valid (Distribution (AccountOf * USD))"s (3 mutations)
125.00 s
[really-safe-money-gen] coverage (322/1610): Money\.AccountOfSpec.USD.distribute.Eq (Distribution (AccountOf * USD)).(==) \:\: (Distribution (AccountOf * USD)) -> (Distribution (AccountOf * USD)) -> Bool.is symmetric for "valid (Distribution (AccountOf * USD))"s (3 mutations)
125.03 s
[really-safe-money-gen] coverage (324/1610): Money\.AccountOfSpec.USD.distribute.produces valid amounts (28 mutations)
125.19 s
[really-safe-money-gen] coverage (325/1610): Money\.AccountOfSpec.USD.format.produces valid strings (6 mutations)
125.67 s
[really-safe-money-gen] coverage (327/1610): Money\.AccountOfSpec.USD.fromRational.produces valid rational (19 mutations)
125.92 s
[really-safe-money-gen] coverage (326/1610): Money\.AccountOfSpec.USD.subtract.matches what you would get with Integer, if nothing fails (16 mutations)
125.98 s
[really-safe-money-gen] coverage (329/1610): Money\.AccountOfSpec.USD.multiply.is absorbed by 0 (15 mutations)
126.54 s
[really-safe-money-gen] coverage (330/1610): Money\.AccountOfSpec.USD.multiply.has an identity\: 1 (15 mutations)
126.57 s
[really-safe-money-gen] coverage (303/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(<) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is transitive for "valid (AccountOf * USD)"'s (3 mutations)
126.67 s
[really-safe-money-gen] coverage (331/1610): Money\.AccountOfSpec.USD.multiply.produces valid amounts (15 mutations)
126.97 s
[really-safe-money-gen] coverage (301/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(>) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is antireflexive for "valid (AccountOf * USD)"'s (3 mutations)
127.03 s
[really-safe-money-gen] coverage (333/1610): Money\.AccountOfSpec.USD.multiply.is distributive with add when both succeed (28 mutations)
127.42 s
[really-safe-money-gen] coverage (332/1610): Money\.AccountOfSpec.USD.multiply.matches what you would get with Integer, if nothing fails (15 mutations)
127.48 s
[really-safe-money-gen] coverage (308/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(>=) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is reflexive for "valid (AccountOf * USD)"'s (3 mutations)
127.51 s
[really-safe-money-gen] coverage (312/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(<=) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is reflexive for "valid (AccountOf * USD)"'s (3 mutations)
127.59 s
[really-safe-money-gen] coverage (334/1610): Money\.AccountOfSpec.USD.toRational.produces valid Rationals when the quantisation factor is nonzero (3 mutations)
128.01 s
[really-safe-money-gen] coverage (300/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(>) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (AccountOf * USD)"'s (3 mutations)
128.03 s
[really-safe-money-gen] coverage (317/1610): Money\.AccountOfSpec.USD.distribute.Show (Distribution (AccountOf * USD)) and Read (Distribution (AccountOf * USD)).are implemented such that read \. show == id for valid values (3 mutations)
128.03 s
[really-safe-money-gen] coverage (328/1610): Money\.AccountOfSpec.USD.fromRational.roundtrips with toRational (23 mutations)
128.05 s
[really-safe-money-gen] coverage (310/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD)."max \:\: (AccountOf * USD -> AccountOf * USD -> AccountOf * USD)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (AccountOf * USD)"'s (3 mutations)
128.15 s
[really-safe-money-gen] coverage (323/1610): Money\.AccountOfSpec.USD.distribute.Eq (Distribution (AccountOf * USD)).(==) \:\: (Distribution (AccountOf * USD)) -> (Distribution (AccountOf * USD)) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution (AccountOf * USD))"s (3 mutations)
128.15 s
[really-safe-money-gen] coverage (309/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(>=) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is transitive for "valid (AccountOf * USD)"'s (3 mutations)
128.21 s
[really-safe-money-gen] coverage (306/1610): Money\.AccountOfSpec.USD.Ord (AccountOf * USD).(>=) \:\: (AccountOf * USD) -> (AccountOf * USD) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (AccountOf * USD)"'s (3 mutations)
128.62 s
[really-safe-money-gen] coverage (335/1610): Money\.AccountOfSpec.INR.fromAmount.produces valid AccountOfs (1 mutations)
128.72 s
[really-safe-money-gen] coverage (339/1610): Money\.AccountOfSpec.INR.abs.produces valid amounts (1 mutations)
128.72 s
[really-safe-money-gen] coverage (340/1610): Money\.AccountOfSpec.INR.add.produces valid amounts (16 mutations)
128.85 s
[really-safe-money-gen] coverage (342/1610): Money\.AccountOfSpec.INR.add.has a left-identity\: zero (17 mutations)
128.88 s
[really-safe-money-gen] coverage (344/1610): Money\.AccountOfSpec.INR.add.has a right-identity\: zero (17 mutations)
128.95 s
[really-safe-money-gen] coverage (343/1610): Money\.AccountOfSpec.INR.add.is commutative (16 mutations)
129.03 s
[really-safe-money-gen] coverage (345/1610): Money\.AccountOfSpec.INR.add.matches what you would get with Integer, if nothing fails (16 mutations)
129.49 s
[really-safe-money-gen] coverage (346/1610): Money\.AccountOfSpec.INR.subtract.matches what you would get with Integer, if nothing fails (16 mutations)
129.58 s
[really-safe-money-gen] coverage (347/1610): Money\.AccountOfSpec.INR.fraction.produces valid amounts (28 mutations)
129.79 s
[really-safe-money-gen] coverage (348/1610): Money\.AccountOfSpec.INR.fraction.Produces a result that can be multiplied back (28 mutations)
130.10 s
[really-safe-money-gen] coverage (349/1610): Money\.AccountOfSpec.INR.distribute.produces results that sum up to the greater whole (45 mutations)
130.14 s
[really-safe-money-gen] coverage (350/1610): Money\.AccountOfSpec.INR.distribute.Eq (Distribution (AccountOf * INR)).(/=) \:\: (Distribution (AccountOf * INR)) -> (Distribution (AccountOf * INR)) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution (AccountOf * INR))"s (3 mutations)
130.25 s
[really-safe-money-gen] coverage (351/1610): Money\.AccountOfSpec.INR.distribute.Eq (Distribution (AccountOf * INR)).(/=) \:\: (Distribution (AccountOf * INR)) -> (Distribution (AccountOf * INR)) -> Bool.is antireflexive for "valid (Distribution (AccountOf * INR))"s (3 mutations)
130.47 s
[really-safe-money-gen] coverage (353/1610): Money\.AccountOfSpec.INR.distribute.Eq (Distribution (AccountOf * INR)).(==) \:\: (Distribution (AccountOf * INR)) -> (Distribution (AccountOf * INR)) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution (AccountOf * INR))"s (3 mutations)
130.50 s
[really-safe-money-gen] coverage (352/1610): Money\.AccountOfSpec.INR.distribute.Eq (Distribution (AccountOf * INR)).(==) \:\: (Distribution (AccountOf * INR)) -> (Distribution (AccountOf * INR)) -> Bool.is transitive for "valid (Distribution (AccountOf * INR))"s (3 mutations)
130.76 s
[really-safe-money-gen] coverage (354/1610): Money\.AccountOfSpec.INR.distribute.Eq (Distribution (AccountOf * INR)).(==) \:\: (Distribution (AccountOf * INR)) -> (Distribution (AccountOf * INR)) -> Bool.is reflexive for "valid (Distribution (AccountOf * INR))"s (3 mutations)
130.94 s
[really-safe-money-gen] coverage (338/1610): Money\.AccountOfSpec.INR.GenValid (AccountOf * INR).genValid \:\: Gen (AccountOf * INR).only generates valid '(AccountOf * INR)'s (1 mutations)
130.95 s
[really-safe-money-gen] coverage (336/1610): Money\.AccountOfSpec.INR.USD.convert.produces valid amounts (17 mutations)
131.00 s
[really-safe-money-gen] coverage (337/1610): Money\.AccountOfSpec.INR.USD.rate.produces valid amounts (11 mutations)
131.26 s
[really-safe-money-gen] coverage (355/1610): Money\.AccountOfSpec.INR.distribute.Eq (Distribution (AccountOf * INR)).(==) \:\: (Distribution (AccountOf * INR)) -> (Distribution (AccountOf * INR)) -> Bool.is symmetric for "valid (Distribution (AccountOf * INR))"s (3 mutations)
131.31 s
[really-safe-money-gen] coverage (341/1610): Money\.AccountOfSpec.INR.add.is associative when both succeed (16 mutations)
131.32 s
[really-safe-money-gen] coverage (299/1610): Money\.AccountOfSpec.USD.fromDouble.roundtrips with toDouble (30 mutations)
131.33 s
[really-safe-money-gen] coverage (357/1610): Money\.AccountOfSpec.INR.distribute.produces valid amounts (28 mutations)
131.36 s
[really-safe-money-gen] coverage (358/1610): Money\.AccountOfSpec.INR.fromAmountOf.produces valid AccountOfs (1 mutations)
131.47 s
[really-safe-money-gen] coverage (359/1610): Money\.AccountOfSpec.INR.sum.matches what you would get with Integer, if nothing fails (17 mutations)
131.60 s
[really-safe-money-gen] coverage (360/1610): Money\.AccountOfSpec.INR.sum.produces valid amounts (17 mutations)
131.99 s
[really-safe-money-gen] coverage (361/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR)."min \:\: (AccountOf * INR -> AccountOf * INR -> AccountOf * INR)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (AccountOf * INR)"'s (3 mutations)
132.15 s
[really-safe-money-gen] coverage (356/1610): Money\.AccountOfSpec.INR.distribute.Show (Distribution (AccountOf * INR)) and Read (Distribution (AccountOf * INR)).are implemented such that read \. show == id for valid values (3 mutations)
132.20 s
[really-safe-money-gen] coverage (362/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(>=) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is antisymmetric for "valid (AccountOf * INR)"'s (3 mutations)
132.22 s
[really-safe-money-gen] coverage (365/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(>=) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is transitive for "valid (AccountOf * INR)"'s (3 mutations)
132.25 s
[really-safe-money-gen] coverage (366/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(<) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is transitive for "valid (AccountOf * INR)"'s (3 mutations)
132.29 s
[really-safe-money-gen] coverage (367/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(<) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is antireflexive for "valid (AccountOf * INR)"'s (3 mutations)
132.50 s
[really-safe-money-gen] coverage (368/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(<) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (AccountOf * INR)"'s (3 mutations)
132.99 s
[really-safe-money-gen] coverage (369/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR)."max \:\: (AccountOf * INR -> AccountOf * INR -> AccountOf * INR)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (AccountOf * INR)"'s (3 mutations)
133.00 s
[really-safe-money-gen] coverage (370/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(>) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is transitive for "valid (AccountOf * INR)"'s (3 mutations)
133.26 s
[really-safe-money-gen] coverage (371/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(>) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (AccountOf * INR)"'s (3 mutations)
133.69 s
[really-safe-money-gen] coverage (372/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(>) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is antireflexive for "valid (AccountOf * INR)"'s (3 mutations)
133.71 s
[really-safe-money-gen] coverage (374/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(<=) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is transitive for "valid (AccountOf * INR)"'s (3 mutations)
133.81 s
[really-safe-money-gen] coverage (373/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(<=) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is reflexive for "valid (AccountOf * INR)"'s (3 mutations)
134.03 s
[really-safe-money-gen] coverage (364/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(>=) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is reflexive for "valid (AccountOf * INR)"'s (3 mutations)
134.04 s
[really-safe-money-gen] coverage (375/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(<=) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is antisymmetric for "valid (AccountOf * INR)"'s (3 mutations)
134.31 s
[really-safe-money-gen] coverage (376/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(<=) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (AccountOf * INR)"'s (3 mutations)
134.43 s
[really-safe-money-gen] coverage (378/1610): Money\.AccountOfSpec.INR.CHF.convert.produces valid amounts (17 mutations)
134.49 s
[really-safe-money-gen] coverage (377/1610): Money\.AccountOfSpec.INR.CHF.rate.produces valid amounts (11 mutations)
134.59 s
[really-safe-money-gen] coverage (379/1610): Money\.AccountOfSpec.INR.multiply.is distributive with add when both succeed (28 mutations)
134.70 s
[really-safe-money-gen] coverage (381/1610): Money\.AccountOfSpec.INR.multiply.is absorbed by 0 (15 mutations)
134.70 s
[really-safe-money-gen] coverage (380/1610): Money\.AccountOfSpec.INR.multiply.matches what you would get with Integer, if nothing fails (15 mutations)
134.80 s
[really-safe-money-gen] coverage (363/1610): Money\.AccountOfSpec.INR.Ord (AccountOf * INR).(>=) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (AccountOf * INR)"'s (3 mutations)
134.90 s
[really-safe-money-gen] coverage (385/1610): Money\.AccountOfSpec.INR.Show (AccountOf * INR) and Read (AccountOf * INR).are implemented such that read \. show == id for valid values (3 mutations)
134.91 s
[really-safe-money-gen] coverage (382/1610): Money\.AccountOfSpec.INR.multiply.produces valid amounts (15 mutations)
134.94 s
[really-safe-money-gen] coverage (387/1610): Money\.AccountOfSpec.INR.fromMinimalQuantisations.produces valid accounts (10 mutations)
135.08 s
[really-safe-money-gen] coverage (388/1610): Money\.AccountOfSpec.INR.fromRational.produces valid rational (19 mutations)
135.45 s
[really-safe-money-gen] coverage (391/1610): Money\.AccountOfSpec.INR.BTC.rate.produces valid amounts (11 mutations)
135.51 s
[really-safe-money-gen] coverage (389/1610): Money\.AccountOfSpec.INR.fromRational.roundtrips with toRational (23 mutations)
135.58 s
[really-safe-money-gen] coverage (390/1610): Money\.AccountOfSpec.INR.toDouble.produces valid Doubles when the quantisation factor is nonzero (3 mutations)
135.66 s
[really-safe-money-gen] coverage (394/1610): Money\.AccountOfSpec.INR.fromDouble.roundtrips with toDouble (30 mutations)
135.71 s
[really-safe-money-gen] coverage (392/1610): Money\.AccountOfSpec.INR.BTC.convert.produces valid amounts (17 mutations)
135.73 s
[really-safe-money-gen] coverage (393/1610): Money\.AccountOfSpec.INR.toRational.produces valid Rationals when the quantisation factor is nonzero (3 mutations)
135.92 s
[really-safe-money-gen] coverage (395/1610): Money\.AccountOfSpec.INR.fromDouble.produces valid rational (28 mutations)
136.30 s
[really-safe-money-gen] coverage (397/1610): Money\.AccountOfSpec.INR.ADA.rate.produces valid amounts (11 mutations)
136.31 s
[really-safe-money-gen] coverage (396/1610): Money\.AccountOfSpec.INR.ADA.convert.produces valid amounts (17 mutations)
136.66 s
[really-safe-money-gen] coverage (398/1610): Money\.AccountOfSpec.INR.format.produces valid strings (6 mutations)
137.01 s
[really-safe-money-gen] coverage (399/1610): Money\.AccountOfSpec.INR.toMinimalQuantisations.produces valid accounts (3 mutations)
137.05 s
[really-safe-money-gen] coverage (400/1610): Money\.AccountOfSpec.INR.Eq (AccountOf * INR).(/=) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (AccountOf * INR)"s (3 mutations)
137.19 s
[really-safe-money-gen] coverage (401/1610): Money\.AccountOfSpec.INR.Eq (AccountOf * INR).(/=) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is antireflexive for "valid (AccountOf * INR)"s (3 mutations)
137.49 s
[really-safe-money-gen] coverage (386/1610): Money\.AccountOfSpec.INR.fromMinimalQuantisations.roundtrips with toMinimalQuantisations (12 mutations)
137.49 s
[really-safe-money-gen] coverage (406/1610): Money\.AccountOfSpec.INR.INR.convert.produces valid amounts (17 mutations)
137.55 s
[really-safe-money-gen] coverage (402/1610): Money\.AccountOfSpec.INR.Eq (AccountOf * INR).(==) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is reflexive for "valid (AccountOf * INR)"s (3 mutations)
137.81 s
[really-safe-money-gen] coverage (405/1610): Money\.AccountOfSpec.INR.Eq (AccountOf * INR).(==) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (AccountOf * INR)"s (3 mutations)
137.87 s
[really-safe-money-gen] coverage (404/1610): Money\.AccountOfSpec.INR.Eq (AccountOf * INR).(==) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is transitive for "valid (AccountOf * INR)"s (3 mutations)
138.03 s
[really-safe-money-gen] coverage (407/1610): Money\.AccountOfSpec.INR.INR.rate.produces valid amounts (11 mutations)
138.10 s
[really-safe-money-gen] coverage (408/1610): Money\.AccountOfSpec.CHF.fromAmount.produces valid AccountOfs (1 mutations)
138.23 s
[really-safe-money-gen] coverage (403/1610): Money\.AccountOfSpec.INR.Eq (AccountOf * INR).(==) \:\: (AccountOf * INR) -> (AccountOf * INR) -> Bool.is symmetric for "valid (AccountOf * INR)"s (3 mutations)
138.31 s
[really-safe-money-gen] coverage (412/1610): Money\.AccountOfSpec.CHF.multiply.is absorbed by 0 (15 mutations)
138.35 s
[really-safe-money-gen] coverage (409/1610): Money\.AccountOfSpec.CHF.fromMinimalQuantisations.roundtrips with toMinimalQuantisations (12 mutations)
138.39 s
[really-safe-money-gen] coverage (411/1610): Money\.AccountOfSpec.CHF.multiply.produces valid amounts (15 mutations)
138.40 s
[really-safe-money-gen] coverage (410/1610): Money\.AccountOfSpec.CHF.fromMinimalQuantisations.produces valid accounts (10 mutations)
138.61 s
[really-safe-money-gen] coverage (413/1610): Money\.AccountOfSpec.CHF.multiply.is distributive with add when both succeed (28 mutations)
138.63 s
[really-safe-money-gen] coverage (414/1610): Money\.AccountOfSpec.CHF.multiply.matches what you would get with Integer, if nothing fails (15 mutations)
138.68 s
[really-safe-money-gen] coverage (184/1610): Money\.AccountSpec.DecimalLiteral.Account\.toDecimalLiteral.produces valid decimal literals (32 mutations)
138.92 s
[really-safe-money-gen] coverage (415/1610): Money\.AccountOfSpec.CHF.multiply.has an identity\: 1 (15 mutations)
138.99 s
[really-safe-money-gen] coverage (416/1610): Money\.AccountOfSpec.CHF.distribute.produces valid amounts (28 mutations)
139.13 s
[really-safe-money-gen] coverage (418/1610): Money\.AccountOfSpec.CHF.distribute.Eq (Distribution (AccountOf * CHF)).(/=) \:\: (Distribution (AccountOf * CHF)) -> (Distribution (AccountOf * CHF)) -> Bool.is antireflexive for "valid (Distribution (AccountOf * CHF))"s (3 mutations)
139.16 s
[really-safe-money-gen] coverage (417/1610): Money\.AccountOfSpec.CHF.distribute.produces results that sum up to the greater whole (45 mutations)
139.26 s
[really-safe-money-gen] coverage (419/1610): Money\.AccountOfSpec.CHF.distribute.Eq (Distribution (AccountOf * CHF)).(/=) \:\: (Distribution (AccountOf * CHF)) -> (Distribution (AccountOf * CHF)) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution (AccountOf * CHF))"s (3 mutations)
139.39 s
[really-safe-money-gen] coverage (420/1610): Money\.AccountOfSpec.CHF.distribute.Eq (Distribution (AccountOf * CHF)).(==) \:\: (Distribution (AccountOf * CHF)) -> (Distribution (AccountOf * CHF)) -> Bool.is reflexive for "valid (Distribution (AccountOf * CHF))"s (3 mutations)
139.66 s
[really-safe-money-gen] coverage (422/1610): Money\.AccountOfSpec.CHF.distribute.Eq (Distribution (AccountOf * CHF)).(==) \:\: (Distribution (AccountOf * CHF)) -> (Distribution (AccountOf * CHF)) -> Bool.is symmetric for "valid (Distribution (AccountOf * CHF))"s (3 mutations)
139.78 s
[really-safe-money-gen] coverage (421/1610): Money\.AccountOfSpec.CHF.distribute.Eq (Distribution (AccountOf * CHF)).(==) \:\: (Distribution (AccountOf * CHF)) -> (Distribution (AccountOf * CHF)) -> Bool.is transitive for "valid (Distribution (AccountOf * CHF))"s (3 mutations)
139.99 s
[really-safe-money-gen] coverage (423/1610): Money\.AccountOfSpec.CHF.distribute.Eq (Distribution (AccountOf * CHF)).(==) \:\: (Distribution (AccountOf * CHF)) -> (Distribution (AccountOf * CHF)) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution (AccountOf * CHF))"s (3 mutations)
140.38 s
[really-safe-money-gen] coverage (425/1610): Money\.AccountOfSpec.CHF.sum.matches what you would get with Integer, if nothing fails (17 mutations)
140.43 s
[really-safe-money-gen] coverage (424/1610): Money\.AccountOfSpec.CHF.distribute.Show (Distribution (AccountOf * CHF)) and Read (Distribution (AccountOf * CHF)).are implemented such that read \. show == id for valid values (3 mutations)
140.56 s
[really-safe-money-gen] coverage (426/1610): Money\.AccountOfSpec.CHF.sum.produces valid amounts (17 mutations)
140.78 s
[really-safe-money-gen] coverage (427/1610): Money\.AccountOfSpec.CHF.Show (AccountOf * CHF) and Read (AccountOf * CHF).are implemented such that read \. show == id for valid values (3 mutations)
140.81 s
[really-safe-money-gen] coverage (429/1610): Money\.AccountOfSpec.CHF.USD.rate.produces valid amounts (11 mutations)
140.85 s
[really-safe-money-gen] coverage (430/1610): Money\.AccountOfSpec.CHF.USD.convert.produces valid amounts (17 mutations)
140.90 s
[really-safe-money-gen] coverage (428/1610): Money\.AccountOfSpec.CHF.abs.produces valid amounts (1 mutations)
141.08 s
[really-safe-money-gen] coverage (384/1610): Money\.AccountOfSpec.INR.negate.produces valid amounts (1 mutations)
141.23 s
[really-safe-money-gen] coverage (432/1610): Money\.AccountOfSpec.CHF.BTC.rate.produces valid amounts (11 mutations)
141.23 s
[really-safe-money-gen] coverage (431/1610): Money\.AccountOfSpec.CHF.BTC.convert.produces valid amounts (17 mutations)
141.27 s
[really-safe-money-gen] coverage (433/1610): Money\.AccountOfSpec.CHF.toMinimalQuantisations.produces valid accounts (3 mutations)
141.47 s
[really-safe-money-gen] coverage (434/1610): Money\.AccountOfSpec.CHF.fraction.Produces a result that can be multiplied back (28 mutations)
141.50 s
[really-safe-money-gen] coverage (436/1610): Money\.AccountOfSpec.CHF.Eq (AccountOf * CHF).(==) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (AccountOf * CHF)"s (3 mutations)
141.55 s
[really-safe-money-gen] coverage (437/1610): Money\.AccountOfSpec.CHF.Eq (AccountOf * CHF).(==) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is transitive for "valid (AccountOf * CHF)"s (3 mutations)
141.63 s
[really-safe-money-gen] coverage (435/1610): Money\.AccountOfSpec.CHF.fraction.produces valid amounts (28 mutations)
141.74 s
[really-safe-money-gen] coverage (438/1610): Money\.AccountOfSpec.CHF.Eq (AccountOf * CHF).(==) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is reflexive for "valid (AccountOf * CHF)"s (3 mutations)
141.87 s
[really-safe-money-gen] coverage (440/1610): Money\.AccountOfSpec.CHF.Eq (AccountOf * CHF).(/=) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (AccountOf * CHF)"s (3 mutations)
141.87 s
[really-safe-money-gen] coverage (439/1610): Money\.AccountOfSpec.CHF.Eq (AccountOf * CHF).(==) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is symmetric for "valid (AccountOf * CHF)"s (3 mutations)
142.15 s
[really-safe-money-gen] coverage (442/1610): Money\.AccountOfSpec.CHF.toDouble.produces valid Doubles when the quantisation factor is nonzero (3 mutations)
142.19 s
[really-safe-money-gen] coverage (441/1610): Money\.AccountOfSpec.CHF.Eq (AccountOf * CHF).(/=) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is antireflexive for "valid (AccountOf * CHF)"s (3 mutations)
142.28 s
[really-safe-money-gen] coverage (445/1610): Money\.AccountOfSpec.CHF.toRational.produces valid Rationals when the quantisation factor is nonzero (3 mutations)
142.33 s
[really-safe-money-gen] coverage (443/1610): Money\.AccountOfSpec.CHF.fromAmountOf.produces valid AccountOfs (1 mutations)
142.42 s
[really-safe-money-gen] coverage (444/1610): Money\.AccountOfSpec.CHF.negate.produces valid amounts (1 mutations)
142.51 s
[really-safe-money-gen] coverage (447/1610): Money\.AccountOfSpec.CHF.fromRational.produces valid rational (19 mutations)
142.88 s
[really-safe-money-gen] coverage (448/1610): Money\.AccountOfSpec.CHF.fromRational.roundtrips with toRational (23 mutations)
142.99 s
[really-safe-money-gen] coverage (446/1610): Money\.AccountOfSpec.CHF.format.produces valid strings (6 mutations)
143.18 s
[really-safe-money-gen] coverage (449/1610): Money\.AccountOfSpec.CHF.fromDouble.produces valid rational (28 mutations)
143.55 s
[really-safe-money-gen] coverage (451/1610): Money\.AccountOfSpec.CHF.ADA.convert.produces valid amounts (17 mutations)
143.62 s
[really-safe-money-gen] coverage (450/1610): Money\.AccountOfSpec.CHF.fromDouble.roundtrips with toDouble (30 mutations)
143.72 s
[really-safe-money-gen] coverage (452/1610): Money\.AccountOfSpec.CHF.ADA.rate.produces valid amounts (11 mutations)
143.87 s
[really-safe-money-gen] coverage (453/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF)."min \:\: (AccountOf * CHF -> AccountOf * CHF -> AccountOf * CHF)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (AccountOf * CHF)"'s (3 mutations)
143.91 s
[really-safe-money-gen] coverage (454/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(<) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (AccountOf * CHF)"'s (3 mutations)
143.97 s
[really-safe-money-gen] coverage (455/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(<) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is transitive for "valid (AccountOf * CHF)"'s (3 mutations)
144.04 s
[really-safe-money-gen] coverage (456/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(<) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is antireflexive for "valid (AccountOf * CHF)"'s (3 mutations)
144.19 s
[really-safe-money-gen] coverage (458/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(<=) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is antisymmetric for "valid (AccountOf * CHF)"'s (3 mutations)
144.23 s
[really-safe-money-gen] coverage (459/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(<=) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is transitive for "valid (AccountOf * CHF)"'s (3 mutations)
144.34 s
[really-safe-money-gen] coverage (460/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(<=) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is reflexive for "valid (AccountOf * CHF)"'s (3 mutations)
144.38 s
[really-safe-money-gen] coverage (457/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(<=) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (AccountOf * CHF)"'s (3 mutations)
144.55 s
[really-safe-money-gen] coverage (461/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF)."max \:\: (AccountOf * CHF -> AccountOf * CHF -> AccountOf * CHF)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (AccountOf * CHF)"'s (3 mutations)
144.56 s
[really-safe-money-gen] coverage (462/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(>) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (AccountOf * CHF)"'s (3 mutations)
144.60 s
[really-safe-money-gen] coverage (463/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(>) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is antireflexive for "valid (AccountOf * CHF)"'s (3 mutations)
144.65 s
[really-safe-money-gen] coverage (464/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(>) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is transitive for "valid (AccountOf * CHF)"'s (3 mutations)
144.75 s
[really-safe-money-gen] coverage (465/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(>=) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (AccountOf * CHF)"'s (3 mutations)
144.88 s
[really-safe-money-gen] coverage (466/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(>=) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is reflexive for "valid (AccountOf * CHF)"'s (3 mutations)
145.00 s
[really-safe-money-gen] coverage (467/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(>=) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is antisymmetric for "valid (AccountOf * CHF)"'s (3 mutations)
145.10 s
[really-safe-money-gen] coverage (469/1610): Money\.AccountOfSpec.CHF.GenValid (AccountOf * CHF).genValid \:\: Gen (AccountOf * CHF).only generates valid '(AccountOf * CHF)'s (1 mutations)
145.19 s
[really-safe-money-gen] coverage (468/1610): Money\.AccountOfSpec.CHF.Ord (AccountOf * CHF).(>=) \:\: (AccountOf * CHF) -> (AccountOf * CHF) -> Bool.is transitive for "valid (AccountOf * CHF)"'s (3 mutations)
145.22 s
[really-safe-money-gen] coverage (470/1610): Money\.AccountOfSpec.CHF.subtract.matches what you would get with Integer, if nothing fails (16 mutations)
145.26 s
[really-safe-money-gen] coverage (471/1610): Money\.AccountOfSpec.CHF.CHF.rate.produces valid amounts (11 mutations)
145.42 s
[really-safe-money-gen] coverage (473/1610): Money\.AccountOfSpec.CHF.add.is associative when both succeed (16 mutations)
145.57 s
[really-safe-money-gen] coverage (475/1610): Money\.AccountOfSpec.CHF.add.matches what you would get with Integer, if nothing fails (16 mutations)
145.75 s
[really-safe-money-gen] coverage (183/1610): Money\.AccountSpec.DecimalLiteral.Account\.toDecimalLiteral.roundtrips with Account\.fromDecimalLiteral (55 mutations)
145.81 s
[really-safe-money-gen] coverage (472/1610): Money\.AccountOfSpec.CHF.CHF.convert.produces valid amounts (17 mutations)
145.91 s
[really-safe-money-gen] coverage (477/1610): Money\.AccountOfSpec.CHF.add.is commutative (16 mutations)
146.07 s
[really-safe-money-gen] coverage (476/1610): Money\.AccountOfSpec.CHF.add.has a right-identity\: zero (17 mutations)
146.57 s
[really-safe-money-gen] coverage (478/1610): Money\.AccountOfSpec.CHF.add.produces valid amounts (16 mutations)
146.68 s
[really-safe-money-gen] coverage (479/1610): Money\.AccountOfSpec.CHF.INR.convert.produces valid amounts (17 mutations)
146.93 s
[really-safe-money-gen] coverage (480/1610): Money\.AccountOfSpec.CHF.INR.rate.produces valid amounts (11 mutations)
147.00 s
[really-safe-money-gen] coverage (481/1610): Money\.AccountOfSpec.ADA.fromMinimalQuantisations.produces valid accounts (10 mutations)
147.08 s
[really-safe-money-gen] coverage (482/1610): Money\.AccountOfSpec.ADA.fromMinimalQuantisations.roundtrips with toMinimalQuantisations (12 mutations)
147.33 s
[really-safe-money-gen] coverage (484/1610): Money\.AccountOfSpec.ADA.fromDouble.roundtrips with toDouble (30 mutations)
147.44 s
[really-safe-money-gen] coverage (486/1610): Money\.AccountOfSpec.ADA.fromRational.roundtrips with toRational (23 mutations)
147.49 s
[really-safe-money-gen] coverage (483/1610): Money\.AccountOfSpec.ADA.fromDouble.produces valid rational (28 mutations)
147.60 s
[really-safe-money-gen] coverage (485/1610): Money\.AccountOfSpec.ADA.fromRational.produces valid rational (19 mutations)
147.69 s
[really-safe-money-gen] coverage (488/1610): Money\.AccountOfSpec.ADA.fraction.Produces a result that can be multiplied back (28 mutations)
147.88 s
[really-safe-money-gen] coverage (487/1610): Money\.AccountOfSpec.ADA.Show (AccountOf * ADA) and Read (AccountOf * ADA).are implemented such that read \. show == id for valid values (3 mutations)
148.15 s
[really-safe-money-gen] coverage (490/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(<=) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is antisymmetric for "valid (AccountOf * ADA)"'s (3 mutations)
148.17 s
[really-safe-money-gen] coverage (489/1610): Money\.AccountOfSpec.ADA.fraction.produces valid amounts (28 mutations)
148.38 s
[really-safe-money-gen] coverage (492/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(<=) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is transitive for "valid (AccountOf * ADA)"'s (3 mutations)
148.45 s
[really-safe-money-gen] coverage (491/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(<=) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is reflexive for "valid (AccountOf * ADA)"'s (3 mutations)
148.54 s
[really-safe-money-gen] coverage (474/1610): Money\.AccountOfSpec.CHF.add.has a left-identity\: zero (17 mutations)
148.56 s
[really-safe-money-gen] coverage (494/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(>=) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is antisymmetric for "valid (AccountOf * ADA)"'s (3 mutations)
149.08 s
[really-safe-money-gen] coverage (493/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(<=) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (AccountOf * ADA)"'s (3 mutations)
149.22 s
[really-safe-money-gen] coverage (496/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(>=) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is transitive for "valid (AccountOf * ADA)"'s (3 mutations)
149.24 s
[really-safe-money-gen] coverage (495/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(>=) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (AccountOf * ADA)"'s (3 mutations)
149.24 s
[really-safe-money-gen] coverage (497/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(>=) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is reflexive for "valid (AccountOf * ADA)"'s (3 mutations)
149.41 s
[really-safe-money-gen] coverage (498/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA)."min \:\: (AccountOf * ADA -> AccountOf * ADA -> AccountOf * ADA)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (AccountOf * ADA)"'s (3 mutations)
149.42 s
[really-safe-money-gen] coverage (499/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(>) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is antireflexive for "valid (AccountOf * ADA)"'s (3 mutations)
149.71 s
[really-safe-money-gen] coverage (500/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(>) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is transitive for "valid (AccountOf * ADA)"'s (3 mutations)
149.98 s
[really-safe-money-gen] coverage (503/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(<) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (AccountOf * ADA)"'s (3 mutations)
149.98 s
[really-safe-money-gen] coverage (501/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(>) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (AccountOf * ADA)"'s (3 mutations)
150.03 s
[really-safe-money-gen] coverage (502/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA)."max \:\: (AccountOf * ADA -> AccountOf * ADA -> AccountOf * ADA)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (AccountOf * ADA)"'s (3 mutations)
150.40 s
[really-safe-money-gen] coverage (504/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(<) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is transitive for "valid (AccountOf * ADA)"'s (3 mutations)
150.62 s
[really-safe-money-gen] coverage (505/1610): Money\.AccountOfSpec.ADA.Ord (AccountOf * ADA).(<) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is antireflexive for "valid (AccountOf * ADA)"'s (3 mutations)
150.97 s
[really-safe-money-gen] coverage (506/1610): Money\.AccountOfSpec.ADA.fromAmountOf.produces valid AccountOfs (1 mutations)
151.21 s
[really-safe-money-gen] coverage (507/1610): Money\.AccountOfSpec.ADA.toRational.produces valid Rationals when the quantisation factor is nonzero (3 mutations)
151.35 s
[really-safe-money-gen] coverage (510/1610): Money\.AccountOfSpec.ADA.distribute.Eq (Distribution (AccountOf * ADA)).(==) \:\: (Distribution (AccountOf * ADA)) -> (Distribution (AccountOf * ADA)) -> Bool.is symmetric for "valid (Distribution (AccountOf * ADA))"s (3 mutations)
151.43 s
[really-safe-money-gen] coverage (508/1610): Money\.AccountOfSpec.ADA.distribute.Eq (Distribution (AccountOf * ADA)).(==) \:\: (Distribution (AccountOf * ADA)) -> (Distribution (AccountOf * ADA)) -> Bool.is reflexive for "valid (Distribution (AccountOf * ADA))"s (3 mutations)
151.51 s
[really-safe-money-gen] coverage (513/1610): Money\.AccountOfSpec.ADA.distribute.Eq (Distribution (AccountOf * ADA)).(/=) \:\: (Distribution (AccountOf * ADA)) -> (Distribution (AccountOf * ADA)) -> Bool.is antireflexive for "valid (Distribution (AccountOf * ADA))"s (3 mutations)
151.51 s
[really-safe-money-gen] coverage (511/1610): Money\.AccountOfSpec.ADA.distribute.Eq (Distribution (AccountOf * ADA)).(==) \:\: (Distribution (AccountOf * ADA)) -> (Distribution (AccountOf * ADA)) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution (AccountOf * ADA))"s (3 mutations)
151.53 s
[really-safe-money-gen] coverage (512/1610): Money\.AccountOfSpec.ADA.distribute.Eq (Distribution (AccountOf * ADA)).(/=) \:\: (Distribution (AccountOf * ADA)) -> (Distribution (AccountOf * ADA)) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution (AccountOf * ADA))"s (3 mutations)
151.54 s
[really-safe-money-gen] coverage (509/1610): Money\.AccountOfSpec.ADA.distribute.Eq (Distribution (AccountOf * ADA)).(==) \:\: (Distribution (AccountOf * ADA)) -> (Distribution (AccountOf * ADA)) -> Bool.is transitive for "valid (Distribution (AccountOf * ADA))"s (3 mutations)
151.58 s
[really-safe-money-gen] coverage (515/1610): Money\.AccountOfSpec.ADA.distribute.produces valid amounts (28 mutations)
151.62 s
[really-safe-money-gen] coverage (514/1610): Money\.AccountOfSpec.ADA.distribute.Show (Distribution (AccountOf * ADA)) and Read (Distribution (AccountOf * ADA)).are implemented such that read \. show == id for valid values (3 mutations)
151.97 s
[really-safe-money-gen] coverage (517/1610): Money\.AccountOfSpec.ADA.toDouble.produces valid Doubles when the quantisation factor is nonzero (3 mutations)
151.98 s
[really-safe-money-gen] coverage (516/1610): Money\.AccountOfSpec.ADA.distribute.produces results that sum up to the greater whole (45 mutations)
152.42 s
[really-safe-money-gen] coverage (520/1610): Money\.AccountOfSpec.ADA.Eq (AccountOf * ADA).(==) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is reflexive for "valid (AccountOf * ADA)"s (3 mutations)
152.43 s
[really-safe-money-gen] coverage (518/1610): Money\.AccountOfSpec.ADA.Eq (AccountOf * ADA).(/=) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is antireflexive for "valid (AccountOf * ADA)"s (3 mutations)
152.57 s
[really-safe-money-gen] coverage (383/1610): Money\.AccountOfSpec.INR.multiply.has an identity\: 1 (15 mutations)
152.60 s
[really-safe-money-gen] coverage (519/1610): Money\.AccountOfSpec.ADA.Eq (AccountOf * ADA).(/=) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (AccountOf * ADA)"s (3 mutations)
152.94 s
[really-safe-money-gen] coverage (525/1610): Money\.AccountOfSpec.ADA.format.produces valid strings (6 mutations)
152.95 s
[really-safe-money-gen] coverage (521/1610): Money\.AccountOfSpec.ADA.Eq (AccountOf * ADA).(==) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is transitive for "valid (AccountOf * ADA)"s (3 mutations)
153.08 s
[really-safe-money-gen] coverage (522/1610): Money\.AccountOfSpec.ADA.Eq (AccountOf * ADA).(==) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is symmetric for "valid (AccountOf * ADA)"s (3 mutations)
153.19 s
[really-safe-money-gen] coverage (524/1610): Money\.AccountOfSpec.ADA.abs.produces valid amounts (1 mutations)
153.32 s
[really-safe-money-gen] coverage (527/1610): Money\.AccountOfSpec.ADA.negate.produces valid amounts (1 mutations)
153.32 s
[really-safe-money-gen] coverage (526/1610): Money\.AccountOfSpec.ADA.subtract.matches what you would get with Integer, if nothing fails (16 mutations)
153.54 s
[really-safe-money-gen] coverage (528/1610): Money\.AccountOfSpec.ADA.CHF.rate.produces valid amounts (11 mutations)
153.76 s
[really-safe-money-gen] coverage (530/1610): Money\.AccountOfSpec.ADA.INR.rate.produces valid amounts (11 mutations)
153.95 s
[really-safe-money-gen] coverage (529/1610): Money\.AccountOfSpec.ADA.CHF.convert.produces valid amounts (17 mutations)
154.02 s
[really-safe-money-gen] coverage (531/1610): Money\.AccountOfSpec.ADA.INR.convert.produces valid amounts (17 mutations)
154.10 s
[really-safe-money-gen] coverage (532/1610): Money\.AccountOfSpec.ADA.fromAmount.produces valid AccountOfs (1 mutations)
154.47 s
[really-safe-money-gen] coverage (534/1610): Money\.AccountOfSpec.ADA.sum.produces valid amounts (17 mutations)
154.73 s
[really-safe-money-gen] coverage (535/1610): Money\.AccountOfSpec.ADA.toMinimalQuantisations.produces valid accounts (3 mutations)
154.84 s
[really-safe-money-gen] coverage (536/1610): Money\.AccountOfSpec.ADA.ADA.convert.produces valid amounts (17 mutations)
154.99 s
[really-safe-money-gen] coverage (533/1610): Money\.AccountOfSpec.ADA.sum.matches what you would get with Integer, if nothing fails (17 mutations)
155.13 s
[really-safe-money-gen] coverage (540/1610): Money\.AccountOfSpec.ADA.add.is commutative (16 mutations)
155.15 s
[really-safe-money-gen] coverage (538/1610): Money\.AccountOfSpec.ADA.add.matches what you would get with Integer, if nothing fails (16 mutations)
155.21 s
[really-safe-money-gen] coverage (537/1610): Money\.AccountOfSpec.ADA.ADA.rate.produces valid amounts (11 mutations)
155.29 s
[really-safe-money-gen] coverage (541/1610): Money\.AccountOfSpec.ADA.add.is associative when both succeed (16 mutations)
155.35 s
[really-safe-money-gen] coverage (539/1610): Money\.AccountOfSpec.ADA.add.produces valid amounts (16 mutations)
155.38 s
[really-safe-money-gen] coverage (543/1610): Money\.AccountOfSpec.ADA.add.has a right-identity\: zero (17 mutations)
155.40 s
[really-safe-money-gen] coverage (544/1610): Money\.AccountOfSpec.ADA.GenValid (AccountOf * ADA).genValid \:\: Gen (AccountOf * ADA).only generates valid '(AccountOf * ADA)'s (1 mutations)
155.58 s
[really-safe-money-gen] coverage (545/1610): Money\.AccountOfSpec.ADA.BTC.convert.produces valid amounts (17 mutations)
155.67 s
[really-safe-money-gen] coverage (546/1610): Money\.AccountOfSpec.ADA.BTC.rate.produces valid amounts (11 mutations)
156.03 s
[really-safe-money-gen] coverage (547/1610): Money\.AccountOfSpec.ADA.multiply.produces valid amounts (15 mutations)
156.13 s
[really-safe-money-gen] coverage (548/1610): Money\.AccountOfSpec.ADA.multiply.is distributive with add when both succeed (28 mutations)
156.24 s
[really-safe-money-gen] coverage (549/1610): Money\.AccountOfSpec.ADA.multiply.has an identity\: 1 (15 mutations)
156.30 s
[really-safe-money-gen] coverage (551/1610): Money\.AccountOfSpec.ADA.multiply.is absorbed by 0 (15 mutations)
156.50 s
[really-safe-money-gen] coverage (552/1610): Money\.AccountOfSpec.ADA.USD.convert.produces valid amounts (17 mutations)
156.67 s
[really-safe-money-gen] coverage (553/1610): Money\.AccountOfSpec.ADA.USD.rate.produces valid amounts (11 mutations)
156.80 s
[really-safe-money-gen] coverage (554/1610): Money\.AccountOfSpec.BTC.add.is commutative (16 mutations)
156.90 s
[really-safe-money-gen] coverage (558/1610): Money\.AccountOfSpec.BTC.add.is associative when both succeed (16 mutations)
156.97 s
[really-safe-money-gen] coverage (556/1610): Money\.AccountOfSpec.BTC.add.has a left-identity\: zero (17 mutations)
157.05 s
[really-safe-money-gen] coverage (559/1610): Money\.AccountOfSpec.BTC.add.matches what you would get with Integer, if nothing fails (16 mutations)
157.29 s
[really-safe-money-gen] coverage (560/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(>) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (AccountOf * BTC)"'s (3 mutations)
157.44 s
[really-safe-money-gen] coverage (561/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(>) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is transitive for "valid (AccountOf * BTC)"'s (3 mutations)
157.61 s
[really-safe-money-gen] coverage (562/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(>) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is antireflexive for "valid (AccountOf * BTC)"'s (3 mutations)
157.68 s
[really-safe-money-gen] coverage (563/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(<=) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (AccountOf * BTC)"'s (3 mutations)
157.82 s
[really-safe-money-gen] coverage (564/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(<=) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is antisymmetric for "valid (AccountOf * BTC)"'s (3 mutations)
158.23 s
[really-safe-money-gen] coverage (566/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(<=) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is transitive for "valid (AccountOf * BTC)"'s (3 mutations)
158.50 s
[really-safe-money-gen] coverage (555/1610): Money\.AccountOfSpec.BTC.add.produces valid amounts (16 mutations)
158.51 s
[really-safe-money-gen] coverage (550/1610): Money\.AccountOfSpec.ADA.multiply.matches what you would get with Integer, if nothing fails (15 mutations)
158.71 s
[really-safe-money-gen] coverage (567/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(<) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is transitive for "valid (AccountOf * BTC)"'s (3 mutations)
158.84 s
[really-safe-money-gen] coverage (523/1610): Money\.AccountOfSpec.ADA.Eq (AccountOf * ADA).(==) \:\: (AccountOf * ADA) -> (AccountOf * ADA) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (AccountOf * ADA)"s (3 mutations)
158.92 s
[really-safe-money-gen] coverage (565/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(<=) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is reflexive for "valid (AccountOf * BTC)"'s (3 mutations)
159.05 s
[really-safe-money-gen] coverage (557/1610): Money\.AccountOfSpec.BTC.add.has a right-identity\: zero (17 mutations)
159.07 s
[really-safe-money-gen] coverage (569/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(<) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is antireflexive for "valid (AccountOf * BTC)"'s (3 mutations)
159.11 s
[really-safe-money-gen] coverage (568/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(<) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (AccountOf * BTC)"'s (3 mutations)
159.16 s
[really-safe-money-gen] coverage (571/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC)."max \:\: (AccountOf * BTC -> AccountOf * BTC -> AccountOf * BTC)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (AccountOf * BTC)"'s (3 mutations)
159.18 s
[really-safe-money-gen] coverage (570/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC)."min \:\: (AccountOf * BTC -> AccountOf * BTC -> AccountOf * BTC)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (AccountOf * BTC)"'s (3 mutations)
159.33 s
[really-safe-money-gen] coverage (572/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(>=) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is antisymmetric for "valid (AccountOf * BTC)"'s (3 mutations)
159.51 s
[really-safe-money-gen] coverage (573/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(>=) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (AccountOf * BTC)"'s (3 mutations)
159.92 s
[really-safe-money-gen] coverage (575/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(>=) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is reflexive for "valid (AccountOf * BTC)"'s (3 mutations)
159.95 s
[really-safe-money-gen] coverage (574/1610): Money\.AccountOfSpec.BTC.Ord (AccountOf * BTC).(>=) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is transitive for "valid (AccountOf * BTC)"'s (3 mutations)
160.00 s
[really-safe-money-gen] coverage (576/1610): Money\.AccountOfSpec.BTC.BTC.convert.produces valid amounts (17 mutations)
160.19 s
[really-safe-money-gen] coverage (577/1610): Money\.AccountOfSpec.BTC.BTC.rate.produces valid amounts (11 mutations)
160.30 s
[really-safe-money-gen] coverage (578/1610): Money\.AccountOfSpec.BTC.distribute.produces valid amounts (28 mutations)
160.54 s
[really-safe-money-gen] coverage (580/1610): Money\.AccountOfSpec.BTC.distribute.Show (Distribution (AccountOf * BTC)) and Read (Distribution (AccountOf * BTC)).are implemented such that read \. show == id for valid values (3 mutations)
160.63 s
[really-safe-money-gen] coverage (579/1610): Money\.AccountOfSpec.BTC.distribute.produces results that sum up to the greater whole (45 mutations)
160.75 s
[really-safe-money-gen] coverage (581/1610): Money\.AccountOfSpec.BTC.distribute.Eq (Distribution (AccountOf * BTC)).(==) \:\: (Distribution (AccountOf * BTC)) -> (Distribution (AccountOf * BTC)) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution (AccountOf * BTC))"s (3 mutations)
160.78 s
[really-safe-money-gen] coverage (582/1610): Money\.AccountOfSpec.BTC.distribute.Eq (Distribution (AccountOf * BTC)).(==) \:\: (Distribution (AccountOf * BTC)) -> (Distribution (AccountOf * BTC)) -> Bool.is reflexive for "valid (Distribution (AccountOf * BTC))"s (3 mutations)
160.94 s
[really-safe-money-gen] coverage (586/1610): Money\.AccountOfSpec.BTC.distribute.Eq (Distribution (AccountOf * BTC)).(/=) \:\: (Distribution (AccountOf * BTC)) -> (Distribution (AccountOf * BTC)) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution (AccountOf * BTC))"s (3 mutations)
161.19 s
[really-safe-money-gen] coverage (587/1610): Money\.AccountOfSpec.BTC.toDouble.produces valid Doubles when the quantisation factor is nonzero (3 mutations)
161.32 s
[really-safe-money-gen] coverage (588/1610): Money\.AccountOfSpec.BTC.negate.produces valid amounts (1 mutations)
161.45 s
[really-safe-money-gen] coverage (584/1610): Money\.AccountOfSpec.BTC.distribute.Eq (Distribution (AccountOf * BTC)).(==) \:\: (Distribution (AccountOf * BTC)) -> (Distribution (AccountOf * BTC)) -> Bool.is transitive for "valid (Distribution (AccountOf * BTC))"s (3 mutations)
161.49 s
[really-safe-money-gen] coverage (542/1610): Money\.AccountOfSpec.ADA.add.has a left-identity\: zero (17 mutations)
161.66 s
[really-safe-money-gen] coverage (592/1610): Money\.AccountOfSpec.BTC.multiply.is absorbed by 0 (15 mutations)
161.73 s
[really-safe-money-gen] coverage (594/1610): Money\.AccountOfSpec.BTC.multiply.matches what you would get with Integer, if nothing fails (15 mutations)
162.22 s
[really-safe-money-gen] coverage (585/1610): Money\.AccountOfSpec.BTC.distribute.Eq (Distribution (AccountOf * BTC)).(/=) \:\: (Distribution (AccountOf * BTC)) -> (Distribution (AccountOf * BTC)) -> Bool.is antireflexive for "valid (Distribution (AccountOf * BTC))"s (3 mutations)
162.26 s
[really-safe-money-gen] coverage (591/1610): Money\.AccountOfSpec.BTC.multiply.is distributive with add when both succeed (28 mutations)
162.50 s
[really-safe-money-gen] coverage (593/1610): Money\.AccountOfSpec.BTC.multiply.has an identity\: 1 (15 mutations)
162.50 s
[really-safe-money-gen] coverage (589/1610): Money\.AccountOfSpec.BTC.fromAmountOf.produces valid AccountOfs (1 mutations)
162.50 s
[really-safe-money-gen] coverage (590/1610): Money\.AccountOfSpec.BTC.multiply.produces valid amounts (15 mutations)
162.75 s
[really-safe-money-gen] coverage (602/1610): Money\.AccountOfSpec.BTC.Eq (AccountOf * BTC).(/=) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (AccountOf * BTC)"s (3 mutations)
162.79 s
[really-safe-money-gen] coverage (583/1610): Money\.AccountOfSpec.BTC.distribute.Eq (Distribution (AccountOf * BTC)).(==) \:\: (Distribution (AccountOf * BTC)) -> (Distribution (AccountOf * BTC)) -> Bool.is symmetric for "valid (Distribution (AccountOf * BTC))"s (3 mutations)
162.79 s
[really-safe-money-gen] coverage (603/1610): Money\.AccountOfSpec.BTC.format.produces valid strings (6 mutations)
162.82 s
[really-safe-money-gen] coverage (599/1610): Money\.AccountOfSpec.BTC.Eq (AccountOf * BTC).(==) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (AccountOf * BTC)"s (3 mutations)
162.90 s
[really-safe-money-gen] coverage (598/1610): Money\.AccountOfSpec.BTC.Eq (AccountOf * BTC).(==) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is transitive for "valid (AccountOf * BTC)"s (3 mutations)
163.03 s
[really-safe-money-gen] coverage (597/1610): Money\.AccountOfSpec.BTC.Eq (AccountOf * BTC).(==) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is reflexive for "valid (AccountOf * BTC)"s (3 mutations)
163.22 s
[really-safe-money-gen] coverage (600/1610): Money\.AccountOfSpec.BTC.Eq (AccountOf * BTC).(==) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is symmetric for "valid (AccountOf * BTC)"s (3 mutations)
163.47 s
[really-safe-money-gen] coverage (596/1610): Money\.AccountOfSpec.BTC.sum.matches what you would get with Integer, if nothing fails (17 mutations)
163.59 s
[really-safe-money-gen] coverage (601/1610): Money\.AccountOfSpec.BTC.Eq (AccountOf * BTC).(/=) \:\: (AccountOf * BTC) -> (AccountOf * BTC) -> Bool.is antireflexive for "valid (AccountOf * BTC)"s (3 mutations)
163.74 s
[really-safe-money-gen] coverage (595/1610): Money\.AccountOfSpec.BTC.sum.produces valid amounts (17 mutations)
163.79 s
[really-safe-money-gen] coverage (611/1610): Money\.AccountOfSpec.BTC.Show (AccountOf * BTC) and Read (AccountOf * BTC).are implemented such that read \. show == id for valid values (3 mutations)
163.93 s
[really-safe-money-gen] coverage (612/1610): Money\.AccountOfSpec.BTC.toMinimalQuantisations.produces valid accounts (3 mutations)
164.11 s
[really-safe-money-gen] coverage (618/1610): Money\.AccountOfSpec.BTC.fromDouble.produces valid rational (28 mutations)
164.14 s
[really-safe-money-gen] coverage (617/1610): Money\.AccountOfSpec.BTC.fromDouble.roundtrips with toDouble (30 mutations)
164.14 s
[really-safe-money-gen] coverage (613/1610): Money\.AccountOfSpec.BTC.GenValid (AccountOf * BTC).genValid \:\: Gen (AccountOf * BTC).only generates valid '(AccountOf * BTC)'s (1 mutations)
164.35 s
[really-safe-money-gen] coverage (616/1610): Money\.AccountOfSpec.BTC.INR.convert.produces valid amounts (17 mutations)
164.57 s
[really-safe-money-gen] coverage (620/1610): Money\.AccountOfSpec.BTC.fraction.Produces a result that can be multiplied back (28 mutations)
164.59 s
[really-safe-money-gen] coverage (619/1610): Money\.AccountOfSpec.BTC.fraction.produces valid amounts (28 mutations)
164.72 s
[really-safe-money-gen] coverage (621/1610): Money\.AccountOfSpec.BTC.CHF.rate.produces valid amounts (11 mutations)
164.91 s
[really-safe-money-gen] coverage (615/1610): Money\.AccountOfSpec.BTC.INR.rate.produces valid amounts (11 mutations)
164.96 s
[really-safe-money-gen] coverage (622/1610): Money\.AccountOfSpec.BTC.CHF.convert.produces valid amounts (17 mutations)
165.10 s
[really-safe-money-gen] coverage (624/1610): Money\.AccountOfSpec.BTC.fromMinimalQuantisations.produces valid accounts (10 mutations)
165.18 s
[really-safe-money-gen] coverage (625/1610): Money\.AccountOfSpec.BTC.fromAmount.produces valid AccountOfs (1 mutations)
165.53 s
[really-safe-money-gen] coverage (623/1610): Money\.AccountOfSpec.BTC.fromMinimalQuantisations.roundtrips with toMinimalQuantisations (12 mutations)
165.57 s
[really-safe-money-gen] coverage (626/1610): Money\.AccountOfSpec.BTC.abs.produces valid amounts (1 mutations)
165.86 s
[really-safe-money-gen] coverage (614/1610): Money\.AccountOfSpec.BTC.toRational.produces valid Rationals when the quantisation factor is nonzero (3 mutations)
165.91 s
[really-safe-money-gen] coverage (629/1610): Money\.ConversionRateOfSpec.INR.ADA.Ratio.toRatio.produces valid ratios (0 mutations)
165.97 s
[really-safe-money-gen] coverage (628/1610): Money\.ConversionRateOfSpec.INR.ADA.Ratio.fromRatio.produces valid conversion rates (6 mutations)
166.16 s
[really-safe-money-gen] coverage (632/1610): Money\.ConversionRateOfSpec.INR.ADA.Rational.fromRational.produces valid conversion rates (11 mutations)
166.26 s
[really-safe-money-gen] coverage (627/1610): Money\.ConversionRateOfSpec.INR.ADA.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
166.31 s
[really-safe-money-gen] coverage (631/1610): Money\.ConversionRateOfSpec.INR.ADA.Rational.toRational.produces valid rationals (0 mutations)
166.31 s
[really-safe-money-gen] coverage (634/1610): Money\.ConversionRateOfSpec.INR.ADA.compose.produces valid rates (6 mutations)
166.32 s
[really-safe-money-gen] coverage (630/1610): Money\.ConversionRateOfSpec.INR.ADA.GenValid (ConversionRateOf INR ADA).genValid \:\: Gen (ConversionRateOf INR ADA).only generates valid '(ConversionRateOf INR ADA)'s (6 mutations)
166.45 s
[really-safe-money-gen] coverage (635/1610): Money\.ConversionRateOfSpec.INR.ADA.invert.produces valid rates (8 mutations)
166.88 s
[really-safe-money-gen] coverage (636/1610): Money\.ConversionRateOfSpec.INR.ADA.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
166.94 s
[really-safe-money-gen] coverage (637/1610): Money\.ConversionRateOfSpec.INR.ADA.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
167.14 s
[really-safe-money-gen] coverage (610/1610): Money\.AccountOfSpec.BTC.fromRational.roundtrips with toRational (23 mutations)
167.14 s
[really-safe-money-gen] coverage (607/1610): Money\.AccountOfSpec.BTC.ADA.convert.produces valid amounts (17 mutations)
167.28 s
[really-safe-money-gen] coverage (606/1610): Money\.AccountOfSpec.BTC.subtract.matches what you would get with Integer, if nothing fails (16 mutations)
167.46 s
[really-safe-money-gen] coverage (608/1610): Money\.AccountOfSpec.BTC.ADA.rate.produces valid amounts (11 mutations)
167.56 s
[really-safe-money-gen] coverage (604/1610): Money\.AccountOfSpec.BTC.USD.convert.produces valid amounts (17 mutations)
167.57 s
[really-safe-money-gen] coverage (609/1610): Money\.AccountOfSpec.BTC.fromRational.produces valid rational (19 mutations)
167.62 s
[really-safe-money-gen] coverage (605/1610): Money\.AccountOfSpec.BTC.USD.rate.produces valid amounts (11 mutations)
167.76 s
[really-safe-money-gen] coverage (644/1610): Money\.ConversionRateOfSpec.INR.BTC.Rational.toRational.produces valid rationals (0 mutations)
167.98 s
[really-safe-money-gen] coverage (645/1610): Money\.ConversionRateOfSpec.INR.BTC.Rational.fromRational.roundtrips with toRational (11 mutations)
168.05 s
[really-safe-money-gen] coverage (638/1610): Money\.ConversionRateOfSpec.INR.ADA.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
168.12 s
[really-safe-money-gen] coverage (640/1610): Money\.ConversionRateOfSpec.INR.BTC.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
168.43 s
[really-safe-money-gen] coverage (641/1610): Money\.ConversionRateOfSpec.INR.BTC.Ratio.fromRatio.produces valid conversion rates (6 mutations)
168.60 s
[really-safe-money-gen] coverage (650/1610): Money\.ConversionRateOfSpec.INR.BTC.GenValid (ConversionRateOf INR BTC).genValid \:\: Gen (ConversionRateOf INR BTC).only generates valid '(ConversionRateOf INR BTC)'s (6 mutations)
168.77 s
[really-safe-money-gen] coverage (648/1610): Money\.ConversionRateOfSpec.INR.BTC.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
168.81 s
[really-safe-money-gen] coverage (649/1610): Money\.ConversionRateOfSpec.INR.BTC.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
168.89 s
[really-safe-money-gen] coverage (651/1610): Money\.ConversionRateOfSpec.INR.CHF.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
169.24 s
[really-safe-money-gen] coverage (652/1610): Money\.ConversionRateOfSpec.INR.CHF.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
169.24 s
[really-safe-money-gen] coverage (647/1610): Money\.ConversionRateOfSpec.INR.BTC.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
169.34 s
[really-safe-money-gen] coverage (646/1610): Money\.ConversionRateOfSpec.INR.BTC.Rational.fromRational.produces valid conversion rates (11 mutations)
169.47 s
[really-safe-money-gen] coverage (633/1610): Money\.ConversionRateOfSpec.INR.ADA.Rational.fromRational.roundtrips with toRational (11 mutations)
169.62 s
[really-safe-money-gen] coverage (654/1610): Money\.ConversionRateOfSpec.INR.CHF.Ratio.toRatio.produces valid ratios (0 mutations)
169.65 s
[really-safe-money-gen] coverage (664/1610): Money\.ConversionRateOfSpec.INR.USD.Rational.toRational.produces valid rationals (0 mutations)
169.65 s
[really-safe-money-gen] coverage (661/1610): Money\.ConversionRateOfSpec.INR.CHF.compose.produces valid rates (6 mutations)
169.79 s
[really-safe-money-gen] coverage (662/1610): Money\.ConversionRateOfSpec.INR.CHF.GenValid (ConversionRateOf INR CHF).genValid \:\: Gen (ConversionRateOf INR CHF).only generates valid '(ConversionRateOf INR CHF)'s (6 mutations)
169.80 s
[really-safe-money-gen] coverage (663/1610): Money\.ConversionRateOfSpec.INR.USD.GenValid (ConversionRateOf INR USD).genValid \:\: Gen (ConversionRateOf INR USD).only generates valid '(ConversionRateOf INR USD)'s (6 mutations)
169.91 s
[really-safe-money-gen] coverage (653/1610): Money\.ConversionRateOfSpec.INR.CHF.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
170.14 s
[really-safe-money-gen] coverage (659/1610): Money\.ConversionRateOfSpec.INR.CHF.Rational.toRational.produces valid rationals (0 mutations)
170.26 s
[really-safe-money-gen] coverage (658/1610): Money\.ConversionRateOfSpec.INR.CHF.Rational.fromRational.produces valid conversion rates (11 mutations)
170.41 s
[really-safe-money-gen] coverage (657/1610): Money\.ConversionRateOfSpec.INR.CHF.Rational.fromRational.roundtrips with toRational (11 mutations)
170.43 s
[really-safe-money-gen] coverage (660/1610): Money\.ConversionRateOfSpec.INR.CHF.invert.produces valid rates (8 mutations)
170.51 s
[really-safe-money-gen] coverage (655/1610): Money\.ConversionRateOfSpec.INR.CHF.Ratio.fromRatio.produces valid conversion rates (6 mutations)
170.73 s
[really-safe-money-gen] coverage (656/1610): Money\.ConversionRateOfSpec.INR.CHF.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
170.75 s
[really-safe-money-gen] coverage (675/1610): Money\.ConversionRateOfSpec.INR.INR.Rational.toRational.produces valid rationals (0 mutations)
170.84 s
[really-safe-money-gen] coverage (676/1610): Money\.ConversionRateOfSpec.INR.INR.Rational.fromRational.roundtrips with toRational (11 mutations)
170.98 s
[really-safe-money-gen] coverage (678/1610): Money\.ConversionRateOfSpec.INR.INR.GenValid (ConversionRateOf INR INR).genValid \:\: Gen (ConversionRateOf INR INR).only generates valid '(ConversionRateOf INR INR)'s (6 mutations)
171.08 s
[really-safe-money-gen] coverage (673/1610): Money\.ConversionRateOfSpec.INR.USD.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
171.16 s
[really-safe-money-gen] coverage (677/1610): Money\.ConversionRateOfSpec.INR.INR.Rational.fromRational.produces valid conversion rates (11 mutations)
171.66 s
[really-safe-money-gen] coverage (670/1610): Money\.ConversionRateOfSpec.INR.USD.Ratio.toRatio.produces valid ratios (0 mutations)
171.73 s
[really-safe-money-gen] coverage (680/1610): Money\.ConversionRateOfSpec.INR.INR.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
172.26 s
[really-safe-money-gen] coverage (682/1610): Money\.ConversionRateOfSpec.INR.INR.compose.produces valid rates (6 mutations)
172.48 s
[really-safe-money-gen] coverage (686/1610): Money\.ConversionRateOfSpec.INR.INR.Ratio.toRatio.produces valid ratios (0 mutations)
172.68 s
[really-safe-money-gen] coverage (688/1610): Money\.ConversionRateOfSpec.ADA.USD.Ratio.toRatio.produces valid ratios (0 mutations)
172.78 s
[really-safe-money-gen] coverage (687/1610): Money\.ConversionRateOfSpec.ADA.USD.compose.produces valid rates (6 mutations)
172.93 s
[really-safe-money-gen] coverage (689/1610): Money\.ConversionRateOfSpec.ADA.USD.Ratio.fromRatio.produces valid conversion rates (6 mutations)
173.19 s
[really-safe-money-gen] coverage (692/1610): Money\.ConversionRateOfSpec.ADA.USD.Rational.fromRational.produces valid conversion rates (11 mutations)
173.42 s
[really-safe-money-gen] coverage (691/1610): Money\.ConversionRateOfSpec.ADA.USD.invert.produces valid rates (8 mutations)
173.56 s
[really-safe-money-gen] coverage (690/1610): Money\.ConversionRateOfSpec.ADA.USD.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
173.58 s
[really-safe-money-gen] coverage (695/1610): Money\.ConversionRateOfSpec.ADA.USD.GenValid (ConversionRateOf ADA USD).genValid \:\: Gen (ConversionRateOf ADA USD).only generates valid '(ConversionRateOf ADA USD)'s (6 mutations)
173.73 s
[really-safe-money-gen] coverage (693/1610): Money\.ConversionRateOfSpec.ADA.USD.Rational.fromRational.roundtrips with toRational (11 mutations)
173.97 s
[really-safe-money-gen] coverage (694/1610): Money\.ConversionRateOfSpec.ADA.USD.Rational.toRational.produces valid rationals (0 mutations)
174.03 s
[really-safe-money-gen] coverage (698/1610): Money\.ConversionRateOfSpec.ADA.USD.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
174.28 s
[really-safe-money-gen] coverage (696/1610): Money\.ConversionRateOfSpec.ADA.USD.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
174.31 s
[really-safe-money-gen] coverage (685/1610): Money\.ConversionRateOfSpec.INR.INR.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
174.75 s
[really-safe-money-gen] coverage (683/1610): Money\.ConversionRateOfSpec.INR.INR.invert.produces valid rates (8 mutations)
174.80 s
[really-safe-money-gen] coverage (697/1610): Money\.ConversionRateOfSpec.ADA.USD.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
175.15 s
[really-safe-money-gen] coverage (681/1610): Money\.ConversionRateOfSpec.INR.INR.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
175.32 s
[really-safe-money-gen] coverage (674/1610): Money\.ConversionRateOfSpec.INR.USD.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
175.42 s
[really-safe-money-gen] coverage (708/1610): Money\.ConversionRateOfSpec.ADA.CHF.Ratio.toRatio.produces valid ratios (0 mutations)
175.44 s
[really-safe-money-gen] coverage (639/1610): Money\.ConversionRateOfSpec.INR.BTC.Ratio.toRatio.produces valid ratios (0 mutations)
175.53 s
[really-safe-money-gen] coverage (707/1610): Money\.ConversionRateOfSpec.ADA.CHF.Ratio.fromRatio.produces valid conversion rates (6 mutations)
175.59 s
[really-safe-money-gen] coverage (672/1610): Money\.ConversionRateOfSpec.INR.USD.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
175.60 s
[really-safe-money-gen] coverage (710/1610): Money\.ConversionRateOfSpec.ADA.CHF.invert.produces valid rates (8 mutations)
175.69 s
[really-safe-money-gen] coverage (711/1610): Money\.ConversionRateOfSpec.ADA.ADA.GenValid (ConversionRateOf ADA ADA).genValid \:\: Gen (ConversionRateOf ADA ADA).only generates valid '(ConversionRateOf ADA ADA)'s (6 mutations)
175.71 s
[really-safe-money-gen] coverage (706/1610): Money\.ConversionRateOfSpec.ADA.CHF.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
176.26 s
[really-safe-money-gen] coverage (703/1610): Money\.ConversionRateOfSpec.ADA.CHF.Rational.toRational.produces valid rationals (0 mutations)
176.69 s
[really-safe-money-gen] coverage (702/1610): Money\.ConversionRateOfSpec.ADA.CHF.compose.produces valid rates (6 mutations)
177.07 s
[really-safe-money-gen] coverage (701/1610): Money\.ConversionRateOfSpec.ADA.CHF.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
177.15 s
[really-safe-money-gen] coverage (704/1610): Money\.ConversionRateOfSpec.ADA.CHF.Rational.fromRational.roundtrips with toRational (11 mutations)
177.37 s
[really-safe-money-gen] coverage (705/1610): Money\.ConversionRateOfSpec.ADA.CHF.Rational.fromRational.produces valid conversion rates (11 mutations)
177.40 s
[really-safe-money-gen] coverage (700/1610): Money\.ConversionRateOfSpec.ADA.CHF.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
177.68 s
[really-safe-money-gen] coverage (709/1610): Money\.ConversionRateOfSpec.ADA.CHF.GenValid (ConversionRateOf ADA CHF).genValid \:\: Gen (ConversionRateOf ADA CHF).only generates valid '(ConversionRateOf ADA CHF)'s (6 mutations)
177.73 s
[really-safe-money-gen] coverage (714/1610): Money\.ConversionRateOfSpec.ADA.ADA.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
177.84 s
[really-safe-money-gen] coverage (699/1610): Money\.ConversionRateOfSpec.ADA.CHF.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
178.04 s
[really-safe-money-gen] coverage (716/1610): Money\.ConversionRateOfSpec.ADA.ADA.compose.produces valid rates (6 mutations)
178.06 s
[really-safe-money-gen] coverage (713/1610): Money\.ConversionRateOfSpec.ADA.ADA.Ratio.toRatio.produces valid ratios (0 mutations)
178.26 s
[really-safe-money-gen] coverage (721/1610): Money\.ConversionRateOfSpec.ADA.ADA.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
178.51 s
[really-safe-money-gen] coverage (722/1610): Money\.ConversionRateOfSpec.ADA.ADA.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
178.53 s
[really-safe-money-gen] coverage (726/1610): Money\.ConversionRateOfSpec.ADA.BTC.GenValid (ConversionRateOf ADA BTC).genValid \:\: Gen (ConversionRateOf ADA BTC).only generates valid '(ConversionRateOf ADA BTC)'s (6 mutations)
178.58 s
[really-safe-money-gen] coverage (724/1610): Money\.ConversionRateOfSpec.ADA.BTC.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
178.58 s
[really-safe-money-gen] coverage (727/1610): Money\.ConversionRateOfSpec.ADA.BTC.invert.produces valid rates (8 mutations)
178.83 s
[really-safe-money-gen] coverage (723/1610): Money\.ConversionRateOfSpec.ADA.BTC.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
178.99 s
[really-safe-money-gen] coverage (730/1610): Money\.ConversionRateOfSpec.ADA.BTC.Rational.fromRational.produces valid conversion rates (11 mutations)
179.02 s
[really-safe-money-gen] coverage (728/1610): Money\.ConversionRateOfSpec.ADA.BTC.Rational.toRational.produces valid rationals (0 mutations)
179.18 s
[really-safe-money-gen] coverage (729/1610): Money\.ConversionRateOfSpec.ADA.BTC.Rational.fromRational.roundtrips with toRational (11 mutations)
179.23 s
[really-safe-money-gen] coverage (736/1610): Money\.ConversionRateOfSpec.ADA.INR.Rational.fromRational.produces valid conversion rates (11 mutations)
179.33 s
[really-safe-money-gen] coverage (733/1610): Money\.ConversionRateOfSpec.ADA.BTC.Ratio.fromRatio.produces valid conversion rates (6 mutations)
179.36 s
[really-safe-money-gen] coverage (738/1610): Money\.ConversionRateOfSpec.ADA.INR.Rational.toRational.produces valid rationals (0 mutations)
179.47 s
[really-safe-money-gen] coverage (739/1610): Money\.ConversionRateOfSpec.ADA.INR.Ratio.toRatio.produces valid ratios (0 mutations)
179.49 s
[really-safe-money-gen] coverage (740/1610): Money\.ConversionRateOfSpec.ADA.INR.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
179.51 s
[really-safe-money-gen] coverage (737/1610): Money\.ConversionRateOfSpec.ADA.INR.Rational.fromRational.roundtrips with toRational (11 mutations)
179.71 s
[really-safe-money-gen] coverage (725/1610): Money\.ConversionRateOfSpec.ADA.BTC.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
179.73 s
[really-safe-money-gen] coverage (741/1610): Money\.ConversionRateOfSpec.ADA.INR.Ratio.fromRatio.produces valid conversion rates (6 mutations)
180.13 s
[really-safe-money-gen] coverage (742/1610): Money\.ConversionRateOfSpec.ADA.INR.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
180.55 s
[really-safe-money-gen] coverage (743/1610): Money\.ConversionRateOfSpec.ADA.INR.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
180.63 s
[really-safe-money-gen] coverage (745/1610): Money\.ConversionRateOfSpec.ADA.INR.compose.produces valid rates (6 mutations)
180.68 s
[really-safe-money-gen] coverage (744/1610): Money\.ConversionRateOfSpec.ADA.INR.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
180.91 s
[really-safe-money-gen] coverage (747/1610): Money\.ConversionRateOfSpec.CHF.BTC.Rational.toRational.produces valid rationals (0 mutations)
180.92 s
[really-safe-money-gen] coverage (746/1610): Money\.ConversionRateOfSpec.ADA.INR.invert.produces valid rates (8 mutations)
181.16 s
[really-safe-money-gen] coverage (735/1610): Money\.ConversionRateOfSpec.ADA.INR.GenValid (ConversionRateOf ADA INR).genValid \:\: Gen (ConversionRateOf ADA INR).only generates valid '(ConversionRateOf ADA INR)'s (6 mutations)
181.20 s
[really-safe-money-gen] coverage (748/1610): Money\.ConversionRateOfSpec.CHF.BTC.Rational.fromRational.roundtrips with toRational (11 mutations)
181.37 s
[really-safe-money-gen] coverage (749/1610): Money\.ConversionRateOfSpec.CHF.BTC.Rational.fromRational.produces valid conversion rates (11 mutations)
181.44 s
[really-safe-money-gen] coverage (666/1610): Money\.ConversionRateOfSpec.INR.USD.Rational.fromRational.roundtrips with toRational (11 mutations)
181.63 s
[really-safe-money-gen] coverage (719/1610): Money\.ConversionRateOfSpec.ADA.ADA.Rational.fromRational.produces valid conversion rates (11 mutations)
182.00 s
[really-safe-money-gen] coverage (712/1610): Money\.ConversionRateOfSpec.ADA.ADA.invert.produces valid rates (8 mutations)
182.00 s
[really-safe-money-gen] coverage (751/1610): Money\.ConversionRateOfSpec.CHF.BTC.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
182.07 s
[really-safe-money-gen] coverage (750/1610): Money\.ConversionRateOfSpec.CHF.BTC.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
182.30 s
[really-safe-money-gen] coverage (752/1610): Money\.ConversionRateOfSpec.CHF.BTC.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
182.32 s
[really-safe-money-gen] coverage (720/1610): Money\.ConversionRateOfSpec.ADA.ADA.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
182.43 s
[really-safe-money-gen] coverage (734/1610): Money\.ConversionRateOfSpec.ADA.BTC.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
182.44 s
[really-safe-money-gen] coverage (679/1610): Money\.ConversionRateOfSpec.INR.INR.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
182.51 s
[really-safe-money-gen] coverage (717/1610): Money\.ConversionRateOfSpec.ADA.ADA.Rational.toRational.produces valid rationals (0 mutations)
182.54 s
[really-safe-money-gen] coverage (715/1610): Money\.ConversionRateOfSpec.ADA.ADA.Ratio.fromRatio.produces valid conversion rates (6 mutations)
182.59 s
[really-safe-money-gen] coverage (684/1610): Money\.ConversionRateOfSpec.INR.INR.Ratio.fromRatio.produces valid conversion rates (6 mutations)
182.73 s
[really-safe-money-gen] coverage (753/1610): Money\.ConversionRateOfSpec.CHF.BTC.compose.produces valid rates (6 mutations)
182.85 s
[really-safe-money-gen] coverage (731/1610): Money\.ConversionRateOfSpec.ADA.BTC.compose.produces valid rates (6 mutations)
182.89 s
[really-safe-money-gen] coverage (718/1610): Money\.ConversionRateOfSpec.ADA.ADA.Rational.fromRational.roundtrips with toRational (11 mutations)
182.90 s
[really-safe-money-gen] coverage (667/1610): Money\.ConversionRateOfSpec.INR.USD.invert.produces valid rates (8 mutations)
183.04 s
[really-safe-money-gen] coverage (754/1610): Money\.ConversionRateOfSpec.CHF.BTC.Ratio.fromRatio.produces valid conversion rates (6 mutations)
183.04 s
[really-safe-money-gen] coverage (755/1610): Money\.ConversionRateOfSpec.CHF.BTC.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
183.20 s
[really-safe-money-gen] coverage (758/1610): Money\.ConversionRateOfSpec.CHF.BTC.GenValid (ConversionRateOf CHF BTC).genValid \:\: Gen (ConversionRateOf CHF BTC).only generates valid '(ConversionRateOf CHF BTC)'s (6 mutations)
183.47 s
[really-safe-money-gen] coverage (759/1610): Money\.ConversionRateOfSpec.CHF.ADA.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
183.91 s
[really-safe-money-gen] coverage (762/1610): Money\.ConversionRateOfSpec.CHF.ADA.invert.produces valid rates (8 mutations)
184.15 s
[really-safe-money-gen] coverage (763/1610): Money\.ConversionRateOfSpec.CHF.ADA.Ratio.toRatio.produces valid ratios (0 mutations)
184.18 s
[really-safe-money-gen] coverage (761/1610): Money\.ConversionRateOfSpec.CHF.ADA.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
184.28 s
[really-safe-money-gen] coverage (760/1610): Money\.ConversionRateOfSpec.CHF.ADA.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
184.29 s
[really-safe-money-gen] coverage (764/1610): Money\.ConversionRateOfSpec.CHF.ADA.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
184.54 s
[really-safe-money-gen] coverage (765/1610): Money\.ConversionRateOfSpec.CHF.ADA.Ratio.fromRatio.produces valid conversion rates (6 mutations)
184.66 s
[really-safe-money-gen] coverage (732/1610): Money\.ConversionRateOfSpec.ADA.BTC.Ratio.toRatio.produces valid ratios (0 mutations)
184.79 s
[really-safe-money-gen] coverage (766/1610): Money\.ConversionRateOfSpec.CHF.ADA.compose.produces valid rates (6 mutations)
184.85 s
[really-safe-money-gen] coverage (767/1610): Money\.ConversionRateOfSpec.CHF.ADA.GenValid (ConversionRateOf CHF ADA).genValid \:\: Gen (ConversionRateOf CHF ADA).only generates valid '(ConversionRateOf CHF ADA)'s (6 mutations)
185.03 s
[really-safe-money-gen] coverage (757/1610): Money\.ConversionRateOfSpec.CHF.BTC.invert.produces valid rates (8 mutations)
185.38 s
[really-safe-money-gen] coverage (770/1610): Money\.ConversionRateOfSpec.CHF.ADA.Rational.fromRational.produces valid conversion rates (11 mutations)
185.49 s
[really-safe-money-gen] coverage (768/1610): Money\.ConversionRateOfSpec.CHF.ADA.Rational.toRational.produces valid rationals (0 mutations)
185.56 s
[really-safe-money-gen] coverage (769/1610): Money\.ConversionRateOfSpec.CHF.ADA.Rational.fromRational.roundtrips with toRational (11 mutations)
185.60 s
[really-safe-money-gen] coverage (771/1610): Money\.ConversionRateOfSpec.CHF.USD.invert.produces valid rates (8 mutations)
185.90 s
[really-safe-money-gen] coverage (772/1610): Money\.ConversionRateOfSpec.CHF.USD.GenValid (ConversionRateOf CHF USD).genValid \:\: Gen (ConversionRateOf CHF USD).only generates valid '(ConversionRateOf CHF USD)'s (6 mutations)
185.97 s
[really-safe-money-gen] coverage (776/1610): Money\.ConversionRateOfSpec.CHF.USD.compose.produces valid rates (6 mutations)
186.08 s
[really-safe-money-gen] coverage (775/1610): Money\.ConversionRateOfSpec.CHF.USD.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
186.09 s
[really-safe-money-gen] coverage (777/1610): Money\.ConversionRateOfSpec.CHF.USD.Rational.fromRational.produces valid conversion rates (11 mutations)
186.12 s
[really-safe-money-gen] coverage (778/1610): Money\.ConversionRateOfSpec.CHF.USD.Rational.fromRational.roundtrips with toRational (11 mutations)
186.14 s
[really-safe-money-gen] coverage (773/1610): Money\.ConversionRateOfSpec.CHF.USD.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
186.23 s
[really-safe-money-gen] coverage (779/1610): Money\.ConversionRateOfSpec.CHF.USD.Rational.toRational.produces valid rationals (0 mutations)
186.33 s
[really-safe-money-gen] coverage (781/1610): Money\.ConversionRateOfSpec.CHF.USD.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
186.51 s
[really-safe-money-gen] coverage (782/1610): Money\.ConversionRateOfSpec.CHF.USD.Ratio.toRatio.produces valid ratios (0 mutations)
186.56 s
[really-safe-money-gen] coverage (780/1610): Money\.ConversionRateOfSpec.CHF.USD.Ratio.fromRatio.produces valid conversion rates (6 mutations)
186.77 s
[really-safe-money-gen] coverage (774/1610): Money\.ConversionRateOfSpec.CHF.USD.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
186.79 s
[really-safe-money-gen] coverage (786/1610): Money\.ConversionRateOfSpec.CHF.CHF.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
186.95 s
[really-safe-money-gen] coverage (785/1610): Money\.ConversionRateOfSpec.CHF.CHF.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
187.41 s
[really-safe-money-gen] coverage (784/1610): Money\.ConversionRateOfSpec.CHF.CHF.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
187.49 s
[really-safe-money-gen] coverage (783/1610): Money\.ConversionRateOfSpec.CHF.CHF.GenValid (ConversionRateOf CHF CHF).genValid \:\: Gen (ConversionRateOf CHF CHF).only generates valid '(ConversionRateOf CHF CHF)'s (6 mutations)
187.67 s
[really-safe-money-gen] coverage (787/1610): Money\.ConversionRateOfSpec.CHF.CHF.Rational.toRational.produces valid rationals (0 mutations)
187.68 s
[really-safe-money-gen] coverage (792/1610): Money\.ConversionRateOfSpec.CHF.CHF.Ratio.fromRatio.produces valid conversion rates (6 mutations)
187.89 s
[really-safe-money-gen] coverage (794/1610): Money\.ConversionRateOfSpec.CHF.CHF.compose.produces valid rates (6 mutations)
187.96 s
[really-safe-money-gen] coverage (791/1610): Money\.ConversionRateOfSpec.CHF.CHF.Ratio.toRatio.produces valid ratios (0 mutations)
188.05 s
[really-safe-money-gen] coverage (789/1610): Money\.ConversionRateOfSpec.CHF.CHF.Rational.fromRational.roundtrips with toRational (11 mutations)
188.15 s
[really-safe-money-gen] coverage (795/1610): Money\.ConversionRateOfSpec.CHF.INR.Ratio.toRatio.produces valid ratios (0 mutations)
188.27 s
[really-safe-money-gen] coverage (790/1610): Money\.ConversionRateOfSpec.CHF.CHF.invert.produces valid rates (8 mutations)
188.31 s
[really-safe-money-gen] coverage (793/1610): Money\.ConversionRateOfSpec.CHF.CHF.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
188.58 s
[really-safe-money-gen] coverage (796/1610): Money\.ConversionRateOfSpec.CHF.INR.Ratio.fromRatio.produces valid conversion rates (6 mutations)
188.86 s
[really-safe-money-gen] coverage (797/1610): Money\.ConversionRateOfSpec.CHF.INR.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
188.87 s
[really-safe-money-gen] coverage (798/1610): Money\.ConversionRateOfSpec.CHF.INR.compose.produces valid rates (6 mutations)
188.97 s
[really-safe-money-gen] coverage (799/1610): Money\.ConversionRateOfSpec.CHF.INR.invert.produces valid rates (8 mutations)
189.08 s
[really-safe-money-gen] coverage (788/1610): Money\.ConversionRateOfSpec.CHF.CHF.Rational.fromRational.produces valid conversion rates (11 mutations)
189.30 s
[really-safe-money-gen] coverage (801/1610): Money\.ConversionRateOfSpec.CHF.INR.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
189.39 s
[really-safe-money-gen] coverage (807/1610): Money\.ConversionRateOfSpec.USD.CHF.GenValid (ConversionRateOf USD CHF).genValid \:\: Gen (ConversionRateOf USD CHF).only generates valid '(ConversionRateOf USD CHF)'s (6 mutations)
189.40 s
[really-safe-money-gen] coverage (806/1610): Money\.ConversionRateOfSpec.CHF.INR.Rational.toRational.produces valid rationals (0 mutations)
189.48 s
[really-safe-money-gen] coverage (808/1610): Money\.ConversionRateOfSpec.USD.CHF.invert.produces valid rates (8 mutations)
189.51 s
[really-safe-money-gen] coverage (805/1610): Money\.ConversionRateOfSpec.CHF.INR.Rational.fromRational.produces valid conversion rates (11 mutations)
189.58 s
[really-safe-money-gen] coverage (800/1610): Money\.ConversionRateOfSpec.CHF.INR.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
189.60 s
[really-safe-money-gen] coverage (804/1610): Money\.ConversionRateOfSpec.CHF.INR.Rational.fromRational.roundtrips with toRational (11 mutations)
189.68 s
[really-safe-money-gen] coverage (802/1610): Money\.ConversionRateOfSpec.CHF.INR.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
189.82 s
[really-safe-money-gen] coverage (810/1610): Money\.ConversionRateOfSpec.USD.CHF.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
189.93 s
[really-safe-money-gen] coverage (809/1610): Money\.ConversionRateOfSpec.USD.CHF.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
189.99 s
[really-safe-money-gen] coverage (803/1610): Money\.ConversionRateOfSpec.CHF.INR.GenValid (ConversionRateOf CHF INR).genValid \:\: Gen (ConversionRateOf CHF INR).only generates valid '(ConversionRateOf CHF INR)'s (6 mutations)
190.16 s
[really-safe-money-gen] coverage (812/1610): Money\.ConversionRateOfSpec.USD.CHF.Rational.toRational.produces valid rationals (0 mutations)
190.29 s
[really-safe-money-gen] coverage (811/1610): Money\.ConversionRateOfSpec.USD.CHF.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
190.46 s
[really-safe-money-gen] coverage (826/1610): Money\.ConversionRateOfSpec.USD.USD.Rational.toRational.produces valid rationals (0 mutations)
190.54 s
[really-safe-money-gen] coverage (827/1610): Money\.ConversionRateOfSpec.USD.USD.Rational.fromRational.roundtrips with toRational (11 mutations)
190.75 s
[really-safe-money-gen] coverage (829/1610): Money\.ConversionRateOfSpec.USD.USD.compose.produces valid rates (6 mutations)
190.77 s
[really-safe-money-gen] coverage (828/1610): Money\.ConversionRateOfSpec.USD.USD.Rational.fromRational.produces valid conversion rates (11 mutations)
190.89 s
[really-safe-money-gen] coverage (825/1610): Money\.ConversionRateOfSpec.USD.USD.invert.produces valid rates (8 mutations)
191.05 s
[really-safe-money-gen] coverage (832/1610): Money\.ConversionRateOfSpec.USD.INR.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
191.27 s
[really-safe-money-gen] coverage (830/1610): Money\.ConversionRateOfSpec.USD.USD.GenValid (ConversionRateOf USD USD).genValid \:\: Gen (ConversionRateOf USD USD).only generates valid '(ConversionRateOf USD USD)'s (6 mutations)
191.30 s
[really-safe-money-gen] coverage (823/1610): Money\.ConversionRateOfSpec.USD.USD.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
191.37 s
[really-safe-money-gen] coverage (815/1610): Money\.ConversionRateOfSpec.USD.CHF.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
191.44 s
[really-safe-money-gen] coverage (831/1610): Money\.ConversionRateOfSpec.USD.INR.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
191.58 s
[really-safe-money-gen] coverage (820/1610): Money\.ConversionRateOfSpec.USD.USD.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
191.75 s
[really-safe-money-gen] coverage (817/1610): Money\.ConversionRateOfSpec.USD.CHF.Ratio.toRatio.produces valid ratios (0 mutations)
191.88 s
[really-safe-money-gen] coverage (814/1610): Money\.ConversionRateOfSpec.USD.CHF.Rational.fromRational.produces valid conversion rates (11 mutations)
191.90 s
[really-safe-money-gen] coverage (818/1610): Money\.ConversionRateOfSpec.USD.CHF.compose.produces valid rates (6 mutations)
192.27 s
[really-safe-money-gen] coverage (821/1610): Money\.ConversionRateOfSpec.USD.USD.Ratio.fromRatio.produces valid conversion rates (6 mutations)
192.35 s
[really-safe-money-gen] coverage (824/1610): Money\.ConversionRateOfSpec.USD.USD.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
192.44 s
[really-safe-money-gen] coverage (819/1610): Money\.ConversionRateOfSpec.USD.USD.Ratio.toRatio.produces valid ratios (0 mutations)
192.50 s
[really-safe-money-gen] coverage (839/1610): Money\.ConversionRateOfSpec.USD.INR.Ratio.fromRatio.produces valid conversion rates (6 mutations)
192.51 s
[really-safe-money-gen] coverage (838/1610): Money\.ConversionRateOfSpec.USD.INR.Ratio.toRatio.produces valid ratios (0 mutations)
192.52 s
[really-safe-money-gen] coverage (813/1610): Money\.ConversionRateOfSpec.USD.CHF.Rational.fromRational.roundtrips with toRational (11 mutations)
192.52 s
[really-safe-money-gen] coverage (816/1610): Money\.ConversionRateOfSpec.USD.CHF.Ratio.fromRatio.produces valid conversion rates (6 mutations)
192.59 s
[really-safe-money-gen] coverage (822/1610): Money\.ConversionRateOfSpec.USD.USD.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
192.63 s
[really-safe-money-gen] coverage (840/1610): Money\.ConversionRateOfSpec.USD.INR.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
192.75 s
[really-safe-money-gen] coverage (841/1610): Money\.ConversionRateOfSpec.USD.INR.invert.produces valid rates (8 mutations)
192.93 s
[really-safe-money-gen] coverage (842/1610): Money\.ConversionRateOfSpec.USD.INR.GenValid (ConversionRateOf USD INR).genValid \:\: Gen (ConversionRateOf USD INR).only generates valid '(ConversionRateOf USD INR)'s (6 mutations)
192.95 s
[really-safe-money-gen] coverage (843/1610): Money\.ConversionRateOfSpec.USD.BTC.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
193.18 s
[really-safe-money-gen] coverage (844/1610): Money\.ConversionRateOfSpec.USD.BTC.Ratio.fromRatio.produces valid conversion rates (6 mutations)
193.26 s
[really-safe-money-gen] coverage (845/1610): Money\.ConversionRateOfSpec.USD.BTC.Ratio.toRatio.produces valid ratios (0 mutations)
193.40 s
[really-safe-money-gen] coverage (837/1610): Money\.ConversionRateOfSpec.USD.INR.Rational.toRational.produces valid rationals (0 mutations)
193.49 s
[really-safe-money-gen] coverage (835/1610): Money\.ConversionRateOfSpec.USD.INR.Rational.fromRational.roundtrips with toRational (11 mutations)
193.73 s
[really-safe-money-gen] coverage (836/1610): Money\.ConversionRateOfSpec.USD.INR.Rational.fromRational.produces valid conversion rates (11 mutations)
193.74 s
[really-safe-money-gen] coverage (834/1610): Money\.ConversionRateOfSpec.USD.INR.compose.produces valid rates (6 mutations)
193.84 s
[really-safe-money-gen] coverage (847/1610): Money\.ConversionRateOfSpec.USD.BTC.Rational.toRational.produces valid rationals (0 mutations)
194.23 s
[really-safe-money-gen] coverage (849/1610): Money\.ConversionRateOfSpec.USD.BTC.Rational.fromRational.roundtrips with toRational (11 mutations)
194.26 s
[really-safe-money-gen] coverage (850/1610): Money\.ConversionRateOfSpec.USD.BTC.GenValid (ConversionRateOf USD BTC).genValid \:\: Gen (ConversionRateOf USD BTC).only generates valid '(ConversionRateOf USD BTC)'s (6 mutations)
194.38 s
[really-safe-money-gen] coverage (833/1610): Money\.ConversionRateOfSpec.USD.INR.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
194.40 s
[really-safe-money-gen] coverage (854/1610): Money\.ConversionRateOfSpec.USD.BTC.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
194.61 s
[really-safe-money-gen] coverage (855/1610): Money\.ConversionRateOfSpec.USD.ADA.GenValid (ConversionRateOf USD ADA).genValid \:\: Gen (ConversionRateOf USD ADA).only generates valid '(ConversionRateOf USD ADA)'s (6 mutations)
194.65 s
[really-safe-money-gen] coverage (852/1610): Money\.ConversionRateOfSpec.USD.BTC.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
194.75 s
[really-safe-money-gen] coverage (856/1610): Money\.ConversionRateOfSpec.USD.ADA.compose.produces valid rates (6 mutations)
194.76 s
[really-safe-money-gen] coverage (851/1610): Money\.ConversionRateOfSpec.USD.BTC.invert.produces valid rates (8 mutations)
195.17 s
[really-safe-money-gen] coverage (853/1610): Money\.ConversionRateOfSpec.USD.BTC.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
195.26 s
[really-safe-money-gen] coverage (671/1610): Money\.ConversionRateOfSpec.INR.USD.compose.produces valid rates (6 mutations)
195.39 s
[really-safe-money-gen] coverage (846/1610): Money\.ConversionRateOfSpec.USD.BTC.compose.produces valid rates (6 mutations)
195.45 s
[really-safe-money-gen] coverage (875/1610): Money\.ConversionRateOfSpec.BTC.ADA.GenValid (ConversionRateOf BTC ADA).genValid \:\: Gen (ConversionRateOf BTC ADA).only generates valid '(ConversionRateOf BTC ADA)'s (6 mutations)
195.50 s
[really-safe-money-gen] coverage (643/1610): Money\.ConversionRateOfSpec.INR.BTC.compose.produces valid rates (6 mutations)
195.51 s
[really-safe-money-gen] coverage (848/1610): Money\.ConversionRateOfSpec.USD.BTC.Rational.fromRational.produces valid conversion rates (11 mutations)
195.59 s
[really-safe-money-gen] coverage (642/1610): Money\.ConversionRateOfSpec.INR.BTC.invert.produces valid rates (8 mutations)
195.65 s
[really-safe-money-gen] coverage (867/1610): Money\.ConversionRateOfSpec.BTC.ADA.Ratio.toRatio.produces valid ratios (0 mutations)
195.68 s
[really-safe-money-gen] coverage (857/1610): Money\.ConversionRateOfSpec.USD.ADA.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
195.71 s
[really-safe-money-gen] coverage (869/1610): Money\.ConversionRateOfSpec.BTC.ADA.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
195.91 s
[really-safe-money-gen] coverage (868/1610): Money\.ConversionRateOfSpec.BTC.ADA.Ratio.fromRatio.produces valid conversion rates (6 mutations)
195.93 s
[really-safe-money-gen] coverage (859/1610): Money\.ConversionRateOfSpec.USD.ADA.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
196.00 s
[really-safe-money-gen] coverage (866/1610): Money\.ConversionRateOfSpec.USD.ADA.Rational.toRational.produces valid rationals (0 mutations)
196.26 s
[really-safe-money-gen] coverage (865/1610): Money\.ConversionRateOfSpec.USD.ADA.Rational.fromRational.roundtrips with toRational (11 mutations)
196.47 s
[really-safe-money-gen] coverage (863/1610): Money\.ConversionRateOfSpec.USD.ADA.Ratio.fromRatio.produces valid conversion rates (6 mutations)
196.48 s
[really-safe-money-gen] coverage (870/1610): Money\.ConversionRateOfSpec.BTC.ADA.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
196.58 s
[really-safe-money-gen] coverage (871/1610): Money\.ConversionRateOfSpec.BTC.ADA.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
196.80 s
[really-safe-money-gen] coverage (874/1610): Money\.ConversionRateOfSpec.BTC.ADA.invert.produces valid rates (8 mutations)
196.89 s
[really-safe-money-gen] coverage (861/1610): Money\.ConversionRateOfSpec.USD.ADA.Ratio.toRatio.produces valid ratios (0 mutations)
197.10 s
[really-safe-money-gen] coverage (873/1610): Money\.ConversionRateOfSpec.BTC.ADA.compose.produces valid rates (6 mutations)
197.11 s
[really-safe-money-gen] coverage (872/1610): Money\.ConversionRateOfSpec.BTC.ADA.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
197.20 s
[really-safe-money-gen] coverage (864/1610): Money\.ConversionRateOfSpec.USD.ADA.Rational.fromRational.produces valid conversion rates (11 mutations)
197.31 s
[really-safe-money-gen] coverage (878/1610): Money\.ConversionRateOfSpec.BTC.ADA.Rational.toRational.produces valid rationals (0 mutations)
197.36 s
[really-safe-money-gen] coverage (877/1610): Money\.ConversionRateOfSpec.BTC.ADA.Rational.fromRational.roundtrips with toRational (11 mutations)
197.66 s
[really-safe-money-gen] coverage (883/1610): Money\.ConversionRateOfSpec.BTC.USD.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
197.84 s
[really-safe-money-gen] coverage (885/1610): Money\.ConversionRateOfSpec.BTC.USD.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
197.94 s
[really-safe-money-gen] coverage (882/1610): Money\.ConversionRateOfSpec.BTC.USD.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
198.10 s
[really-safe-money-gen] coverage (884/1610): Money\.ConversionRateOfSpec.BTC.USD.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
198.15 s
[really-safe-money-gen] coverage (886/1610): Money\.ConversionRateOfSpec.BTC.USD.Ratio.fromRatio.produces valid conversion rates (6 mutations)
198.26 s
[really-safe-money-gen] coverage (888/1610): Money\.ConversionRateOfSpec.BTC.USD.compose.produces valid rates (6 mutations)
198.43 s
[really-safe-money-gen] coverage (890/1610): Money\.ConversionRateOfSpec.BTC.USD.GenValid (ConversionRateOf BTC USD).genValid \:\: Gen (ConversionRateOf BTC USD).only generates valid '(ConversionRateOf BTC USD)'s (6 mutations)
198.47 s
[really-safe-money-gen] coverage (891/1610): Money\.ConversionRateOfSpec.BTC.INR.compose.produces valid rates (6 mutations)
198.48 s
[really-safe-money-gen] coverage (887/1610): Money\.ConversionRateOfSpec.BTC.USD.Ratio.toRatio.produces valid ratios (0 mutations)
198.52 s
[really-safe-money-gen] coverage (879/1610): Money\.ConversionRateOfSpec.BTC.USD.Rational.toRational.produces valid rationals (0 mutations)
198.54 s
[really-safe-money-gen] coverage (892/1610): Money\.ConversionRateOfSpec.BTC.INR.GenValid (ConversionRateOf BTC INR).genValid \:\: Gen (ConversionRateOf BTC INR).only generates valid '(ConversionRateOf BTC INR)'s (6 mutations)
198.66 s
[really-safe-money-gen] coverage (897/1610): Money\.ConversionRateOfSpec.BTC.INR.Rational.fromRational.roundtrips with toRational (11 mutations)
198.74 s
[really-safe-money-gen] coverage (896/1610): Money\.ConversionRateOfSpec.BTC.INR.invert.produces valid rates (8 mutations)
198.92 s
[really-safe-money-gen] coverage (893/1610): Money\.ConversionRateOfSpec.BTC.INR.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
199.01 s
[really-safe-money-gen] coverage (899/1610): Money\.ConversionRateOfSpec.BTC.INR.Rational.toRational.produces valid rationals (0 mutations)
199.11 s
[really-safe-money-gen] coverage (898/1610): Money\.ConversionRateOfSpec.BTC.INR.Rational.fromRational.produces valid conversion rates (11 mutations)
199.34 s
[really-safe-money-gen] coverage (895/1610): Money\.ConversionRateOfSpec.BTC.INR.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
199.61 s
[really-safe-money-gen] coverage (894/1610): Money\.ConversionRateOfSpec.BTC.INR.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
199.84 s
[really-safe-money-gen] coverage (876/1610): Money\.ConversionRateOfSpec.BTC.ADA.Rational.fromRational.produces valid conversion rates (11 mutations)
199.86 s
[really-safe-money-gen] coverage (860/1610): Money\.ConversionRateOfSpec.USD.ADA.invert.produces valid rates (8 mutations)
199.99 s
[really-safe-money-gen] coverage (881/1610): Money\.ConversionRateOfSpec.BTC.USD.Rational.fromRational.produces valid conversion rates (11 mutations)
200.39 s
[really-safe-money-gen] coverage (880/1610): Money\.ConversionRateOfSpec.BTC.USD.Rational.fromRational.roundtrips with toRational (11 mutations)
200.63 s
[really-safe-money-gen] coverage (889/1610): Money\.ConversionRateOfSpec.BTC.USD.invert.produces valid rates (8 mutations)
200.88 s
[really-safe-money-gen] coverage (904/1610): Money\.ConversionRateOfSpec.BTC.CHF.GenValid (ConversionRateOf BTC CHF).genValid \:\: Gen (ConversionRateOf BTC CHF).only generates valid '(ConversionRateOf BTC CHF)'s (6 mutations)
200.96 s
[really-safe-money-gen] coverage (911/1610): Money\.ConversionRateOfSpec.BTC.CHF.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
200.96 s
[really-safe-money-gen] coverage (905/1610): Money\.ConversionRateOfSpec.BTC.CHF.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
200.99 s
[really-safe-money-gen] coverage (910/1610): Money\.ConversionRateOfSpec.BTC.CHF.Ratio.fromRatio.produces valid conversion rates (6 mutations)
201.03 s
[really-safe-money-gen] coverage (912/1610): Money\.ConversionRateOfSpec.BTC.CHF.Rational.fromRational.roundtrips with toRational (11 mutations)
201.39 s
[really-safe-money-gen] coverage (914/1610): Money\.ConversionRateOfSpec.BTC.CHF.Rational.toRational.produces valid rationals (0 mutations)
201.78 s
[really-safe-money-gen] coverage (913/1610): Money\.ConversionRateOfSpec.BTC.CHF.Rational.fromRational.produces valid conversion rates (11 mutations)
201.93 s
[really-safe-money-gen] coverage (915/1610): Money\.ConversionRateOfSpec.BTC.BTC.invert.produces valid rates (8 mutations)
202.06 s
[really-safe-money-gen] coverage (916/1610): Money\.ConversionRateOfSpec.BTC.BTC.Rational.toRational.produces valid rationals (0 mutations)
202.16 s
[really-safe-money-gen] coverage (919/1610): Money\.ConversionRateOfSpec.BTC.BTC.compose.produces valid rates (6 mutations)
202.30 s
[really-safe-money-gen] coverage (917/1610): Money\.ConversionRateOfSpec.BTC.BTC.Rational.fromRational.produces valid conversion rates (11 mutations)
202.65 s
[really-safe-money-gen] coverage (920/1610): Money\.ConversionRateOfSpec.BTC.BTC.GenValid (ConversionRateOf BTC BTC).genValid \:\: Gen (ConversionRateOf BTC BTC).only generates valid '(ConversionRateOf BTC BTC)'s (6 mutations)
202.67 s
[really-safe-money-gen] coverage (922/1610): Money\.ConversionRateOfSpec.BTC.BTC.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
202.78 s
[really-safe-money-gen] coverage (926/1610): Money\.ConversionRateOfSpec.BTC.BTC.Ratio.toRatio.produces valid ratios (0 mutations)
202.78 s
[really-safe-money-gen] coverage (929/1610): Money\.QuantisationFactorSpec.digits.works on 20 (0 mutations)
202.93 s
[really-safe-money-gen] coverage (924/1610): Money\.ConversionRateOfSpec.BTC.BTC.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
202.96 s
[really-safe-money-gen] coverage (928/1610): Money\.QuantisationFactorSpec.digits.works on 10 (0 mutations)
203.04 s
[really-safe-money-gen] coverage (921/1610): Money\.ConversionRateOfSpec.BTC.BTC.DecimalLiteral.toDecimalLiteral.produces valid literals (21 mutations)
203.22 s
[really-safe-money-gen] coverage (931/1610): Money\.QuantisationFactorSpec.digits.produces valid numbers of digits (0 mutations)
203.23 s
[really-safe-money-gen] coverage (927/1610): Money\.QuantisationFactorSpec.fromWord32.produces valid quantisation factors (6 mutations)
203.39 s
[really-safe-money-gen] coverage (932/1610): Money\.QuantisationFactorSpec.digits.works on 1 (0 mutations)
203.78 s
[really-safe-money-gen] coverage (933/1610): Money\.QuantisationFactorSpec.DecimalLiteral.fromDecimalLiteral.fails to render a non-1 integer (22 mutations)
204.26 s
[really-safe-money-gen] coverage (935/1610): Money\.QuantisationFactorSpec.DecimalLiteral.fromDecimalLiteral.produces valid factors (31 mutations)
204.29 s
[really-safe-money-gen] coverage (934/1610): Money\.QuantisationFactorSpec.DecimalLiteral.fromDecimalLiteral.fails to render negative fractionals (16 mutations)
204.65 s
[really-safe-money-gen] coverage (936/1610): Money\.QuantisationFactorSpec.DecimalLiteral.fromDecimalLiteral.fails to render a 0 (9 mutations)
204.69 s
[really-safe-money-gen] coverage (858/1610): Money\.ConversionRateOfSpec.USD.ADA.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
204.71 s
[really-safe-money-gen] coverage (939/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn DecimalLiteral Nothing 1 1 into quantisation factor 10 (25 mutations)
204.81 s
[really-safe-money-gen] coverage (945/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn DecimalLiteral Nothing 1 0 into quantisation factor 1 (25 mutations)
205.05 s
[really-safe-money-gen] coverage (941/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn quantisation factor 50 into DecimalLiteral Nothing 2 2 (22 mutations)
205.17 s
[really-safe-money-gen] coverage (942/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn DecimalLiteral Nothing 1 3 into quantisation factor 1000 (25 mutations)
205.26 s
[really-safe-money-gen] coverage (948/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn quantisation factor 1 into DecimalLiteral Nothing 1 0 (20 mutations)
205.50 s
[really-safe-money-gen] coverage (950/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn quantisation factor 1000 into DecimalLiteral Nothing 1 3 (22 mutations)
205.96 s
[really-safe-money-gen] coverage (944/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn DecimalLiteral Nothing 2 2 into quantisation factor 50 (25 mutations)
206.01 s
[really-safe-money-gen] coverage (949/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn DecimalLiteral Nothing 1 2 into quantisation factor 100 (25 mutations)
206.11 s
[really-safe-money-gen] coverage (943/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn quantisation factor 10 into DecimalLiteral Nothing 1 1 (22 mutations)
206.21 s
[really-safe-money-gen] coverage (952/1610): Money\.MultiAccountSpec.subtractAmount.produces valid amounts (34 mutations)
206.25 s
[really-safe-money-gen] coverage (953/1610): Money\.MultiAccountSpec.subtractAmount.computes this example correctly (19 mutations)
206.45 s
[really-safe-money-gen] coverage (940/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn quantisation factor 100 into DecimalLiteral Nothing 1 2 (22 mutations)
206.54 s
[really-safe-money-gen] coverage (947/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn DecimalLiteral Nothing 5 2 into quantisation factor 20 (25 mutations)
206.57 s
[really-safe-money-gen] coverage (946/1610): Money\.QuantisationFactorSpec.DecimalLiteral.can turn quantisation factor 20 into DecimalLiteral Nothing 5 2 (22 mutations)
206.86 s
[really-safe-money-gen] coverage (930/1610): Money\.QuantisationFactorSpec.digits.works on 100 (0 mutations)
206.90 s
[really-safe-money-gen] coverage (903/1610): Money\.ConversionRateOfSpec.BTC.CHF.compose.produces valid rates (6 mutations)
206.98 s
[really-safe-money-gen] coverage (909/1610): Money\.ConversionRateOfSpec.BTC.CHF.Ratio.toRatio.produces valid ratios (0 mutations)
207.23 s
[really-safe-money-gen] coverage (923/1610): Money\.ConversionRateOfSpec.BTC.BTC.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
207.33 s
[really-safe-money-gen] coverage (908/1610): Money\.ConversionRateOfSpec.BTC.CHF.invert.produces valid rates (8 mutations)
207.49 s
[really-safe-money-gen] coverage (906/1610): Money\.ConversionRateOfSpec.BTC.CHF.DecimalLiteral.fromDecimalLiteral.produces valid conversion rates (14 mutations)
207.53 s
[really-safe-money-gen] coverage (907/1610): Money\.ConversionRateOfSpec.BTC.CHF.DecimalLiteral.fromDecimalLiteral.roundtrips with toDecimalLiteral (35 mutations)
207.87 s
[really-safe-money-gen] coverage (902/1610): Money\.ConversionRateOfSpec.BTC.INR.Ratio.toRatio.produces valid ratios (0 mutations)
208.07 s
[really-safe-money-gen] coverage (925/1610): Money\.ConversionRateOfSpec.BTC.BTC.Ratio.fromRatio.produces valid conversion rates (6 mutations)
208.19 s
[really-safe-money-gen] coverage (900/1610): Money\.ConversionRateOfSpec.BTC.INR.Ratio.fromRatio.produces valid conversion rates (6 mutations)
208.33 s
[really-safe-money-gen] coverage (956/1610): Money\.MultiAccountSpec.add.has a right-identity\: zero (4 mutations)
208.55 s
[really-safe-money-gen] coverage (901/1610): Money\.ConversionRateOfSpec.BTC.INR.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
208.98 s
[really-safe-money-gen] coverage (961/1610): Money\.MultiAccountSpec.GenValid (MultiAccount Currency).genValid \:\: Gen (MultiAccount Currency).only generates valid '(MultiAccount Currency)'s (15 mutations)
209.03 s
[really-safe-money-gen] coverage (963/1610): Money\.MultiAccountSpec.Eq (MultiAccount Currency).(==) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is symmetric for "valid (MultiAccount Currency)"s (1 mutations)
209.07 s
[really-safe-money-gen] coverage (962/1610): Money\.MultiAccountSpec.Eq (MultiAccount Currency).(==) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is reflexive for "valid (MultiAccount Currency)"s (4 mutations)
209.15 s
[really-safe-money-gen] coverage (964/1610): Money\.MultiAccountSpec.Eq (MultiAccount Currency).(==) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is transitive for "valid (MultiAccount Currency)"s (1 mutations)
209.41 s
[really-safe-money-gen] coverage (965/1610): Money\.MultiAccountSpec.Eq (MultiAccount Currency).(==) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (MultiAccount Currency)"s (1 mutations)
209.68 s
[really-safe-money-gen] coverage (955/1610): Money\.MultiAccountSpec.subtractAmount.removes a zero amount (19 mutations)
209.99 s
[really-safe-money-gen] coverage (970/1610): Money\.MultiAccountSpec.zero.is valid (2 mutations)
210.05 s
[really-safe-money-gen] coverage (966/1610): Money\.MultiAccountSpec.Eq (MultiAccount Currency).(/=) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (MultiAccount Currency)"s (1 mutations)
210.32 s
[really-safe-money-gen] coverage (958/1610): Money\.MultiAccountSpec.add.produces valid amounts (34 mutations)
210.36 s
[really-safe-money-gen] coverage (971/1610): Money\.MultiAccountSpec.fromAccount.produces valid amounts (19 mutations)
210.37 s
[really-safe-money-gen] coverage (960/1610): Money\.MultiAccountSpec.add.has a left-identity\: zero (6 mutations)
210.53 s
[really-safe-money-gen] coverage (969/1610): Money\.MultiAccountSpec.Show (MultiAccount Currency) and Read (MultiAccount Currency).are implemented such that read \. show == id for valid values (4 mutations)
210.80 s
[really-safe-money-gen] coverage (973/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(>=) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is reflexive for "valid (MultiAccount Currency)"'s (4 mutations)
210.89 s
[really-safe-money-gen] coverage (972/1610): Money\.MultiAccountSpec.addAccount.produces valid amounts (34 mutations)
210.98 s
[really-safe-money-gen] coverage (974/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(>=) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is transitive for "valid (MultiAccount Currency)"'s (4 mutations)
211.01 s
[really-safe-money-gen] coverage (975/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(>=) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is antisymmetric for "valid (MultiAccount Currency)"'s (4 mutations)
211.12 s
[really-safe-money-gen] coverage (968/1610): Money\.MultiAccountSpec.sum.produces valid amounts (34 mutations)
211.15 s
[really-safe-money-gen] coverage (976/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(>=) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (MultiAccount Currency)"'s (4 mutations)
211.17 s
[really-safe-money-gen] coverage (959/1610): Money\.MultiAccountSpec.add.is associative when both succeed (23 mutations)
211.35 s
[really-safe-money-gen] coverage (957/1610): Money\.MultiAccountSpec.add.is commutative (23 mutations)
211.57 s
[really-safe-money-gen] coverage (978/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(>) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (MultiAccount Currency)"'s (4 mutations)
211.62 s
[really-safe-money-gen] coverage (979/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(>) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is antireflexive for "valid (MultiAccount Currency)"'s (4 mutations)
211.73 s
[really-safe-money-gen] coverage (977/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency)."min \:\: (MultiAccount Currency -> MultiAccount Currency -> MultiAccount Currency)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (MultiAccount Currency)"'s (4 mutations)
211.89 s
[really-safe-money-gen] coverage (981/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(<=) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (MultiAccount Currency)"'s (4 mutations)
211.97 s
[really-safe-money-gen] coverage (980/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(>) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is transitive for "valid (MultiAccount Currency)"'s (4 mutations)
212.31 s
[really-safe-money-gen] coverage (982/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(<=) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is reflexive for "valid (MultiAccount Currency)"'s (4 mutations)
212.52 s
[really-safe-money-gen] coverage (983/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(<=) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is antisymmetric for "valid (MultiAccount Currency)"'s (4 mutations)
212.60 s
[really-safe-money-gen] coverage (984/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(<=) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is transitive for "valid (MultiAccount Currency)"'s (4 mutations)
212.64 s
[really-safe-money-gen] coverage (985/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(<) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is transitive for "valid (MultiAccount Currency)"'s (4 mutations)
212.91 s
[really-safe-money-gen] coverage (986/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(<) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is antireflexive for "valid (MultiAccount Currency)"'s (4 mutations)
213.07 s
[really-safe-money-gen] coverage (987/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency).(<) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (MultiAccount Currency)"'s (4 mutations)
213.72 s
[really-safe-money-gen] coverage (988/1610): Money\.MultiAccountSpec.Ord (MultiAccount Currency)."max \:\: (MultiAccount Currency -> MultiAccount Currency -> MultiAccount Currency)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (MultiAccount Currency)"'s (4 mutations)
213.77 s
[really-safe-money-gen] coverage (954/1610): Money\.MultiAccountSpec.subtractAmount.adds a non zero amount (5 mutations)
213.81 s
[really-safe-money-gen] coverage (967/1610): Money\.MultiAccountSpec.Eq (MultiAccount Currency).(/=) \:\: (MultiAccount Currency) -> (MultiAccount Currency) -> Bool.is antireflexive for "valid (MultiAccount Currency)"s (4 mutations)
213.98 s
[really-safe-money-gen] coverage (993/1610): Money\.MultiAccountSpec.addAmount.adds a non zero amount (5 mutations)
214.09 s
[really-safe-money-gen] coverage (989/1610): Money\.MultiAccountSpec.subtract.produces valid amounts (34 mutations)
214.44 s
[really-safe-money-gen] coverage (1000/1610): Money\.AmountOfSpec.USD.toMinimalQuantisations.produces valid Int64s (0 mutations)
214.44 s
[really-safe-money-gen] coverage (997/1610): Money\.MultiAccountSpec.lookupAccount.produces valid amounts (4 mutations)
214.47 s
[really-safe-money-gen] coverage (999/1610): Money\.MultiAccountSpec.convertAll.produces the right result in this example (15 mutations)
214.52 s
[really-safe-money-gen] coverage (991/1610): Money\.MultiAccountSpec.addAmount.produces valid amounts (34 mutations)
214.58 s
[really-safe-money-gen] coverage (1003/1610): Money\.AmountOfSpec.USD.CHF.convert.produces valid amounts (15 mutations)
214.60 s
[really-safe-money-gen] coverage (995/1610): Money\.MultiAccountSpec.subtractAccount.produces valid amounts (34 mutations)
214.69 s
[really-safe-money-gen] coverage (1002/1610): Money\.AmountOfSpec.USD.CHF.rate.produces valid amounts (6 mutations)
214.78 s
[really-safe-money-gen] coverage (1001/1610): Money\.AmountOfSpec.USD.toMinimalQuantisations.roundtrips with fromMinimalQuantisations (0 mutations)
214.96 s
[really-safe-money-gen] coverage (1004/1610): Money\.AmountOfSpec.USD.fromRatio.succeeds on 1 (13 mutations)
215.03 s
[really-safe-money-gen] coverage (1005/1610): Money\.AmountOfSpec.USD.fromRatio.roundtrips with toRatio (13 mutations)
215.20 s
[really-safe-money-gen] coverage (1006/1610): Money\.AmountOfSpec.USD.fromRatio.produces valid AmountOfs (13 mutations)
215.33 s
[really-safe-money-gen] coverage (1007/1610): Money\.AmountOfSpec.USD.fromRatio.succeeds on 77 (13 mutations)
215.52 s
[really-safe-money-gen] coverage (1008/1610): Money\.AmountOfSpec.USD.fromRatio.fails on NaN (2 mutations)
215.63 s
[really-safe-money-gen] coverage (1009/1610): Money\.AmountOfSpec.USD.fromRatio.succeeds on 0 (14 mutations)
215.99 s
[really-safe-money-gen] coverage (951/1610): Money\.QuantisationFactorSpec.GenValid QuantisationFactor.genValid \:\: Gen QuantisationFactor.only generates valid 'QuantisationFactor's (6 mutations)
216.21 s
[really-safe-money-gen] coverage (1010/1610): Money\.AmountOfSpec.USD.fromRatio.fails on 7\.123 (9 mutations)
216.61 s
[really-safe-money-gen] coverage (1011/1610): Money\.AmountOfSpec.USD.fromRatio.fails on +Infinity (2 mutations)
216.62 s
[really-safe-money-gen] coverage (1013/1610): Money\.AmountOfSpec.USD.add.has a right-identity\: zero (5 mutations)
216.67 s
[really-safe-money-gen] coverage (1012/1610): Money\.AmountOfSpec.USD.add.matches what you would get with Integer, if nothing fails (4 mutations)
216.92 s
[really-safe-money-gen] coverage (1014/1610): Money\.AmountOfSpec.USD.add.produces valid amounts (4 mutations)
217.08 s
[really-safe-money-gen] coverage (1015/1610): Money\.AmountOfSpec.USD.add.has a left-identity\: zero (5 mutations)
218.07 s
[really-safe-money-gen] coverage (1016/1610): Money\.AmountOfSpec.USD.add.is commutative (4 mutations)
218.19 s
[really-safe-money-gen] coverage (1020/1610): Money\.AmountOfSpec.USD.fromRational.fails on -1 (5 mutations)
218.20 s
[really-safe-money-gen] coverage (1017/1610): Money\.AmountOfSpec.USD.add.is associative when both succeed (4 mutations)
218.30 s
[really-safe-money-gen] coverage (1018/1610): Money\.AmountOfSpec.USD.fromMinimalQuantisations.produces valid amounts (0 mutations)
218.62 s
[really-safe-money-gen] coverage (1021/1610): Money\.AmountOfSpec.USD.fromRational.fails on +Infinity (2 mutations)
218.82 s
[really-safe-money-gen] coverage (862/1610): Money\.ConversionRateOfSpec.USD.ADA.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
218.90 s
[really-safe-money-gen] coverage (1024/1610): Money\.AmountOfSpec.USD.fromRational.fails on -Infinity (2 mutations)
218.95 s
[really-safe-money-gen] coverage (1023/1610): Money\.AmountOfSpec.USD.fromRational.fails on NaN (2 mutations)
218.96 s
[really-safe-money-gen] coverage (1025/1610): Money\.AmountOfSpec.USD.fromRational.succeeds on 1 (13 mutations)
219.13 s
[really-safe-money-gen] coverage (1026/1610): Money\.AmountOfSpec.USD.fromRational.succeeds on 0 (13 mutations)
219.18 s
[really-safe-money-gen] coverage (1022/1610): Money\.AmountOfSpec.USD.fromRational.produces valid Amounts (13 mutations)
219.29 s
[really-safe-money-gen] coverage (998/1610): Money\.MultiAccountSpec.convertAll.produces valid results when converting two currencies to one (20 mutations)
219.30 s
[really-safe-money-gen] coverage (1029/1610): Money\.AmountOfSpec.USD.zero.is valid (1 mutations)
219.36 s
[really-safe-money-gen] coverage (1030/1610): Money\.AmountOfSpec.USD.Show (AmountOf * USD) and Read (AmountOf * USD).are implemented such that read \. show == id for valid values (1 mutations)
219.43 s
[really-safe-money-gen] coverage (1031/1610): Money\.AmountOfSpec.USD.BTC.convert.produces valid amounts (15 mutations)
219.45 s
[really-safe-money-gen] coverage (1033/1610): Money\.AmountOfSpec.USD.fromDouble.produces valid amounts (22 mutations)
219.61 s
[really-safe-money-gen] coverage (1032/1610): Money\.AmountOfSpec.USD.BTC.rate.produces valid amounts (6 mutations)
219.75 s
[really-safe-money-gen] coverage (1035/1610): Money\.AmountOfSpec.USD.fromDouble.succeeds on 1 (22 mutations)
219.88 s
[really-safe-money-gen] coverage (1037/1610): Money\.AmountOfSpec.USD.fromDouble.fails on -Infinity (3 mutations)
220.15 s
[really-safe-money-gen] coverage (1034/1610): Money\.AmountOfSpec.USD.fromDouble.succeeds on 0 (22 mutations)
220.30 s
[really-safe-money-gen] coverage (996/1610): Money\.MultiAccountSpec.lookupAccount.can find an added amount (6 mutations)
220.40 s
[really-safe-money-gen] coverage (669/1610): Money\.ConversionRateOfSpec.INR.USD.Ratio.fromRatio.produces valid conversion rates (6 mutations)
220.59 s
[really-safe-money-gen] coverage (994/1610): Money\.MultiAccountSpec.addAmount.removes a zero amount (19 mutations)
220.62 s
[really-safe-money-gen] coverage (992/1610): Money\.MultiAccountSpec.addAmount.computes this example correctly (14 mutations)
220.73 s
[really-safe-money-gen] coverage (668/1610): Money\.ConversionRateOfSpec.INR.USD.Ratio.fromRatio.roundtrips with toRatio (6 mutations)
220.95 s
[really-safe-money-gen] coverage (665/1610): Money\.ConversionRateOfSpec.INR.USD.Rational.fromRational.produces valid conversion rates (11 mutations)
221.47 s
[really-safe-money-gen] coverage (756/1610): Money\.ConversionRateOfSpec.CHF.BTC.Ratio.toRatio.produces valid ratios (0 mutations)
221.54 s
[really-safe-money-gen] coverage (1040/1610): Money\.AmountOfSpec.USD.fraction.produces valid amounts (10 mutations)
221.59 s
[really-safe-money-gen] coverage (1044/1610): Money\.AmountOfSpec.USD.USD.convert.produces valid amounts (15 mutations)
221.64 s
[really-safe-money-gen] coverage (1039/1610): Money\.AmountOfSpec.USD.fromDouble.fails on -1 (3 mutations)
221.89 s
[really-safe-money-gen] coverage (1043/1610): Money\.AmountOfSpec.USD.USD.rate.produces valid amounts (6 mutations)
221.97 s
[really-safe-money-gen] coverage (1046/1610): Money\.AmountOfSpec.USD.sum.matches what you would get with Integer, if nothing fails (5 mutations)
222.01 s
[really-safe-money-gen] coverage (1036/1610): Money\.AmountOfSpec.USD.fromDouble.fails on +Infinity (7 mutations)
222.05 s
[really-safe-money-gen] coverage (1045/1610): Money\.AmountOfSpec.USD.sum.produces valid amounts (5 mutations)
222.17 s
[really-safe-money-gen] coverage (1049/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(<) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is transitive for "valid (AmountOf * USD)"'s (0 mutations)
222.18 s
[really-safe-money-gen] coverage (1047/1610): Money\.AmountOfSpec.USD.subtract.matches what you would get with Integer, if nothing fails (5 mutations)
222.29 s
[really-safe-money-gen] coverage (1050/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(<) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (AmountOf * USD)"'s (0 mutations)
222.30 s
[really-safe-money-gen] coverage (1048/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(<) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is antireflexive for "valid (AmountOf * USD)"'s (0 mutations)
222.38 s
[really-safe-money-gen] coverage (1052/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(>) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is transitive for "valid (AmountOf * USD)"'s (0 mutations)
222.43 s
[really-safe-money-gen] coverage (1027/1610): Money\.AmountOfSpec.USD.toRational.produces valid Rationals (0 mutations)
222.57 s
[really-safe-money-gen] coverage (1019/1610): Money\.AmountOfSpec.USD.fromRational.roundtrips with toRational (13 mutations)
222.65 s
[really-safe-money-gen] coverage (1028/1610): Money\.AmountOfSpec.USD.GenValid (AmountOf * USD).genValid \:\: Gen (AmountOf * USD).only generates valid '(AmountOf * USD)'s (0 mutations)
222.91 s
[really-safe-money-gen] coverage (1056/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(<=) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is antisymmetric for "valid (AmountOf * USD)"'s (0 mutations)
222.91 s
[really-safe-money-gen] coverage (1055/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(<=) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is reflexive for "valid (AmountOf * USD)"'s (0 mutations)
223.39 s
[really-safe-money-gen] coverage (990/1610): Money\.MultiAccountSpec.subtract.has a right-identity\: zero (4 mutations)
223.40 s
[really-safe-money-gen] coverage (1060/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(>=) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (AmountOf * USD)"'s (0 mutations)
223.65 s
[really-safe-money-gen] coverage (1041/1610): Money\.AmountOfSpec.USD.INR.convert.produces valid amounts (15 mutations)
223.71 s
[really-safe-money-gen] coverage (1042/1610): Money\.AmountOfSpec.USD.INR.rate.produces valid amounts (6 mutations)
223.88 s
[really-safe-money-gen] coverage (918/1610): Money\.ConversionRateOfSpec.BTC.BTC.Rational.fromRational.roundtrips with toRational (11 mutations)
223.88 s
[really-safe-money-gen] coverage (1038/1610): Money\.AmountOfSpec.USD.fromDouble.fails on NaN (5 mutations)
224.23 s
[really-safe-money-gen] coverage (1068/1610): Money\.AmountOfSpec.USD.multiply.is distributive with add when both succeed (8 mutations)
224.37 s
[really-safe-money-gen] coverage (1067/1610): Money\.AmountOfSpec.USD.multiply.is absorbed by 0 (5 mutations)
224.85 s
[really-safe-money-gen] coverage (1064/1610): Money\.AmountOfSpec.USD.toRatio.produces valid Rationals when the quantisation factor is nonzero (0 mutations)
224.97 s
[really-safe-money-gen] coverage (1079/1610): Money\.AmountOfSpec.USD.distribute.Eq (Distribution (AmountOf * USD)).(==) \:\: (Distribution (AmountOf * USD)) -> (Distribution (AmountOf * USD)) -> Bool.is symmetric for "valid (Distribution (AmountOf * USD))"s (1 mutations)
225.06 s
[really-safe-money-gen] coverage (1081/1610): Money\.AmountOfSpec.USD.ADA.convert.produces valid amounts (15 mutations)
225.11 s
[really-safe-money-gen] coverage (1082/1610): Money\.AmountOfSpec.USD.ADA.rate.produces valid amounts (6 mutations)
225.38 s
[really-safe-money-gen] coverage (1063/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(>=) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is transitive for "valid (AmountOf * USD)"'s (0 mutations)
225.46 s
[really-safe-money-gen] coverage (1084/1610): Money\.AmountOfSpec.USD.Eq (AmountOf * USD).(==) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is symmetric for "valid (AmountOf * USD)"s (0 mutations)
225.51 s
[really-safe-money-gen] coverage (1078/1610): Money\.AmountOfSpec.USD.distribute.Eq (Distribution (AmountOf * USD)).(==) \:\: (Distribution (AmountOf * USD)) -> (Distribution (AmountOf * USD)) -> Bool.is reflexive for "valid (Distribution (AmountOf * USD))"s (1 mutations)
225.53 s
[really-safe-money-gen] coverage (1085/1610): Money\.AmountOfSpec.USD.Eq (AmountOf * USD).(==) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is reflexive for "valid (AmountOf * USD)"s (0 mutations)
225.63 s
[really-safe-money-gen] coverage (1080/1610): Money\.AmountOfSpec.USD.distribute.Eq (Distribution (AmountOf * USD)).(==) \:\: (Distribution (AmountOf * USD)) -> (Distribution (AmountOf * USD)) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution (AmountOf * USD))"s (1 mutations)
225.73 s
[really-safe-money-gen] coverage (1077/1610): Money\.AmountOfSpec.USD.distribute.Eq (Distribution (AmountOf * USD)).(==) \:\: (Distribution (AmountOf * USD)) -> (Distribution (AmountOf * USD)) -> Bool.is transitive for "valid (Distribution (AmountOf * USD))"s (1 mutations)
225.75 s
[really-safe-money-gen] coverage (1061/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(>=) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is antisymmetric for "valid (AmountOf * USD)"'s (0 mutations)
225.86 s
[really-safe-money-gen] coverage (1083/1610): Money\.AmountOfSpec.USD.Eq (AmountOf * USD).(==) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (AmountOf * USD)"s (0 mutations)
225.91 s
[really-safe-money-gen] coverage (1057/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(<=) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (AmountOf * USD)"'s (0 mutations)
225.93 s
[really-safe-money-gen] coverage (1065/1610): Money\.AmountOfSpec.USD.format.produces valid strings (3 mutations)
226.05 s
[really-safe-money-gen] coverage (1059/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD)."max \:\: (AmountOf * USD -> AmountOf * USD -> AmountOf * USD)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (AmountOf * USD)"'s (0 mutations)
226.12 s
[really-safe-money-gen] coverage (1058/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD)."min \:\: (AmountOf * USD -> AmountOf * USD -> AmountOf * USD)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (AmountOf * USD)"'s (0 mutations)
226.48 s
[really-safe-money-gen] coverage (1075/1610): Money\.AmountOfSpec.USD.distribute.Eq (Distribution (AmountOf * USD)).(/=) \:\: (Distribution (AmountOf * USD)) -> (Distribution (AmountOf * USD)) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution (AmountOf * USD))"s (1 mutations)
226.49 s
[really-safe-money-gen] coverage (1066/1610): Money\.AmountOfSpec.USD.multiply.matches what you would get with Integer, if nothing fails (4 mutations)
226.90 s
[really-safe-money-gen] coverage (1069/1610): Money\.AmountOfSpec.USD.multiply.has an identity\: 1 (4 mutations)
226.95 s
[really-safe-money-gen] coverage (1076/1610): Money\.AmountOfSpec.USD.distribute.Eq (Distribution (AmountOf * USD)).(/=) \:\: (Distribution (AmountOf * USD)) -> (Distribution (AmountOf * USD)) -> Bool.is antireflexive for "valid (Distribution (AmountOf * USD))"s (1 mutations)
227.31 s
[really-safe-money-gen] coverage (1070/1610): Money\.AmountOfSpec.USD.multiply.produces valid amounts (4 mutations)
227.49 s
[really-safe-money-gen] coverage (1071/1610): Money\.AmountOfSpec.USD.toDouble.produces valid Doubles (0 mutations)
227.51 s
[really-safe-money-gen] coverage (1072/1610): Money\.AmountOfSpec.USD.distribute.Show (Distribution (AmountOf * USD)) and Read (Distribution (AmountOf * USD)).are implemented such that read \. show == id for valid values (1 mutations)
227.60 s
[really-safe-money-gen] coverage (1074/1610): Money\.AmountOfSpec.USD.distribute.produces results that sum up to the greater whole (18 mutations)
227.80 s
[really-safe-money-gen] coverage (1073/1610): Money\.AmountOfSpec.USD.distribute.produces valid amounts (17 mutations)
228.11 s
[really-safe-money-gen] coverage (1054/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(<=) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is transitive for "valid (AmountOf * USD)"'s (0 mutations)
228.71 s
[really-safe-money-gen] coverage (1087/1610): Money\.AmountOfSpec.USD.Eq (AmountOf * USD).(/=) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (AmountOf * USD)"s (0 mutations)
228.92 s
[really-safe-money-gen] coverage (1053/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(>) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (AmountOf * USD)"'s (0 mutations)
228.94 s
[really-safe-money-gen] coverage (1051/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(>) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is antireflexive for "valid (AmountOf * USD)"'s (0 mutations)
229.09 s
[really-safe-money-gen] coverage (1091/1610): Money\.AmountOfSpec.ADA.Eq (AmountOf * ADA).(==) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is transitive for "valid (AmountOf * ADA)"s (0 mutations)
229.09 s
[really-safe-money-gen] coverage (1089/1610): Money\.AmountOfSpec.ADA.BTC.convert.produces valid amounts (15 mutations)
229.34 s
[really-safe-money-gen] coverage (1090/1610): Money\.AmountOfSpec.ADA.BTC.rate.produces valid amounts (6 mutations)
229.57 s
[really-safe-money-gen] coverage (1097/1610): Money\.AmountOfSpec.ADA.zero.is valid (1 mutations)
229.63 s
[really-safe-money-gen] coverage (1096/1610): Money\.AmountOfSpec.ADA.Eq (AmountOf * ADA).(/=) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (AmountOf * ADA)"s (0 mutations)
229.78 s
[really-safe-money-gen] coverage (1098/1610): Money\.AmountOfSpec.ADA.Show (AmountOf * ADA) and Read (AmountOf * ADA).are implemented such that read \. show == id for valid values (1 mutations)
229.82 s
[really-safe-money-gen] coverage (1100/1610): Money\.AmountOfSpec.ADA.toRational.produces valid Rationals (0 mutations)
229.95 s
[really-safe-money-gen] coverage (1099/1610): Money\.AmountOfSpec.ADA.toRatio.produces valid Rationals when the quantisation factor is nonzero (0 mutations)
229.99 s
[really-safe-money-gen] coverage (1101/1610): Money\.AmountOfSpec.ADA.fromRatio.produces valid AmountOfs (13 mutations)
230.03 s
[really-safe-money-gen] coverage (1103/1610): Money\.AmountOfSpec.ADA.fromRatio.succeeds on 0 (14 mutations)
230.08 s
[really-safe-money-gen] coverage (1102/1610): Money\.AmountOfSpec.ADA.fromRatio.roundtrips with toRatio (13 mutations)
230.19 s
[really-safe-money-gen] coverage (1104/1610): Money\.AmountOfSpec.ADA.fromRatio.fails on +Infinity (2 mutations)
230.41 s
[really-safe-money-gen] coverage (1105/1610): Money\.AmountOfSpec.ADA.fromRatio.succeeds on 1 (13 mutations)
230.82 s
[really-safe-money-gen] coverage (1106/1610): Money\.AmountOfSpec.ADA.fromRatio.fails on NaN (2 mutations)
230.83 s
[really-safe-money-gen] coverage (1107/1610): Money\.AmountOfSpec.ADA.fromRatio.succeeds on 77 (13 mutations)
231.14 s
[really-safe-money-gen] coverage (1108/1610): Money\.AmountOfSpec.ADA.fromRatio.fails on 7\.123 (9 mutations)
231.16 s
[really-safe-money-gen] coverage (1109/1610): Money\.AmountOfSpec.ADA.fromRational.fails on NaN (2 mutations)
231.51 s
[really-safe-money-gen] coverage (1110/1610): Money\.AmountOfSpec.ADA.fromRational.succeeds on 1 (13 mutations)
231.62 s
[really-safe-money-gen] coverage (1112/1610): Money\.AmountOfSpec.ADA.fromRational.fails on -1 (5 mutations)
231.62 s
[really-safe-money-gen] coverage (1111/1610): Money\.AmountOfSpec.ADA.fromRational.roundtrips with toRational (13 mutations)
231.72 s
[really-safe-money-gen] coverage (1113/1610): Money\.AmountOfSpec.ADA.fromRational.fails on -Infinity (2 mutations)
231.81 s
[really-safe-money-gen] coverage (1114/1610): Money\.AmountOfSpec.ADA.fromRational.fails on +Infinity (2 mutations)
231.96 s
[really-safe-money-gen] coverage (1115/1610): Money\.AmountOfSpec.ADA.fromRational.produces valid Amounts (13 mutations)
232.42 s
[really-safe-money-gen] coverage (1116/1610): Money\.AmountOfSpec.ADA.fromRational.succeeds on 0 (13 mutations)
232.52 s
[really-safe-money-gen] coverage (1118/1610): Money\.AmountOfSpec.ADA.sum.produces valid amounts (5 mutations)
232.56 s
[really-safe-money-gen] coverage (1117/1610): Money\.AmountOfSpec.ADA.sum.matches what you would get with Integer, if nothing fails (5 mutations)
232.63 s
[really-safe-money-gen] coverage (1120/1610): Money\.AmountOfSpec.ADA.add.matches what you would get with Integer, if nothing fails (4 mutations)
232.70 s
[really-safe-money-gen] coverage (1121/1610): Money\.AmountOfSpec.ADA.add.has a left-identity\: zero (5 mutations)
232.72 s
[really-safe-money-gen] coverage (1119/1610): Money\.AmountOfSpec.ADA.toDouble.produces valid Doubles (0 mutations)
232.97 s
[really-safe-money-gen] coverage (1122/1610): Money\.AmountOfSpec.ADA.add.has a right-identity\: zero (5 mutations)
233.11 s
[really-safe-money-gen] coverage (1124/1610): Money\.AmountOfSpec.ADA.add.produces valid amounts (4 mutations)
233.21 s
[really-safe-money-gen] coverage (1126/1610): Money\.AmountOfSpec.ADA.USD.rate.produces valid amounts (6 mutations)
233.26 s
[really-safe-money-gen] coverage (1128/1610): Money\.AmountOfSpec.ADA.fromMinimalQuantisations.produces valid amounts (0 mutations)
233.29 s
[really-safe-money-gen] coverage (1127/1610): Money\.AmountOfSpec.ADA.USD.convert.produces valid amounts (15 mutations)
233.46 s
[really-safe-money-gen] coverage (1129/1610): Money\.AmountOfSpec.ADA.distribute.Show (Distribution (AmountOf * ADA)) and Read (Distribution (AmountOf * ADA)).are implemented such that read \. show == id for valid values (1 mutations)
233.46 s
[really-safe-money-gen] coverage (1132/1610): Money\.AmountOfSpec.ADA.distribute.Eq (Distribution (AmountOf * ADA)).(/=) \:\: (Distribution (AmountOf * ADA)) -> (Distribution (AmountOf * ADA)) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution (AmountOf * ADA))"s (1 mutations)
233.47 s
[really-safe-money-gen] coverage (1131/1610): Money\.AmountOfSpec.ADA.distribute.Eq (Distribution (AmountOf * ADA)).(/=) \:\: (Distribution (AmountOf * ADA)) -> (Distribution (AmountOf * ADA)) -> Bool.is antireflexive for "valid (Distribution (AmountOf * ADA))"s (1 mutations)
233.54 s
[really-safe-money-gen] coverage (1130/1610): Money\.AmountOfSpec.ADA.distribute.produces results that sum up to the greater whole (18 mutations)
233.76 s
[really-safe-money-gen] coverage (1133/1610): Money\.AmountOfSpec.ADA.distribute.Eq (Distribution (AmountOf * ADA)).(==) \:\: (Distribution (AmountOf * ADA)) -> (Distribution (AmountOf * ADA)) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution (AmountOf * ADA))"s (1 mutations)
234.03 s
[really-safe-money-gen] coverage (1134/1610): Money\.AmountOfSpec.ADA.distribute.Eq (Distribution (AmountOf * ADA)).(==) \:\: (Distribution (AmountOf * ADA)) -> (Distribution (AmountOf * ADA)) -> Bool.is reflexive for "valid (Distribution (AmountOf * ADA))"s (1 mutations)
234.11 s
[really-safe-money-gen] coverage (1135/1610): Money\.AmountOfSpec.ADA.distribute.Eq (Distribution (AmountOf * ADA)).(==) \:\: (Distribution (AmountOf * ADA)) -> (Distribution (AmountOf * ADA)) -> Bool.is transitive for "valid (Distribution (AmountOf * ADA))"s (1 mutations)
234.24 s
[really-safe-money-gen] coverage (1136/1610): Money\.AmountOfSpec.ADA.distribute.Eq (Distribution (AmountOf * ADA)).(==) \:\: (Distribution (AmountOf * ADA)) -> (Distribution (AmountOf * ADA)) -> Bool.is symmetric for "valid (Distribution (AmountOf * ADA))"s (1 mutations)
234.26 s
[really-safe-money-gen] coverage (1092/1610): Money\.AmountOfSpec.ADA.Eq (AmountOf * ADA).(==) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is symmetric for "valid (AmountOf * ADA)"s (0 mutations)
234.58 s
[really-safe-money-gen] coverage (1094/1610): Money\.AmountOfSpec.ADA.Eq (AmountOf * ADA).(==) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is reflexive for "valid (AmountOf * ADA)"s (0 mutations)
234.73 s
[really-safe-money-gen] coverage (1095/1610): Money\.AmountOfSpec.ADA.Eq (AmountOf * ADA).(/=) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is antireflexive for "valid (AmountOf * ADA)"s (0 mutations)
234.73 s
[really-safe-money-gen] coverage (1125/1610): Money\.AmountOfSpec.ADA.add.is commutative (4 mutations)
234.83 s
[really-safe-money-gen] coverage (1093/1610): Money\.AmountOfSpec.ADA.Eq (AmountOf * ADA).(==) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (AmountOf * ADA)"s (0 mutations)
234.90 s
[really-safe-money-gen] coverage (1123/1610): Money\.AmountOfSpec.ADA.add.is associative when both succeed (4 mutations)
234.94 s
[really-safe-money-gen] coverage (1088/1610): Money\.AmountOfSpec.USD.Eq (AmountOf * USD).(/=) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is antireflexive for "valid (AmountOf * USD)"s (0 mutations)
235.43 s
[really-safe-money-gen] coverage (1086/1610): Money\.AmountOfSpec.USD.Eq (AmountOf * USD).(==) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is transitive for "valid (AmountOf * USD)"s (0 mutations)
235.59 s
[really-safe-money-gen] coverage (1144/1610): Money\.AmountOfSpec.ADA.ADA.rate.produces valid amounts (6 mutations)
235.73 s
[really-safe-money-gen] coverage (1153/1610): Money\.AmountOfSpec.ADA.multiply.has an identity\: 1 (4 mutations)
235.76 s
[really-safe-money-gen] coverage (1149/1610): Money\.AmountOfSpec.ADA.multiply.produces valid amounts (4 mutations)
235.80 s
[really-safe-money-gen] coverage (1147/1610): Money\.AmountOfSpec.ADA.INR.rate.produces valid amounts (6 mutations)
235.92 s
[really-safe-money-gen] coverage (1151/1610): Money\.AmountOfSpec.ADA.multiply.matches what you would get with Integer, if nothing fails (4 mutations)
236.11 s
[really-safe-money-gen] coverage (1154/1610): Money\.AmountOfSpec.ADA.fromDouble.succeeds on 0 (22 mutations)
236.14 s
[really-safe-money-gen] coverage (1152/1610): Money\.AmountOfSpec.ADA.multiply.is distributive with add when both succeed (8 mutations)
236.35 s
[really-safe-money-gen] coverage (1148/1610): Money\.AmountOfSpec.ADA.INR.convert.produces valid amounts (15 mutations)
236.38 s
[really-safe-money-gen] coverage (1142/1610): Money\.AmountOfSpec.ADA.format.produces valid strings (3 mutations)
236.40 s
[really-safe-money-gen] coverage (1156/1610): Money\.AmountOfSpec.ADA.fromDouble.succeeds on 1 (22 mutations)
236.42 s
[really-safe-money-gen] coverage (1140/1610): Money\.AmountOfSpec.ADA.CHF.convert.produces valid amounts (15 mutations)
236.53 s
[really-safe-money-gen] coverage (1141/1610): Money\.AmountOfSpec.ADA.CHF.rate.produces valid amounts (6 mutations)
236.57 s
[really-safe-money-gen] coverage (1139/1610): Money\.AmountOfSpec.ADA.toMinimalQuantisations.produces valid Int64s (0 mutations)
236.67 s
[really-safe-money-gen] coverage (1146/1610): Money\.AmountOfSpec.ADA.fraction.produces valid amounts (10 mutations)
236.88 s
[really-safe-money-gen] coverage (1138/1610): Money\.AmountOfSpec.ADA.toMinimalQuantisations.roundtrips with fromMinimalQuantisations (0 mutations)
237.01 s
[really-safe-money-gen] coverage (1143/1610): Money\.AmountOfSpec.ADA.GenValid (AmountOf * ADA).genValid \:\: Gen (AmountOf * ADA).only generates valid '(AmountOf * ADA)'s (0 mutations)
237.37 s
[really-safe-money-gen] coverage (1160/1610): Money\.AmountOfSpec.ADA.fromDouble.fails on -1 (3 mutations)
237.39 s
[really-safe-money-gen] coverage (1137/1610): Money\.AmountOfSpec.ADA.distribute.produces valid amounts (17 mutations)
237.56 s
[really-safe-money-gen] coverage (1159/1610): Money\.AmountOfSpec.ADA.fromDouble.produces valid amounts (22 mutations)
237.78 s
[really-safe-money-gen] coverage (1161/1610): Money\.AmountOfSpec.ADA.subtract.matches what you would get with Integer, if nothing fails (5 mutations)
237.85 s
[really-safe-money-gen] coverage (1166/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA)."min \:\: (AmountOf * ADA -> AmountOf * ADA -> AmountOf * ADA)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (AmountOf * ADA)"'s (0 mutations)
237.88 s
[really-safe-money-gen] coverage (1062/1610): Money\.AmountOfSpec.USD.Ord (AmountOf * USD).(>=) \:\: (AmountOf * USD) -> (AmountOf * USD) -> Bool.is reflexive for "valid (AmountOf * USD)"'s (0 mutations)
238.06 s
[really-safe-money-gen] coverage (1158/1610): Money\.AmountOfSpec.ADA.fromDouble.fails on -Infinity (3 mutations)
238.07 s
[really-safe-money-gen] coverage (1165/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA)."max \:\: (AmountOf * ADA -> AmountOf * ADA -> AmountOf * ADA)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (AmountOf * ADA)"'s (0 mutations)
238.13 s
[really-safe-money-gen] coverage (1163/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(>) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is transitive for "valid (AmountOf * ADA)"'s (0 mutations)
238.56 s
[really-safe-money-gen] coverage (1145/1610): Money\.AmountOfSpec.ADA.ADA.convert.produces valid amounts (15 mutations)
238.72 s
[really-safe-money-gen] coverage (1173/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(>=) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is transitive for "valid (AmountOf * ADA)"'s (0 mutations)
238.79 s
[really-safe-money-gen] coverage (1177/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(<) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is antireflexive for "valid (AmountOf * ADA)"'s (0 mutations)
238.86 s
[really-safe-money-gen] coverage (1175/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(<) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (AmountOf * ADA)"'s (0 mutations)
238.86 s
[really-safe-money-gen] coverage (1178/1610): Money\.AmountOfSpec.INR.subtract.matches what you would get with Integer, if nothing fails (5 mutations)
239.05 s
[really-safe-money-gen] coverage (1174/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(>=) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is antisymmetric for "valid (AmountOf * ADA)"'s (0 mutations)
239.20 s
[really-safe-money-gen] coverage (1179/1610): Money\.AmountOfSpec.INR.toDouble.produces valid Doubles (0 mutations)
239.27 s
[really-safe-money-gen] coverage (1157/1610): Money\.AmountOfSpec.ADA.fromDouble.fails on NaN (5 mutations)
239.46 s
[really-safe-money-gen] coverage (1150/1610): Money\.AmountOfSpec.ADA.multiply.is absorbed by 0 (5 mutations)
239.46 s
[really-safe-money-gen] coverage (1155/1610): Money\.AmountOfSpec.ADA.fromDouble.fails on +Infinity (7 mutations)
239.53 s
[really-safe-money-gen] coverage (1180/1610): Money\.AmountOfSpec.INR.distribute.produces results that sum up to the greater whole (18 mutations)
239.65 s
[really-safe-money-gen] coverage (1183/1610): Money\.AmountOfSpec.INR.distribute.Eq (Distribution (AmountOf * INR)).(==) \:\: (Distribution (AmountOf * INR)) -> (Distribution (AmountOf * INR)) -> Bool.is reflexive for "valid (Distribution (AmountOf * INR))"s (1 mutations)
239.68 s
[really-safe-money-gen] coverage (1181/1610): Money\.AmountOfSpec.INR.distribute.produces valid amounts (17 mutations)
239.68 s
[really-safe-money-gen] coverage (1182/1610): Money\.AmountOfSpec.INR.distribute.Show (Distribution (AmountOf * INR)) and Read (Distribution (AmountOf * INR)).are implemented such that read \. show == id for valid values (1 mutations)
239.75 s
[really-safe-money-gen] coverage (1184/1610): Money\.AmountOfSpec.INR.distribute.Eq (Distribution (AmountOf * INR)).(==) \:\: (Distribution (AmountOf * INR)) -> (Distribution (AmountOf * INR)) -> Bool.is symmetric for "valid (Distribution (AmountOf * INR))"s (1 mutations)
239.86 s
[really-safe-money-gen] coverage (1185/1610): Money\.AmountOfSpec.INR.distribute.Eq (Distribution (AmountOf * INR)).(==) \:\: (Distribution (AmountOf * INR)) -> (Distribution (AmountOf * INR)) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution (AmountOf * INR))"s (1 mutations)
240.17 s
[really-safe-money-gen] coverage (1186/1610): Money\.AmountOfSpec.INR.distribute.Eq (Distribution (AmountOf * INR)).(==) \:\: (Distribution (AmountOf * INR)) -> (Distribution (AmountOf * INR)) -> Bool.is transitive for "valid (Distribution (AmountOf * INR))"s (1 mutations)
240.43 s
[really-safe-money-gen] coverage (1171/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(>=) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (AmountOf * ADA)"'s (0 mutations)
240.53 s
[really-safe-money-gen] coverage (1170/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(<=) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is antisymmetric for "valid (AmountOf * ADA)"'s (0 mutations)
240.57 s
[really-safe-money-gen] coverage (1169/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(<=) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is reflexive for "valid (AmountOf * ADA)"'s (0 mutations)
240.92 s
[really-safe-money-gen] coverage (1187/1610): Money\.AmountOfSpec.INR.distribute.Eq (Distribution (AmountOf * INR)).(/=) \:\: (Distribution (AmountOf * INR)) -> (Distribution (AmountOf * INR)) -> Bool.is antireflexive for "valid (Distribution (AmountOf * INR))"s (1 mutations)
240.93 s
[really-safe-money-gen] coverage (1168/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(<=) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is transitive for "valid (AmountOf * ADA)"'s (0 mutations)
240.98 s
[really-safe-money-gen] coverage (1176/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(<) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is transitive for "valid (AmountOf * ADA)"'s (0 mutations)
241.05 s
[really-safe-money-gen] coverage (1162/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(>) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is antireflexive for "valid (AmountOf * ADA)"'s (0 mutations)
241.14 s
[really-safe-money-gen] coverage (1167/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(<=) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (AmountOf * ADA)"'s (0 mutations)
241.30 s
[really-safe-money-gen] coverage (1172/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(>=) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is reflexive for "valid (AmountOf * ADA)"'s (0 mutations)
241.65 s
[really-safe-money-gen] coverage (1164/1610): Money\.AmountOfSpec.ADA.Ord (AmountOf * ADA).(>) \:\: (AmountOf * ADA) -> (AmountOf * ADA) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (AmountOf * ADA)"'s (0 mutations)
241.72 s
[really-safe-money-gen] coverage (1189/1610): Money\.AmountOfSpec.INR.zero.is valid (1 mutations)
241.78 s
[really-safe-money-gen] coverage (1196/1610): Money\.AmountOfSpec.INR.fromDouble.fails on NaN (5 mutations)
241.85 s
[really-safe-money-gen] coverage (1197/1610): Money\.AmountOfSpec.INR.fromDouble.fails on +Infinity (7 mutations)
241.86 s
[really-safe-money-gen] coverage (1199/1610): Money\.AmountOfSpec.INR.fromDouble.succeeds on 0 (22 mutations)
242.23 s
[really-safe-money-gen] coverage (1200/1610): Money\.AmountOfSpec.INR.fromDouble.produces valid amounts (22 mutations)
242.30 s
[really-safe-money-gen] coverage (1202/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(>) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is transitive for "valid (AmountOf * INR)"'s (0 mutations)
242.32 s
[really-safe-money-gen] coverage (1201/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR)."max \:\: (AmountOf * INR -> AmountOf * INR -> AmountOf * INR)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (AmountOf * INR)"'s (0 mutations)
242.48 s
[really-safe-money-gen] coverage (938/1610): Money\.QuantisationFactorSpec.DecimalLiteral.toDecimalLiteral.produces valid literals (24 mutations)
242.56 s
[really-safe-money-gen] coverage (1193/1610): Money\.AmountOfSpec.INR.ADA.convert.produces valid amounts (15 mutations)
242.57 s
[really-safe-money-gen] coverage (1195/1610): Money\.AmountOfSpec.INR.fromDouble.succeeds on 1 (22 mutations)
242.68 s
[really-safe-money-gen] coverage (1203/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(>) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (AmountOf * INR)"'s (0 mutations)
242.73 s
[really-safe-money-gen] coverage (1192/1610): Money\.AmountOfSpec.INR.ADA.rate.produces valid amounts (6 mutations)
242.80 s
[really-safe-money-gen] coverage (1198/1610): Money\.AmountOfSpec.INR.fromDouble.fails on -1 (3 mutations)
242.86 s
[really-safe-money-gen] coverage (1205/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(<=) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is transitive for "valid (AmountOf * INR)"'s (0 mutations)
242.87 s
[really-safe-money-gen] coverage (1194/1610): Money\.AmountOfSpec.INR.fromDouble.fails on -Infinity (3 mutations)
242.88 s
[really-safe-money-gen] coverage (1191/1610): Money\.AmountOfSpec.INR.fraction.produces valid amounts (10 mutations)
243.35 s
[really-safe-money-gen] coverage (1204/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(>) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is antireflexive for "valid (AmountOf * INR)"'s (0 mutations)
243.58 s
[really-safe-money-gen] coverage (1190/1610): Money\.AmountOfSpec.INR.fromMinimalQuantisations.produces valid amounts (0 mutations)
243.63 s
[really-safe-money-gen] coverage (1188/1610): Money\.AmountOfSpec.INR.distribute.Eq (Distribution (AmountOf * INR)).(/=) \:\: (Distribution (AmountOf * INR)) -> (Distribution (AmountOf * INR)) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution (AmountOf * INR))"s (1 mutations)
243.80 s
[really-safe-money-gen] coverage (1212/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(>=) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is antisymmetric for "valid (AmountOf * INR)"'s (0 mutations)
243.97 s
[really-safe-money-gen] coverage (937/1610): Money\.QuantisationFactorSpec.DecimalLiteral.toDecimalLiteral.roundtrips with fromDecimalLiteral (48 mutations)
244.12 s
[really-safe-money-gen] coverage (1213/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(<) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is transitive for "valid (AmountOf * INR)"'s (0 mutations)
244.15 s
[really-safe-money-gen] coverage (1215/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(<) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is antireflexive for "valid (AmountOf * INR)"'s (0 mutations)
244.27 s
[really-safe-money-gen] coverage (1214/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(<) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (AmountOf * INR)"'s (0 mutations)
244.35 s
[really-safe-money-gen] coverage (1216/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR)."min \:\: (AmountOf * INR -> AmountOf * INR -> AmountOf * INR)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (AmountOf * INR)"'s (0 mutations)
244.47 s
[really-safe-money-gen] coverage (1217/1610): Money\.AmountOfSpec.INR.CHF.convert.produces valid amounts (15 mutations)
244.67 s
[really-safe-money-gen] coverage (1218/1610): Money\.AmountOfSpec.INR.CHF.rate.produces valid amounts (6 mutations)
244.95 s
[really-safe-money-gen] coverage (1219/1610): Money\.AmountOfSpec.INR.multiply.matches what you would get with Integer, if nothing fails (4 mutations)
244.95 s
[really-safe-money-gen] coverage (1221/1610): Money\.AmountOfSpec.INR.multiply.is absorbed by 0 (5 mutations)
245.05 s
[really-safe-money-gen] coverage (1220/1610): Money\.AmountOfSpec.INR.multiply.produces valid amounts (4 mutations)
245.07 s
[really-safe-money-gen] coverage (1223/1610): Money\.AmountOfSpec.INR.multiply.is distributive with add when both succeed (8 mutations)
245.14 s
[really-safe-money-gen] coverage (1222/1610): Money\.AmountOfSpec.INR.multiply.has an identity\: 1 (4 mutations)
245.44 s
[really-safe-money-gen] coverage (1224/1610): Money\.AmountOfSpec.INR.toMinimalQuantisations.roundtrips with fromMinimalQuantisations (0 mutations)
245.67 s
[really-safe-money-gen] coverage (1211/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(>=) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is transitive for "valid (AmountOf * INR)"'s (0 mutations)
245.78 s
[really-safe-money-gen] coverage (1210/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(>=) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is reflexive for "valid (AmountOf * INR)"'s (0 mutations)
245.92 s
[really-safe-money-gen] coverage (1207/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(<=) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is reflexive for "valid (AmountOf * INR)"'s (0 mutations)
246.00 s
[really-safe-money-gen] coverage (1209/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(>=) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (AmountOf * INR)"'s (0 mutations)
246.01 s
[really-safe-money-gen] coverage (1208/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(<=) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is antisymmetric for "valid (AmountOf * INR)"'s (0 mutations)
246.32 s
[really-safe-money-gen] coverage (1206/1610): Money\.AmountOfSpec.INR.Ord (AmountOf * INR).(<=) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (AmountOf * INR)"'s (0 mutations)
246.37 s
[really-safe-money-gen] coverage (1230/1610): Money\.AmountOfSpec.INR.fromRational.fails on NaN (2 mutations)
246.46 s
[really-safe-money-gen] coverage (1228/1610): Money\.AmountOfSpec.INR.fromRational.roundtrips with toRational (13 mutations)
246.46 s
[really-safe-money-gen] coverage (1232/1610): Money\.AmountOfSpec.INR.fromRational.succeeds on 1 (13 mutations)
246.48 s
[really-safe-money-gen] coverage (1229/1610): Money\.AmountOfSpec.INR.fromRational.fails on +Infinity (2 mutations)
246.57 s
[really-safe-money-gen] coverage (1231/1610): Money\.AmountOfSpec.INR.fromRational.produces valid Amounts (13 mutations)
247.19 s
[really-safe-money-gen] coverage (1233/1610): Money\.AmountOfSpec.INR.fromRational.fails on -1 (5 mutations)
247.40 s
[really-safe-money-gen] coverage (1234/1610): Money\.AmountOfSpec.INR.add.is commutative (4 mutations)
247.59 s
[really-safe-money-gen] coverage (1235/1610): Money\.AmountOfSpec.INR.add.is associative when both succeed (4 mutations)
247.61 s
[really-safe-money-gen] coverage (1236/1610): Money\.AmountOfSpec.INR.add.matches what you would get with Integer, if nothing fails (4 mutations)
247.89 s
[really-safe-money-gen] coverage (1227/1610): Money\.AmountOfSpec.INR.fromRational.fails on -Infinity (2 mutations)
248.04 s
[really-safe-money-gen] coverage (1238/1610): Money\.AmountOfSpec.INR.add.has a right-identity\: zero (5 mutations)
248.10 s
[really-safe-money-gen] coverage (1226/1610): Money\.AmountOfSpec.INR.fromRational.succeeds on 0 (13 mutations)
248.16 s
[really-safe-money-gen] coverage (1237/1610): Money\.AmountOfSpec.INR.add.has a left-identity\: zero (5 mutations)
248.33 s
[really-safe-money-gen] coverage (1225/1610): Money\.AmountOfSpec.INR.toMinimalQuantisations.produces valid Int64s (0 mutations)
248.52 s
[really-safe-money-gen] coverage (1241/1610): Money\.AmountOfSpec.INR.Show (AmountOf * INR) and Read (AmountOf * INR).are implemented such that read \. show == id for valid values (1 mutations)
248.53 s
[really-safe-money-gen] coverage (1243/1610): Money\.AmountOfSpec.INR.sum.produces valid amounts (5 mutations)
248.73 s
[really-safe-money-gen] coverage (1242/1610): Money\.AmountOfSpec.INR.toRational.produces valid Rationals (0 mutations)
248.91 s
[really-safe-money-gen] coverage (1244/1610): Money\.AmountOfSpec.INR.sum.matches what you would get with Integer, if nothing fails (5 mutations)
248.91 s
[really-safe-money-gen] coverage (1240/1610): Money\.AmountOfSpec.INR.toRatio.produces valid Rationals when the quantisation factor is nonzero (0 mutations)
248.94 s
[really-safe-money-gen] coverage (1239/1610): Money\.AmountOfSpec.INR.add.produces valid amounts (4 mutations)
249.20 s
[really-safe-money-gen] coverage (1245/1610): Money\.AmountOfSpec.INR.format.produces valid strings (3 mutations)
249.32 s
[really-safe-money-gen] coverage (1246/1610): Money\.AmountOfSpec.INR.INR.rate.produces valid amounts (6 mutations)
249.47 s
[really-safe-money-gen] coverage (1248/1610): Money\.AmountOfSpec.INR.BTC.rate.produces valid amounts (6 mutations)
249.48 s
[really-safe-money-gen] coverage (1250/1610): Money\.AmountOfSpec.INR.fromRatio.fails on NaN (2 mutations)
249.61 s
[really-safe-money-gen] coverage (1252/1610): Money\.AmountOfSpec.INR.fromRatio.succeeds on 1 (13 mutations)
249.75 s
[really-safe-money-gen] coverage (1254/1610): Money\.AmountOfSpec.INR.fromRatio.roundtrips with toRatio (13 mutations)
249.86 s
[really-safe-money-gen] coverage (1253/1610): Money\.AmountOfSpec.INR.fromRatio.succeeds on 0 (14 mutations)
250.10 s
[really-safe-money-gen] coverage (1257/1610): Money\.AmountOfSpec.INR.fromRatio.succeeds on 77 (13 mutations)
250.13 s
[really-safe-money-gen] coverage (1256/1610): Money\.AmountOfSpec.INR.fromRatio.fails on 7\.123 (9 mutations)
250.13 s
[really-safe-money-gen] coverage (1255/1610): Money\.AmountOfSpec.INR.fromRatio.produces valid AmountOfs (13 mutations)
250.19 s
[really-safe-money-gen] coverage (1258/1610): Money\.AmountOfSpec.INR.GenValid (AmountOf * INR).genValid \:\: Gen (AmountOf * INR).only generates valid '(AmountOf * INR)'s (0 mutations)
250.22 s
[really-safe-money-gen] coverage (1259/1610): Money\.AmountOfSpec.INR.Eq (AmountOf * INR).(==) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is symmetric for "valid (AmountOf * INR)"s (0 mutations)
250.38 s
[really-safe-money-gen] coverage (1260/1610): Money\.AmountOfSpec.INR.Eq (AmountOf * INR).(==) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is transitive for "valid (AmountOf * INR)"s (0 mutations)
250.81 s
[really-safe-money-gen] coverage (1261/1610): Money\.AmountOfSpec.INR.Eq (AmountOf * INR).(==) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is reflexive for "valid (AmountOf * INR)"s (0 mutations)
250.99 s
[really-safe-money-gen] coverage (1262/1610): Money\.AmountOfSpec.INR.Eq (AmountOf * INR).(==) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (AmountOf * INR)"s (0 mutations)
251.08 s
[really-safe-money-gen] coverage (1263/1610): Money\.AmountOfSpec.INR.Eq (AmountOf * INR).(/=) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (AmountOf * INR)"s (0 mutations)
251.24 s
[really-safe-money-gen] coverage (1264/1610): Money\.AmountOfSpec.INR.Eq (AmountOf * INR).(/=) \:\: (AmountOf * INR) -> (AmountOf * INR) -> Bool.is antireflexive for "valid (AmountOf * INR)"s (0 mutations)
251.42 s
[really-safe-money-gen] coverage (1265/1610): Money\.AmountOfSpec.INR.USD.convert.produces valid amounts (15 mutations)
251.56 s
[really-safe-money-gen] coverage (1266/1610): Money\.AmountOfSpec.INR.USD.rate.produces valid amounts (6 mutations)
251.59 s
[really-safe-money-gen] coverage (1267/1610): Money\.AmountOfSpec.BTC.format.produces valid strings (3 mutations)
251.61 s
[really-safe-money-gen] coverage (1268/1610): Money\.AmountOfSpec.BTC.toMinimalQuantisations.roundtrips with fromMinimalQuantisations (0 mutations)
251.85 s
[really-safe-money-gen] coverage (1269/1610): Money\.AmountOfSpec.BTC.toMinimalQuantisations.produces valid Int64s (0 mutations)
251.89 s
[really-safe-money-gen] coverage (1249/1610): Money\.AmountOfSpec.INR.BTC.convert.produces valid amounts (15 mutations)
251.91 s
[really-safe-money-gen] coverage (1251/1610): Money\.AmountOfSpec.INR.fromRatio.fails on +Infinity (2 mutations)
252.29 s
[really-safe-money-gen] coverage (1271/1610): Money\.AmountOfSpec.BTC.INR.convert.produces valid amounts (15 mutations)
252.33 s
[really-safe-money-gen] coverage (1273/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(<=) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is transitive for "valid (AmountOf * BTC)"'s (0 mutations)
252.36 s
[really-safe-money-gen] coverage (1247/1610): Money\.AmountOfSpec.INR.INR.convert.produces valid amounts (15 mutations)
252.39 s
[really-safe-money-gen] coverage (1272/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(<=) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (AmountOf * BTC)"'s (0 mutations)
252.68 s
[really-safe-money-gen] coverage (1274/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(<=) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is reflexive for "valid (AmountOf * BTC)"'s (0 mutations)
252.88 s
[really-safe-money-gen] coverage (1275/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(<=) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is antisymmetric for "valid (AmountOf * BTC)"'s (0 mutations)
252.90 s
[really-safe-money-gen] coverage (1276/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC)."min \:\: (AmountOf * BTC -> AmountOf * BTC -> AmountOf * BTC)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (AmountOf * BTC)"'s (0 mutations)
253.01 s
[really-safe-money-gen] coverage (1277/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(>=) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is antisymmetric for "valid (AmountOf * BTC)"'s (0 mutations)
253.02 s
[really-safe-money-gen] coverage (1278/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(>=) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is reflexive for "valid (AmountOf * BTC)"'s (0 mutations)
253.37 s
[really-safe-money-gen] coverage (1279/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(>=) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (AmountOf * BTC)"'s (0 mutations)
253.47 s
[really-safe-money-gen] coverage (1280/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(>=) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is transitive for "valid (AmountOf * BTC)"'s (0 mutations)
253.54 s
[really-safe-money-gen] coverage (1284/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(<) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is transitive for "valid (AmountOf * BTC)"'s (0 mutations)
253.56 s
[really-safe-money-gen] coverage (1282/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(<) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (AmountOf * BTC)"'s (0 mutations)
253.63 s
[really-safe-money-gen] coverage (1283/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(<) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is antireflexive for "valid (AmountOf * BTC)"'s (0 mutations)
253.65 s
[really-safe-money-gen] coverage (1270/1610): Money\.AmountOfSpec.BTC.INR.rate.produces valid amounts (6 mutations)
253.68 s
[really-safe-money-gen] coverage (1281/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC)."max \:\: (AmountOf * BTC -> AmountOf * BTC -> AmountOf * BTC)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (AmountOf * BTC)"'s (0 mutations)
253.84 s
[really-safe-money-gen] coverage (1287/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(>) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (AmountOf * BTC)"'s (0 mutations)
254.20 s
[really-safe-money-gen] coverage (1285/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(>) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is antireflexive for "valid (AmountOf * BTC)"'s (0 mutations)
254.26 s
[really-safe-money-gen] coverage (1286/1610): Money\.AmountOfSpec.BTC.Ord (AmountOf * BTC).(>) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is transitive for "valid (AmountOf * BTC)"'s (0 mutations)
254.45 s
[really-safe-money-gen] coverage (1288/1610): Money\.AmountOfSpec.BTC.fromRatio.roundtrips with toRatio (13 mutations)
254.66 s
[really-safe-money-gen] coverage (1289/1610): Money\.AmountOfSpec.BTC.fromRatio.fails on NaN (2 mutations)
254.90 s
[really-safe-money-gen] coverage (1290/1610): Money\.AmountOfSpec.BTC.fromRatio.succeeds on 77 (13 mutations)
254.96 s
[really-safe-money-gen] coverage (1292/1610): Money\.AmountOfSpec.BTC.fromRatio.succeeds on 1 (13 mutations)
254.99 s
[really-safe-money-gen] coverage (1291/1610): Money\.AmountOfSpec.BTC.fromRatio.succeeds on 0 (14 mutations)
255.16 s
[really-safe-money-gen] coverage (1293/1610): Money\.AmountOfSpec.BTC.fromRatio.produces valid AmountOfs (13 mutations)
255.26 s
[really-safe-money-gen] coverage (1295/1610): Money\.AmountOfSpec.BTC.fromRatio.fails on 7\.123 (9 mutations)
255.55 s
[really-safe-money-gen] coverage (1297/1610): Money\.AmountOfSpec.BTC.CHF.rate.produces valid amounts (6 mutations)
255.55 s
[really-safe-money-gen] coverage (1294/1610): Money\.AmountOfSpec.BTC.fromRatio.fails on +Infinity (2 mutations)
255.55 s
[really-safe-money-gen] coverage (1296/1610): Money\.AmountOfSpec.BTC.CHF.convert.produces valid amounts (15 mutations)
255.65 s
[really-safe-money-gen] coverage (1298/1610): Money\.AmountOfSpec.BTC.fromRational.fails on NaN (2 mutations)
255.75 s
[really-safe-money-gen] coverage (1300/1610): Money\.AmountOfSpec.BTC.fromRational.fails on -1 (5 mutations)
255.75 s
[really-safe-money-gen] coverage (1299/1610): Money\.AmountOfSpec.BTC.fromRational.produces valid Amounts (13 mutations)
255.96 s
[really-safe-money-gen] coverage (1301/1610): Money\.AmountOfSpec.BTC.fromRational.succeeds on 1 (13 mutations)
256.13 s
[really-safe-money-gen] coverage (1304/1610): Money\.AmountOfSpec.BTC.fromRational.succeeds on 0 (13 mutations)
256.20 s
[really-safe-money-gen] coverage (1303/1610): Money\.AmountOfSpec.BTC.fromRational.fails on -Infinity (2 mutations)
256.24 s
[really-safe-money-gen] coverage (1302/1610): Money\.AmountOfSpec.BTC.fromRational.fails on +Infinity (2 mutations)
256.27 s
[really-safe-money-gen] coverage (1305/1610): Money\.AmountOfSpec.BTC.fromRational.roundtrips with toRational (13 mutations)
256.51 s
[really-safe-money-gen] coverage (1306/1610): Money\.AmountOfSpec.BTC.fromDouble.fails on +Infinity (7 mutations)
256.60 s
[really-safe-money-gen] coverage (1307/1610): Money\.AmountOfSpec.BTC.fromDouble.succeeds on 1 (22 mutations)
256.61 s
[really-safe-money-gen] coverage (1308/1610): Money\.AmountOfSpec.BTC.fromDouble.produces valid amounts (22 mutations)
256.67 s
[really-safe-money-gen] coverage (1309/1610): Money\.AmountOfSpec.BTC.fromDouble.fails on -1 (3 mutations)
256.74 s
[really-safe-money-gen] coverage (1312/1610): Money\.AmountOfSpec.BTC.fromDouble.fails on NaN (5 mutations)
256.74 s
[really-safe-money-gen] coverage (1310/1610): Money\.AmountOfSpec.BTC.fromDouble.succeeds on 0 (22 mutations)
256.75 s
[really-safe-money-gen] coverage (1311/1610): Money\.AmountOfSpec.BTC.fromDouble.fails on -Infinity (3 mutations)
256.89 s
[really-safe-money-gen] coverage (1313/1610): Money\.AmountOfSpec.BTC.GenValid (AmountOf * BTC).genValid \:\: Gen (AmountOf * BTC).only generates valid '(AmountOf * BTC)'s (0 mutations)
257.17 s
[really-safe-money-gen] coverage (1314/1610): Money\.AmountOfSpec.BTC.USD.rate.produces valid amounts (6 mutations)
257.34 s
[really-safe-money-gen] coverage (1315/1610): Money\.AmountOfSpec.BTC.USD.convert.produces valid amounts (15 mutations)
257.46 s
[really-safe-money-gen] coverage (1316/1610): Money\.AmountOfSpec.BTC.Eq (AmountOf * BTC).(==) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is reflexive for "valid (AmountOf * BTC)"s (0 mutations)
257.67 s
[really-safe-money-gen] coverage (1317/1610): Money\.AmountOfSpec.BTC.Eq (AmountOf * BTC).(==) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is transitive for "valid (AmountOf * BTC)"s (0 mutations)
257.81 s
[really-safe-money-gen] coverage (1319/1610): Money\.AmountOfSpec.BTC.Eq (AmountOf * BTC).(==) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is symmetric for "valid (AmountOf * BTC)"s (0 mutations)
257.91 s
[really-safe-money-gen] coverage (1320/1610): Money\.AmountOfSpec.BTC.Eq (AmountOf * BTC).(/=) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (AmountOf * BTC)"s (0 mutations)
257.94 s
[really-safe-money-gen] coverage (1318/1610): Money\.AmountOfSpec.BTC.Eq (AmountOf * BTC).(==) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (AmountOf * BTC)"s (0 mutations)
258.13 s
[really-safe-money-gen] coverage (1322/1610): Money\.AmountOfSpec.BTC.add.has a right-identity\: zero (5 mutations)
258.48 s
[really-safe-money-gen] coverage (1323/1610): Money\.AmountOfSpec.BTC.add.has a left-identity\: zero (5 mutations)
258.55 s
[really-safe-money-gen] coverage (1325/1610): Money\.AmountOfSpec.BTC.add.is commutative (4 mutations)
258.63 s
[really-safe-money-gen] coverage (1329/1610): Money\.AmountOfSpec.BTC.ADA.rate.produces valid amounts (6 mutations)
258.64 s
[really-safe-money-gen] coverage (1326/1610): Money\.AmountOfSpec.BTC.add.produces valid amounts (4 mutations)
258.65 s
[really-safe-money-gen] coverage (1324/1610): Money\.AmountOfSpec.BTC.add.matches what you would get with Integer, if nothing fails (4 mutations)
258.70 s
[really-safe-money-gen] coverage (1327/1610): Money\.AmountOfSpec.BTC.add.is associative when both succeed (4 mutations)
258.72 s
[really-safe-money-gen] coverage (1328/1610): Money\.AmountOfSpec.BTC.ADA.convert.produces valid amounts (15 mutations)
258.87 s
[really-safe-money-gen] coverage (1330/1610): Money\.AmountOfSpec.BTC.zero.is valid (1 mutations)
259.11 s
[really-safe-money-gen] coverage (1332/1610): Money\.AmountOfSpec.BTC.BTC.rate.produces valid amounts (6 mutations)
259.11 s
[really-safe-money-gen] coverage (1331/1610): Money\.AmountOfSpec.BTC.BTC.convert.produces valid amounts (15 mutations)
259.20 s
[really-safe-money-gen] coverage (1333/1610): Money\.AmountOfSpec.BTC.toDouble.produces valid Doubles (0 mutations)
259.31 s
[really-safe-money-gen] coverage (1334/1610): Money\.AmountOfSpec.BTC.Show (AmountOf * BTC) and Read (AmountOf * BTC).are implemented such that read \. show == id for valid values (1 mutations)
259.55 s
[really-safe-money-gen] coverage (1337/1610): Money\.AmountOfSpec.BTC.toRatio.produces valid Rationals when the quantisation factor is nonzero (0 mutations)
259.59 s
[really-safe-money-gen] coverage (1336/1610): Money\.AmountOfSpec.BTC.fromMinimalQuantisations.produces valid amounts (0 mutations)
259.65 s
[really-safe-money-gen] coverage (1335/1610): Money\.AmountOfSpec.BTC.subtract.matches what you would get with Integer, if nothing fails (5 mutations)
259.67 s
[really-safe-money-gen] coverage (1321/1610): Money\.AmountOfSpec.BTC.Eq (AmountOf * BTC).(/=) \:\: (AmountOf * BTC) -> (AmountOf * BTC) -> Bool.is antireflexive for "valid (AmountOf * BTC)"s (0 mutations)
259.75 s
[really-safe-money-gen] coverage (1340/1610): Money\.AmountOfSpec.BTC.distribute.Eq (Distribution (AmountOf * BTC)).(/=) \:\: (Distribution (AmountOf * BTC)) -> (Distribution (AmountOf * BTC)) -> Bool.is antireflexive for "valid (Distribution (AmountOf * BTC))"s (1 mutations)
259.80 s
[really-safe-money-gen] coverage (1338/1610): Money\.AmountOfSpec.BTC.sum.matches what you would get with Integer, if nothing fails (5 mutations)
259.81 s
[really-safe-money-gen] coverage (1339/1610): Money\.AmountOfSpec.BTC.sum.produces valid amounts (5 mutations)
259.91 s
[really-safe-money-gen] coverage (1341/1610): Money\.AmountOfSpec.BTC.distribute.Eq (Distribution (AmountOf * BTC)).(/=) \:\: (Distribution (AmountOf * BTC)) -> (Distribution (AmountOf * BTC)) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution (AmountOf * BTC))"s (1 mutations)
260.36 s
[really-safe-money-gen] coverage (1342/1610): Money\.AmountOfSpec.BTC.distribute.Eq (Distribution (AmountOf * BTC)).(==) \:\: (Distribution (AmountOf * BTC)) -> (Distribution (AmountOf * BTC)) -> Bool.is reflexive for "valid (Distribution (AmountOf * BTC))"s (1 mutations)
260.40 s
[really-safe-money-gen] coverage (1343/1610): Money\.AmountOfSpec.BTC.distribute.Eq (Distribution (AmountOf * BTC)).(==) \:\: (Distribution (AmountOf * BTC)) -> (Distribution (AmountOf * BTC)) -> Bool.is symmetric for "valid (Distribution (AmountOf * BTC))"s (1 mutations)
260.55 s
[really-safe-money-gen] coverage (1344/1610): Money\.AmountOfSpec.BTC.distribute.Eq (Distribution (AmountOf * BTC)).(==) \:\: (Distribution (AmountOf * BTC)) -> (Distribution (AmountOf * BTC)) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution (AmountOf * BTC))"s (1 mutations)
260.76 s
[really-safe-money-gen] coverage (1345/1610): Money\.AmountOfSpec.BTC.distribute.Eq (Distribution (AmountOf * BTC)).(==) \:\: (Distribution (AmountOf * BTC)) -> (Distribution (AmountOf * BTC)) -> Bool.is transitive for "valid (Distribution (AmountOf * BTC))"s (1 mutations)
260.94 s
[really-safe-money-gen] coverage (1346/1610): Money\.AmountOfSpec.BTC.distribute.produces valid amounts (17 mutations)
261.10 s
[really-safe-money-gen] coverage (1347/1610): Money\.AmountOfSpec.BTC.distribute.produces results that sum up to the greater whole (18 mutations)
261.11 s
[really-safe-money-gen] coverage (1348/1610): Money\.AmountOfSpec.BTC.distribute.Show (Distribution (AmountOf * BTC)) and Read (Distribution (AmountOf * BTC)).are implemented such that read \. show == id for valid values (1 mutations)
261.32 s
[really-safe-money-gen] coverage (1349/1610): Money\.AmountOfSpec.BTC.toRational.produces valid Rationals (0 mutations)
261.54 s
[really-safe-money-gen] coverage (1350/1610): Money\.AmountOfSpec.BTC.fraction.produces valid amounts (10 mutations)
261.56 s
[really-safe-money-gen] coverage (1351/1610): Money\.AmountOfSpec.BTC.multiply.is absorbed by 0 (5 mutations)
261.66 s
[really-safe-money-gen] coverage (1353/1610): Money\.AmountOfSpec.BTC.multiply.produces valid amounts (4 mutations)
261.68 s
[really-safe-money-gen] coverage (1354/1610): Money\.AmountOfSpec.BTC.multiply.matches what you would get with Integer, if nothing fails (4 mutations)
261.69 s
[really-safe-money-gen] coverage (1356/1610): Money\.AmountOfSpec.CHF.INR.convert.produces valid amounts (15 mutations)
261.73 s
[really-safe-money-gen] coverage (1352/1610): Money\.AmountOfSpec.BTC.multiply.has an identity\: 1 (4 mutations)
261.85 s
[really-safe-money-gen] coverage (1355/1610): Money\.AmountOfSpec.BTC.multiply.is distributive with add when both succeed (8 mutations)
261.98 s
[really-safe-money-gen] coverage (1357/1610): Money\.AmountOfSpec.CHF.INR.rate.produces valid amounts (6 mutations)
262.22 s
[really-safe-money-gen] coverage (1359/1610): Money\.AmountOfSpec.CHF.USD.rate.produces valid amounts (6 mutations)
262.24 s
[really-safe-money-gen] coverage (1358/1610): Money\.AmountOfSpec.CHF.USD.convert.produces valid amounts (15 mutations)
262.30 s
[really-safe-money-gen] coverage (1360/1610): Money\.AmountOfSpec.CHF.fromMinimalQuantisations.produces valid amounts (0 mutations)
262.31 s
[really-safe-money-gen] coverage (1361/1610): Money\.AmountOfSpec.CHF.fromRatio.succeeds on 0 (14 mutations)
262.52 s
[really-safe-money-gen] coverage (1362/1610): Money\.AmountOfSpec.CHF.fromRatio.fails on +Infinity (2 mutations)
262.67 s
[really-safe-money-gen] coverage (1363/1610): Money\.AmountOfSpec.CHF.fromRatio.fails on NaN (2 mutations)
262.68 s
[really-safe-money-gen] coverage (1367/1610): Money\.AmountOfSpec.CHF.fromRatio.succeeds on 77 (13 mutations)
262.69 s
[really-safe-money-gen] coverage (1364/1610): Money\.AmountOfSpec.CHF.fromRatio.roundtrips with toRatio (13 mutations)
262.72 s
[really-safe-money-gen] coverage (1365/1610): Money\.AmountOfSpec.CHF.fromRatio.succeeds on 1 (13 mutations)
262.80 s
[really-safe-money-gen] coverage (1366/1610): Money\.AmountOfSpec.CHF.fromRatio.fails on 7\.123 (9 mutations)
262.83 s
[really-safe-money-gen] coverage (1370/1610): Money\.AmountOfSpec.CHF.multiply.has an identity\: 1 (4 mutations)
262.89 s
[really-safe-money-gen] coverage (1368/1610): Money\.AmountOfSpec.CHF.fromRatio.produces valid AmountOfs (13 mutations)
263.13 s
[really-safe-money-gen] coverage (1371/1610): Money\.AmountOfSpec.CHF.multiply.is absorbed by 0 (5 mutations)
263.36 s
[really-safe-money-gen] coverage (1369/1610): Money\.AmountOfSpec.CHF.fraction.produces valid amounts (10 mutations)
263.39 s
[really-safe-money-gen] coverage (1372/1610): Money\.AmountOfSpec.CHF.multiply.is distributive with add when both succeed (8 mutations)
263.63 s
[really-safe-money-gen] coverage (1373/1610): Money\.AmountOfSpec.CHF.multiply.matches what you would get with Integer, if nothing fails (4 mutations)
263.83 s
[really-safe-money-gen] coverage (1375/1610): Money\.AmountOfSpec.CHF.toRatio.produces valid Rationals when the quantisation factor is nonzero (0 mutations)
264.19 s
[really-safe-money-gen] coverage (1374/1610): Money\.AmountOfSpec.CHF.multiply.produces valid amounts (4 mutations)
264.22 s
[really-safe-money-gen] coverage (1376/1610): Money\.AmountOfSpec.CHF.fromRational.fails on +Infinity (2 mutations)
264.28 s
[really-safe-money-gen] coverage (1377/1610): Money\.AmountOfSpec.CHF.fromRational.produces valid Amounts (13 mutations)
264.56 s
[really-safe-money-gen] coverage (1378/1610): Money\.AmountOfSpec.CHF.fromRational.succeeds on 0 (13 mutations)
264.57 s
[really-safe-money-gen] coverage (1379/1610): Money\.AmountOfSpec.CHF.fromRational.fails on -Infinity (2 mutations)
264.57 s
[really-safe-money-gen] coverage (1382/1610): Money\.AmountOfSpec.CHF.fromRational.roundtrips with toRational (13 mutations)
264.63 s
[really-safe-money-gen] coverage (1380/1610): Money\.AmountOfSpec.CHF.fromRational.fails on -1 (5 mutations)
264.64 s
[really-safe-money-gen] coverage (1381/1610): Money\.AmountOfSpec.CHF.fromRational.fails on NaN (2 mutations)
264.75 s
[really-safe-money-gen] coverage (1385/1610): Money\.AmountOfSpec.CHF.Eq (AmountOf * CHF).(==) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is symmetric for "valid (AmountOf * CHF)"s (0 mutations)
264.79 s
[really-safe-money-gen] coverage (1384/1610): Money\.AmountOfSpec.CHF.Eq (AmountOf * CHF).(==) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (AmountOf * CHF)"s (0 mutations)
265.04 s
[really-safe-money-gen] coverage (1387/1610): Money\.AmountOfSpec.CHF.Eq (AmountOf * CHF).(==) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is transitive for "valid (AmountOf * CHF)"s (0 mutations)
265.08 s
[really-safe-money-gen] coverage (1383/1610): Money\.AmountOfSpec.CHF.fromRational.succeeds on 1 (13 mutations)
265.25 s
[really-safe-money-gen] coverage (1391/1610): Money\.AmountOfSpec.CHF.sum.produces valid amounts (5 mutations)
265.30 s
[really-safe-money-gen] coverage (1389/1610): Money\.AmountOfSpec.CHF.Eq (AmountOf * CHF).(/=) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (AmountOf * CHF)"s (0 mutations)
265.36 s
[really-safe-money-gen] coverage (1392/1610): Money\.AmountOfSpec.CHF.BTC.convert.produces valid amounts (15 mutations)
265.37 s
[really-safe-money-gen] coverage (1386/1610): Money\.AmountOfSpec.CHF.Eq (AmountOf * CHF).(==) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is reflexive for "valid (AmountOf * CHF)"s (0 mutations)
265.63 s
[really-safe-money-gen] coverage (1394/1610): Money\.AmountOfSpec.CHF.zero.is valid (1 mutations)
265.66 s
[really-safe-money-gen] coverage (1388/1610): Money\.AmountOfSpec.CHF.Eq (AmountOf * CHF).(/=) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is antireflexive for "valid (AmountOf * CHF)"s (0 mutations)
265.67 s
[really-safe-money-gen] coverage (1395/1610): Money\.AmountOfSpec.CHF.subtract.matches what you would get with Integer, if nothing fails (5 mutations)
265.79 s
[really-safe-money-gen] coverage (1390/1610): Money\.AmountOfSpec.CHF.sum.matches what you would get with Integer, if nothing fails (5 mutations)
265.81 s
[really-safe-money-gen] coverage (1393/1610): Money\.AmountOfSpec.CHF.BTC.rate.produces valid amounts (6 mutations)
265.84 s
[really-safe-money-gen] coverage (1397/1610): Money\.AmountOfSpec.CHF.toRational.produces valid Rationals (0 mutations)
265.98 s
[really-safe-money-gen] coverage (1396/1610): Money\.AmountOfSpec.CHF.toDouble.produces valid Doubles (0 mutations)
266.15 s
[really-safe-money-gen] coverage (1399/1610): Money\.AmountOfSpec.CHF.CHF.rate.produces valid amounts (6 mutations)
266.31 s
[really-safe-money-gen] coverage (1402/1610): Money\.AmountOfSpec.CHF.fromDouble.succeeds on 1 (22 mutations)
266.34 s
[really-safe-money-gen] coverage (1403/1610): Money\.AmountOfSpec.CHF.fromDouble.produces valid amounts (22 mutations)
266.65 s
[really-safe-money-gen] coverage (1405/1610): Money\.AmountOfSpec.CHF.fromDouble.succeeds on 0 (22 mutations)
266.94 s
[really-safe-money-gen] coverage (1406/1610): Money\.AmountOfSpec.CHF.fromDouble.fails on -1 (3 mutations)
267.08 s
[really-safe-money-gen] coverage (1409/1610): Money\.AmountOfSpec.CHF.ADA.rate.produces valid amounts (6 mutations)
267.16 s
[really-safe-money-gen] coverage (1408/1610): Money\.AmountOfSpec.CHF.fromDouble.fails on -Infinity (3 mutations)
267.38 s
[really-safe-money-gen] coverage (1410/1610): Money\.AmountOfSpec.CHF.ADA.convert.produces valid amounts (15 mutations)
267.53 s
[really-safe-money-gen] coverage (1414/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF)."min \:\: (AmountOf * CHF -> AmountOf * CHF -> AmountOf * CHF)".is equivalent to (\\a b -> if a <= b then a else b) for "valid (AmountOf * CHF)"'s (0 mutations)
267.54 s
[really-safe-money-gen] coverage (1411/1610): Money\.AmountOfSpec.CHF.toMinimalQuantisations.produces valid Int64s (0 mutations)
267.56 s
[really-safe-money-gen] coverage (1413/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF)."max \:\: (AmountOf * CHF -> AmountOf * CHF -> AmountOf * CHF)".is equivalent to (\\a b -> if a >= b then a else b) for "valid (AmountOf * CHF)"'s (0 mutations)
267.62 s
[really-safe-money-gen] coverage (1412/1610): Money\.AmountOfSpec.CHF.toMinimalQuantisations.roundtrips with fromMinimalQuantisations (0 mutations)
267.70 s
[really-safe-money-gen] coverage (1415/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(>) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid (AmountOf * CHF)"'s (0 mutations)
267.83 s
[really-safe-money-gen] coverage (1417/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(>) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is transitive for "valid (AmountOf * CHF)"'s (0 mutations)
267.84 s
[really-safe-money-gen] coverage (1416/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(>) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is antireflexive for "valid (AmountOf * CHF)"'s (0 mutations)
268.11 s
[really-safe-money-gen] coverage (1418/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(>=) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is transitive for "valid (AmountOf * CHF)"'s (0 mutations)
268.15 s
[really-safe-money-gen] coverage (1419/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(>=) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid (AmountOf * CHF)"'s (0 mutations)
268.33 s
[really-safe-money-gen] coverage (1420/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(>=) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is antisymmetric for "valid (AmountOf * CHF)"'s (0 mutations)
268.39 s
[really-safe-money-gen] coverage (1424/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(<) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is transitive for "valid (AmountOf * CHF)"'s (0 mutations)
268.45 s
[really-safe-money-gen] coverage (1422/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(<) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is antireflexive for "valid (AmountOf * CHF)"'s (0 mutations)
268.46 s
[really-safe-money-gen] coverage (1423/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(<) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid (AmountOf * CHF)"'s (0 mutations)
268.60 s
[really-safe-money-gen] coverage (1426/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(<=) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid (AmountOf * CHF)"'s (0 mutations)
268.68 s
[really-safe-money-gen] coverage (1427/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(<=) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is reflexive for "valid (AmountOf * CHF)"'s (0 mutations)
268.81 s
[really-safe-money-gen] coverage (1428/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(<=) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is antisymmetric for "valid (AmountOf * CHF)"'s (0 mutations)
268.81 s
[really-safe-money-gen] coverage (1429/1610): Money\.AmountOfSpec.CHF.GenValid (AmountOf * CHF).genValid \:\: Gen (AmountOf * CHF).only generates valid '(AmountOf * CHF)'s (0 mutations)
268.84 s
[really-safe-money-gen] coverage (1430/1610): Money\.AmountOfSpec.CHF.distribute.Show (Distribution (AmountOf * CHF)) and Read (Distribution (AmountOf * CHF)).are implemented such that read \. show == id for valid values (1 mutations)
268.91 s
[really-safe-money-gen] coverage (1431/1610): Money\.AmountOfSpec.CHF.distribute.produces valid amounts (17 mutations)
269.09 s
[really-safe-money-gen] coverage (1432/1610): Money\.AmountOfSpec.CHF.distribute.produces results that sum up to the greater whole (18 mutations)
269.19 s
[really-safe-money-gen] coverage (1433/1610): Money\.AmountOfSpec.CHF.distribute.Eq (Distribution (AmountOf * CHF)).(/=) \:\: (Distribution (AmountOf * CHF)) -> (Distribution (AmountOf * CHF)) -> Bool.is antireflexive for "valid (Distribution (AmountOf * CHF))"s (1 mutations)
269.29 s
[really-safe-money-gen] coverage (1434/1610): Money\.AmountOfSpec.CHF.distribute.Eq (Distribution (AmountOf * CHF)).(/=) \:\: (Distribution (AmountOf * CHF)) -> (Distribution (AmountOf * CHF)) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution (AmountOf * CHF))"s (1 mutations)
269.42 s
[really-safe-money-gen] coverage (1435/1610): Money\.AmountOfSpec.CHF.distribute.Eq (Distribution (AmountOf * CHF)).(==) \:\: (Distribution (AmountOf * CHF)) -> (Distribution (AmountOf * CHF)) -> Bool.is symmetric for "valid (Distribution (AmountOf * CHF))"s (1 mutations)
269.78 s
[really-safe-money-gen] coverage (1436/1610): Money\.AmountOfSpec.CHF.distribute.Eq (Distribution (AmountOf * CHF)).(==) \:\: (Distribution (AmountOf * CHF)) -> (Distribution (AmountOf * CHF)) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution (AmountOf * CHF))"s (1 mutations)
269.96 s
[really-safe-money-gen] coverage (1437/1610): Money\.AmountOfSpec.CHF.distribute.Eq (Distribution (AmountOf * CHF)).(==) \:\: (Distribution (AmountOf * CHF)) -> (Distribution (AmountOf * CHF)) -> Bool.is reflexive for "valid (Distribution (AmountOf * CHF))"s (1 mutations)
270.11 s
[really-safe-money-gen] coverage (1438/1610): Money\.AmountOfSpec.CHF.distribute.Eq (Distribution (AmountOf * CHF)).(==) \:\: (Distribution (AmountOf * CHF)) -> (Distribution (AmountOf * CHF)) -> Bool.is transitive for "valid (Distribution (AmountOf * CHF))"s (1 mutations)
270.23 s
[really-safe-money-gen] coverage (1439/1610): Money\.AmountOfSpec.CHF.add.is commutative (4 mutations)
270.45 s
[really-safe-money-gen] coverage (1441/1610): Money\.AmountOfSpec.CHF.add.is associative when both succeed (4 mutations)
270.49 s
[really-safe-money-gen] coverage (1440/1610): Money\.AmountOfSpec.CHF.add.has a left-identity\: zero (5 mutations)
270.51 s
[really-safe-money-gen] coverage (1444/1610): Money\.AmountOfSpec.CHF.add.has a right-identity\: zero (5 mutations)
270.54 s
[really-safe-money-gen] coverage (1442/1610): Money\.AmountOfSpec.CHF.add.produces valid amounts (4 mutations)
270.70 s
[really-safe-money-gen] coverage (1421/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(>=) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is reflexive for "valid (AmountOf * CHF)"'s (0 mutations)
270.72 s
[really-safe-money-gen] coverage (1401/1610): Money\.AmountOfSpec.CHF.format.produces valid strings (3 mutations)
270.82 s
[really-safe-money-gen] coverage (1425/1610): Money\.AmountOfSpec.CHF.Ord (AmountOf * CHF).(<=) \:\: (AmountOf * CHF) -> (AmountOf * CHF) -> Bool.is transitive for "valid (AmountOf * CHF)"'s (0 mutations)
270.96 s
[really-safe-money-gen] coverage (1404/1610): Money\.AmountOfSpec.CHF.fromDouble.fails on +Infinity (7 mutations)
271.11 s
[really-safe-money-gen] coverage (1407/1610): Money\.AmountOfSpec.CHF.fromDouble.fails on NaN (5 mutations)
271.14 s
[really-safe-money-gen] coverage (1445/1610): Money\.AmountSpec.fraction.Produces a result that has been rounded in the right direction when using RoundDown (4 mutations)
271.34 s
[really-safe-money-gen] coverage (1400/1610): Money\.AmountOfSpec.CHF.Show (AmountOf * CHF) and Read (AmountOf * CHF).are implemented such that read \. show == id for valid values (1 mutations)
271.40 s
[really-safe-money-gen] coverage (1398/1610): Money\.AmountOfSpec.CHF.CHF.convert.produces valid amounts (15 mutations)
271.50 s
[really-safe-money-gen] coverage (1451/1610): Money\.AmountSpec.format.formats 1 correctly with quantisation factor 1 (3 mutations)
271.82 s
[really-safe-money-gen] coverage (1452/1610): Money\.AmountSpec.format.formats 1 correctly with quantisation factor 10 (3 mutations)
271.82 s
[really-safe-money-gen] coverage (1465/1610): Money\.AmountSpec.distribute.correctly distributes 10 into 4 (6 mutations)
271.84 s
[really-safe-money-gen] coverage (1449/1610): Money\.AmountSpec.fraction.Correctly fractions 100 with 1 % 100 (7 mutations)
272.12 s
[really-safe-money-gen] coverage (1447/1610): Money\.AmountSpec.fraction.Produces a result that can be multiplied back (10 mutations)
272.22 s
[really-safe-money-gen] coverage (1466/1610): Money\.AmountSpec.distribute.GenValid (Distribution Amount).genValid \:\: Gen (Distribution Amount).only generates valid '(Distribution Amount)'s (8 mutations)
272.23 s
[really-safe-money-gen] coverage (1453/1610): Money\.AmountSpec.format.produces valid strings (3 mutations)
272.27 s
[really-safe-money-gen] coverage (1448/1610): Money\.AmountSpec.fraction.produces valid amounts (10 mutations)
272.31 s
[really-safe-money-gen] coverage (1467/1610): Money\.AmountSpec.distribute.correctly distributes 5 into 3 (6 mutations)
272.47 s
[really-safe-money-gen] coverage (1468/1610): Money\.AmountSpec.distribute.Eq (Distribution Amount).(==) \:\: (Distribution Amount) -> (Distribution Amount) -> Bool.is symmetric for "valid (Distribution Amount)"s (1 mutations)
272.59 s
[really-safe-money-gen] coverage (1454/1610): Money\.AmountSpec.fromRatio.produces valid Amounts (13 mutations)
272.90 s
[really-safe-money-gen] coverage (1469/1610): Money\.AmountSpec.distribute.Eq (Distribution Amount).(==) \:\: (Distribution Amount) -> (Distribution Amount) -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid (Distribution Amount)"s (1 mutations)
272.97 s
[really-safe-money-gen] coverage (1464/1610): Money\.AmountSpec.distribute.Show (Distribution Amount) and Read (Distribution Amount).are implemented such that read \. show == id for valid values (1 mutations)
273.13 s
[really-safe-money-gen] coverage (1470/1610): Money\.AmountSpec.distribute.Eq (Distribution Amount).(==) \:\: (Distribution Amount) -> (Distribution Amount) -> Bool.is reflexive for "valid (Distribution Amount)"s (1 mutations)
273.23 s
[really-safe-money-gen] coverage (1471/1610): Money\.AmountSpec.distribute.Eq (Distribution Amount).(==) \:\: (Distribution Amount) -> (Distribution Amount) -> Bool.is transitive for "valid (Distribution Amount)"s (1 mutations)
273.41 s
[really-safe-money-gen] coverage (1472/1610): Money\.AmountSpec.distribute.Eq (Distribution Amount).(/=) \:\: (Distribution Amount) -> (Distribution Amount) -> Bool.is antireflexive for "valid (Distribution Amount)"s (1 mutations)
273.53 s
[really-safe-money-gen] coverage (1461/1610): Money\.AmountSpec.fromRatio.fails on 7\.123 with quantisation factor 10 (9 mutations)
273.63 s
[really-safe-money-gen] coverage (1473/1610): Money\.AmountSpec.distribute.Eq (Distribution Amount).(/=) \:\: (Distribution Amount) -> (Distribution Amount) -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid (Distribution Amount)"s (1 mutations)
273.69 s
[really-safe-money-gen] coverage (1474/1610): Money\.AmountSpec.distribute.produces valid amounts (13 mutations)
273.69 s
[really-safe-money-gen] coverage (1455/1610): Money\.AmountSpec.fromRatio.roundtrips with toRatio (13 mutations)
273.73 s
[really-safe-money-gen] coverage (1446/1610): Money\.AmountSpec.fraction.Correctly fractions 101 with 1 % 100 (7 mutations)
274.01 s
[really-safe-money-gen] coverage (1462/1610): Money\.AmountSpec.distribute.correctly distributes 3 into 3 (6 mutations)
274.08 s
[really-safe-money-gen] coverage (1459/1610): Money\.AmountSpec.fromRatio.succeeds on 77\.02 with quantisation factor 100 (13 mutations)
274.14 s
[really-safe-money-gen] coverage (1463/1610): Money\.AmountSpec.distribute.produces results that sum up to the greater whole (14 mutations)
274.22 s
[really-safe-money-gen] coverage (1478/1610): Money\.AmountSpec.sum.correctly sums [1,2,3] to 6 (5 mutations)
274.34 s
[really-safe-money-gen] coverage (1460/1610): Money\.AmountSpec.fromRatio.succeeds on 0 (13 mutations)
274.51 s
[really-safe-money-gen] coverage (1458/1610): Money\.AmountSpec.fromRatio.fails on +Infinity (2 mutations)
274.79 s
[really-safe-money-gen] coverage (1475/1610): Money\.AmountSpec.sum.produces valid amounts (5 mutations)
274.80 s
[really-safe-money-gen] coverage (1456/1610): Money\.AmountSpec.fromRatio.succeeds on 1 (13 mutations)
274.87 s
[really-safe-money-gen] coverage (1457/1610): Money\.AmountSpec.fromRatio.fails on NaN (2 mutations)
275.00 s
[really-safe-money-gen] coverage (1481/1610): Money\.AmountSpec.multiply.produces valid amounts (4 mutations)
275.37 s
[really-safe-money-gen] coverage (1443/1610): Money\.AmountOfSpec.CHF.add.matches what you would get with Integer, if nothing fails (4 mutations)
275.40 s
[really-safe-money-gen] coverage (1450/1610): Money\.AmountSpec.fraction.Produces a result that has been rounded in the right direction when using RoundUp (4 mutations)
275.46 s
[really-safe-money-gen] coverage (1485/1610): Money\.AmountSpec.multiply.succeeds for 3 * 6 (4 mutations)
275.52 s
[really-safe-money-gen] coverage (1484/1610): Money\.AmountSpec.multiply.has an identity\: 1 (4 mutations)
275.62 s
[really-safe-money-gen] coverage (1482/1610): Money\.AmountSpec.multiply.is absorbed by 0 (5 mutations)
275.72 s
[really-safe-money-gen] coverage (1487/1610): Money\.AmountSpec.fromDouble.fails on really large numbers (14 mutations)
275.98 s
[really-safe-money-gen] coverage (1486/1610): Money\.AmountSpec.Show Amount and Read Amount.are implemented such that read \. show == id for valid values (1 mutations)
276.28 s
[really-safe-money-gen] coverage (1489/1610): Money\.AmountSpec.fromDouble.succeeds on 77\.02 with quantisation factor 100 (22 mutations)
276.30 s
[really-safe-money-gen] coverage (1488/1610): Money\.AmountSpec.fromDouble.roundtrips with toDouble, back to double (22 mutations)
276.47 s
[really-safe-money-gen] coverage (1490/1610): Money\.AmountSpec.fromDouble.produces valid amounts (22 mutations)
276.64 s
[really-safe-money-gen] coverage (1492/1610): Money\.AmountSpec.fromDouble.fails on NaN (5 mutations)
276.82 s
[really-safe-money-gen] coverage (1477/1610): Money\.AmountSpec.sum.fails to sum above maxBound (5 mutations)
276.87 s
[really-safe-money-gen] coverage (1479/1610): Money\.AmountSpec.multiply.matches what you would get with Integer, if nothing fails (4 mutations)
277.01 s
[really-safe-money-gen] coverage (1480/1610): Money\.AmountSpec.multiply.fails for 2 * maxbound (4 mutations)
277.21 s
[really-safe-money-gen] coverage (1494/1610): Money\.AmountSpec.fromDouble.fails on 7\.123 with quantisation factor 10 (18 mutations)
277.39 s
[really-safe-money-gen] coverage (1496/1610): Money\.AmountSpec.fromDouble.fails on +Infinity (7 mutations)
277.43 s
[really-safe-money-gen] coverage (1483/1610): Money\.AmountSpec.multiply.is distributive with add when both succeed (8 mutations)
277.80 s
[really-safe-money-gen] coverage (1499/1610): Money\.AmountSpec.Ord Amount.(<=) \:\: Amount -> Amount -> Bool.is reflexive for "valid Amount"'s (0 mutations)
277.85 s
[really-safe-money-gen] coverage (1500/1610): Money\.AmountSpec.Ord Amount.(<=) \:\: Amount -> Amount -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid Amount"'s (0 mutations)
277.88 s
[really-safe-money-gen] coverage (1497/1610): Money\.AmountSpec.fromDouble.succeeds on 1 (22 mutations)
277.90 s
[really-safe-money-gen] coverage (1498/1610): Money\.AmountSpec.fromDouble.succeeds on 0 (22 mutations)
277.92 s
[really-safe-money-gen] coverage (1502/1610): Money\.AmountSpec.Ord Amount.(<=) \:\: Amount -> Amount -> Bool.is transitive for "valid Amount"'s (0 mutations)
278.20 s
[really-safe-money-gen] coverage (1503/1610): Money\.AmountSpec.Ord Amount.(>=) \:\: Amount -> Amount -> Bool.is transitive for "valid Amount"'s (0 mutations)
278.40 s
[really-safe-money-gen] coverage (1504/1610): Money\.AmountSpec.Ord Amount.(>=) \:\: Amount -> Amount -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid Amount"'s (0 mutations)
278.41 s
[really-safe-money-gen] coverage (1505/1610): Money\.AmountSpec.Ord Amount.(>=) \:\: Amount -> Amount -> Bool.is antisymmetric for "valid Amount"'s (0 mutations)
278.61 s
[really-safe-money-gen] coverage (1507/1610): Money\.AmountSpec.Ord Amount."max \:\: (Amount -> Amount -> Amount)".is equivalent to (\\a b -> if a >= b then a else b) for "valid Amount"'s (0 mutations)
278.63 s
[really-safe-money-gen] coverage (1476/1610): Money\.AmountSpec.sum.matches what you would get with Integer, if nothing fails (5 mutations)
278.63 s
[really-safe-money-gen] coverage (1506/1610): Money\.AmountSpec.Ord Amount.(>=) \:\: Amount -> Amount -> Bool.is reflexive for "valid Amount"'s (0 mutations)
278.74 s
[really-safe-money-gen] coverage (1509/1610): Money\.AmountSpec.Ord Amount.(<) \:\: Amount -> Amount -> Bool.is transitive for "valid Amount"'s (0 mutations)
278.97 s
[really-safe-money-gen] coverage (1511/1610): Money\.AmountSpec.Ord Amount."min \:\: (Amount -> Amount -> Amount)".is equivalent to (\\a b -> if a <= b then a else b) for "valid Amount"'s (0 mutations)
279.01 s
[really-safe-money-gen] coverage (1512/1610): Money\.AmountSpec.Ord Amount.(>) \:\: Amount -> Amount -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid Amount"'s (0 mutations)
279.11 s
[really-safe-money-gen] coverage (1513/1610): Money\.AmountSpec.Ord Amount.(>) \:\: Amount -> Amount -> Bool.is antireflexive for "valid Amount"'s (0 mutations)
279.19 s
[really-safe-money-gen] coverage (1516/1610): Money\.AmountSpec.toRational.produces an invalid Rational with quantisation factor 0 (1 mutations)
279.32 s
[really-safe-money-gen] coverage (1515/1610): Money\.AmountSpec.toRational.produces valid Rationals when the quantisation factor is nonzero (0 mutations)
279.63 s
[really-safe-money-gen] coverage (1519/1610): Money\.AmountSpec.fromRational.fails on really large numbers (13 mutations)
279.86 s
[really-safe-money-gen] coverage (1517/1610): Money\.AmountSpec.fromRational.roundtrips with toRational (13 mutations)
279.91 s
[really-safe-money-gen] coverage (1520/1610): Money\.AmountSpec.fromRational.fails on -Infinity (2 mutations)
280.04 s
[really-safe-money-gen] coverage (1493/1610): Money\.AmountSpec.fromDouble.fails on -1 (3 mutations)
280.22 s
[really-safe-money-gen] coverage (1522/1610): Money\.AmountSpec.fromRational.succeeds on 77\.02 with quantisation factor 100 (13 mutations)
280.22 s
[really-safe-money-gen] coverage (1521/1610): Money\.AmountSpec.fromRational.succeeds on 1 (13 mutations)
280.38 s
[really-safe-money-gen] coverage (1514/1610): Money\.AmountSpec.Ord Amount.(>) \:\: Amount -> Amount -> Bool.is transitive for "valid Amount"'s (0 mutations)
280.44 s
[really-safe-money-gen] coverage (1525/1610): Money\.AmountSpec.fromRational.fails on -1 (5 mutations)
280.57 s
[really-safe-money-gen] coverage (1524/1610): Money\.AmountSpec.fromRational.fails on +Infinity (2 mutations)
280.70 s
[really-safe-money-gen] coverage (1534/1610): Money\.AmountSpec.add.fails for maxBound + maxBound (4 mutations)
280.90 s
[really-safe-money-gen] coverage (1528/1610): Money\.AmountSpec.add.is associative when both succeed (4 mutations)
281.00 s
[really-safe-money-gen] coverage (1536/1610): Money\.AmountSpec.toMinimalQuantisations.roundtrips with fromMinimalQuantisations (0 mutations)
281.09 s
[really-safe-money-gen] coverage (1537/1610): Money\.AmountSpec.toMinimalQuantisations.produces valid Int64s (0 mutations)
281.10 s
[really-safe-money-gen] coverage (1538/1610): Money\.AmountSpec.Eq Amount.(/=) \:\: Amount -> Amount -> Bool.is antireflexive for "valid Amount"s (0 mutations)
281.17 s
[really-safe-money-gen] coverage (1540/1610): Money\.AmountSpec.Eq Amount.(==) \:\: Amount -> Amount -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid Amount"s (0 mutations)
281.39 s
[really-safe-money-gen] coverage (1539/1610): Money\.AmountSpec.Eq Amount.(/=) \:\: Amount -> Amount -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid Amount"s (0 mutations)
281.61 s
[really-safe-money-gen] coverage (1541/1610): Money\.AmountSpec.Eq Amount.(==) \:\: Amount -> Amount -> Bool.is transitive for "valid Amount"s (0 mutations)
281.69 s
[really-safe-money-gen] coverage (1542/1610): Money\.AmountSpec.Eq Amount.(==) \:\: Amount -> Amount -> Bool.is reflexive for "valid Amount"s (0 mutations)
281.80 s
[really-safe-money-gen] coverage (1543/1610): Money\.AmountSpec.Eq Amount.(==) \:\: Amount -> Amount -> Bool.is symmetric for "valid Amount"s (0 mutations)
281.93 s
[really-safe-money-gen] coverage (1546/1610): Money\.AmountSpec.toDouble.succeeds on 7702 with quantisation factor 100 (0 mutations)
281.95 s
[really-safe-money-gen] coverage (1544/1610): Money\.AmountSpec.GenValid Amount.genValid \:\: Gen Amount.only generates valid 'Amount's (0 mutations)
282.05 s
[really-safe-money-gen] coverage (1545/1610): Money\.AmountSpec.toDouble.produces valid Doubles (0 mutations)
282.14 s
[really-safe-money-gen] coverage (1547/1610): Money\.AmountSpec.toDouble.produces an infinite Double with quantisation factor 0 (0 mutations)
282.28 s
[really-safe-money-gen] coverage (1550/1610): Money\.AmountSpec.rate.computes this USD to CHF rate correctly (6 mutations)
282.45 s
[really-safe-money-gen] coverage (1551/1610): Money\.AmountSpec.zero.is valid (1 mutations)
282.88 s
[really-safe-money-gen] coverage (1553/1610): Money\.AmountSpec.convert.converts this USD to CHF correctly (13 mutations)
283.14 s
[really-safe-money-gen] coverage (1558/1610): Money\.AmountSpec.subtract.fails for 0 - 1 (5 mutations)
283.15 s
[really-safe-money-gen] coverage (1548/1610): Money\.AmountSpec.rate.produces valid conversion rates (6 mutations)
283.17 s
[really-safe-money-gen] coverage (1552/1610): Money\.AmountSpec.convert.succeeds in converting 1\:1 without rounding if the quantisation factor is the same (15 mutations)
283.22 s
[really-safe-money-gen] coverage (1555/1610): Money\.AmountSpec.toRatio.produces an invalid Rational with quantisation factor 0 (1 mutations)
283.50 s
[really-safe-money-gen] coverage (1491/1610): Money\.AmountSpec.fromDouble.fails on really large numbers:1 (7 mutations)
283.50 s
[really-safe-money-gen] coverage (1556/1610): Money\.AmountSpec.toRatio.produces valid Rationals when the quantisation factor is nonzero (0 mutations)
283.51 s
[really-safe-money-gen] coverage (1560/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 600 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 20} (17 mutations)
283.62 s
[really-safe-money-gen] coverage (1559/1610): Money\.AmountSpec.subtract.matches what you would get with Integer, if nothing fails (5 mutations)
283.74 s
[really-safe-money-gen] coverage (1563/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 20} into DecimalLiteral (Just True) 600 2 (25 mutations)
283.78 s
[really-safe-money-gen] coverage (1562/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 2 0 into decimalLiteral QuantisationFactor {unQuantisationFactor = 1} (17 mutations)
283.80 s
[really-safe-money-gen] coverage (1549/1610): Money\.AmountSpec.rate.computes a rate that can be used to do a conversion without rounding (14 mutations)
284.01 s
[really-safe-money-gen] coverage (1571/1610): Money\.AmountSpec.DecimalLiteral.Amount\.fromDecimalLiteral.fails on this amount that is too precise:1 (13 mutations)
284.09 s
[really-safe-money-gen] coverage (1572/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 1} into DecimalLiteral (Just True) 2 0 (23 mutations)
284.19 s
[really-safe-money-gen] coverage (1565/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 500 8 into decimalLiteral QuantisationFactor {unQuantisationFactor = 100000000} (17 mutations)
284.21 s
[really-safe-money-gen] coverage (1566/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 200 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 100} (17 mutations)
284.26 s
[really-safe-money-gen] coverage (1568/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 500 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 20} (17 mutations)
284.45 s
[really-safe-money-gen] coverage (1567/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 20} into DecimalLiteral (Just True) 10 2 (27 mutations)
284.50 s
[really-safe-money-gen] coverage (1554/1610): Money\.AmountSpec.convert.produces valid amounts (15 mutations)
284.67 s
[really-safe-money-gen] coverage (1570/1610): Money\.AmountSpec.DecimalLiteral.Amount\.fromDecimalLiteral.fails on this amount that is too precise (13 mutations)
284.86 s
[really-safe-money-gen] coverage (1574/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 100} into DecimalLiteral (Just True) 3 2 (25 mutations)
285.00 s
[really-safe-money-gen] coverage (1532/1610): Money\.AmountSpec.add.has a right-identity\: zero (5 mutations)
285.03 s
[really-safe-money-gen] coverage (1561/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 100000000} into DecimalLiteral (Just True) 500 8 (27 mutations)
285.09 s
[really-safe-money-gen] coverage (1575/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 100 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 100} (17 mutations)
285.12 s
[really-safe-money-gen] coverage (1576/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 20} into DecimalLiteral (Just True) 500 2 (25 mutations)
285.19 s
[really-safe-money-gen] coverage (1578/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 100} into DecimalLiteral (Just True) 200 2 (25 mutations)
285.34 s
[really-safe-money-gen] coverage (1579/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 4 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 100} (17 mutations)
285.47 s
[really-safe-money-gen] coverage (1580/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 100} into DecimalLiteral (Just True) 100 2 (25 mutations)
285.87 s
[really-safe-money-gen] coverage (1581/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 100} into DecimalLiteral (Just True) 4 2 (25 mutations)
286.23 s
[really-safe-money-gen] coverage (1577/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 3 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 100} (17 mutations)
286.30 s
[really-safe-money-gen] coverage (1585/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 1 0 into decimalLiteral QuantisationFactor {unQuantisationFactor = 1} (17 mutations)
286.51 s
[really-safe-money-gen] coverage (1586/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 10 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 20} (17 mutations)
286.53 s
[really-safe-money-gen] coverage (1584/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 20} into DecimalLiteral (Just True) 20 2 (27 mutations)
286.61 s
[really-safe-money-gen] coverage (1587/1610): Money\.AmountSpec.fromMinimalQuantisations.produces valid amounts (0 mutations)
286.74 s
[really-safe-money-gen] coverage (1533/1610): Money\.AmountSpec.add.produces valid amounts (4 mutations)
286.80 s
[really-safe-money-gen] coverage (1523/1610): Money\.AmountSpec.fromRational.fails on 7\.123 with quantisation factor 10 (9 mutations)
286.84 s
[really-safe-money-gen] coverage (1526/1610): Money\.AmountSpec.fromRational.fails on NaN (2 mutations)
287.02 s
[really-safe-money-gen] coverage (1531/1610): Money\.AmountSpec.add.matches what you would get with Integer, if nothing fails (4 mutations)
287.31 s
[really-safe-money-gen] coverage (1593/1610): Money\.CurrencySpec.Eq Currency.(==) \:\: Currency -> Currency -> Bool.is reflexive for "valid Currency"s (1 mutations)
287.43 s
[really-safe-money-gen] coverage (1557/1610): Money\.AmountSpec.subtract.fails for 0 - maxBound (5 mutations)
287.58 s
[really-safe-money-gen] coverage (1592/1610): Money\.CurrencySpec.Eq Currency.(==) \:\: Currency -> Currency -> Bool.is transitive for "valid Currency"s (1 mutations)
287.60 s
[really-safe-money-gen] coverage (1590/1610): Money\.CurrencySpec.Eq Currency.(==) \:\: Currency -> Currency -> Bool.is equivalent to (\\a b -> not $ a /= b) for "valid Currency"s (1 mutations)
287.77 s
[really-safe-money-gen] coverage (1564/1610): Money\.AmountSpec.DecimalLiteral.can turn DecimalLiteral (Just True) 20 2 into decimalLiteral QuantisationFactor {unQuantisationFactor = 20} (17 mutations)
287.77 s
[really-safe-money-gen] coverage (1595/1610): Money\.CurrencySpec.Ord Currency."max \:\: (Currency -> Currency -> Currency)".is equivalent to (\\a b -> if a >= b then a else b) for "valid Currency"'s (1 mutations)
287.84 s
[really-safe-money-gen] coverage (1596/1610): Money\.CurrencySpec.Ord Currency."min \:\: (Currency -> Currency -> Currency)".is equivalent to (\\a b -> if a <= b then a else b) for "valid Currency"'s (1 mutations)
287.94 s
[really-safe-money-gen] coverage (1591/1610): Money\.CurrencySpec.Eq Currency.(==) \:\: Currency -> Currency -> Bool.is symmetric for "valid Currency"s (1 mutations)
288.02 s
[really-safe-money-gen] coverage (1535/1610): Money\.AmountSpec.add.has a left-identity\: zero (5 mutations)
288.11 s
[really-safe-money-gen] coverage (1589/1610): Money\.CurrencySpec.Eq Currency.(/=) \:\: Currency -> Currency -> Bool.is equivalent to (\\a b -> not $ a == b) for "valid Currency"s (1 mutations)
288.11 s
[really-safe-money-gen] coverage (1495/1610): Money\.AmountSpec.fromDouble.fails on -Infinity (3 mutations)
288.33 s
[really-safe-money-gen] coverage (1598/1610): Money\.CurrencySpec.Ord Currency.(<=) \:\: Currency -> Currency -> Bool.is antisymmetric for "valid Currency"'s (1 mutations)
288.48 s
[really-safe-money-gen] coverage (1602/1610): Money\.CurrencySpec.Ord Currency.(>) \:\: Currency -> Currency -> Bool.is equivalent to (\\a b -> compare a b == GT) for "valid Currency"'s (1 mutations)
288.52 s
[really-safe-money-gen] coverage (1603/1610): Money\.CurrencySpec.Ord Currency.(>) \:\: Currency -> Currency -> Bool.is antireflexive for "valid Currency"'s (1 mutations)
288.59 s
[really-safe-money-gen] coverage (1604/1610): Money\.CurrencySpec.Ord Currency.(>=) \:\: Currency -> Currency -> Bool.is transitive for "valid Currency"'s (1 mutations)
288.68 s
[really-safe-money-gen] coverage (1605/1610): Money\.CurrencySpec.Ord Currency.(>=) \:\: Currency -> Currency -> Bool.is antisymmetric for "valid Currency"'s (1 mutations)
288.94 s
[really-safe-money-gen] coverage (1606/1610): Money\.CurrencySpec.Ord Currency.(>=) \:\: Currency -> Currency -> Bool.is reflexive for "valid Currency"'s (1 mutations)
289.07 s
[really-safe-money-gen] coverage (1607/1610): Money\.CurrencySpec.Ord Currency.(>=) \:\: Currency -> Currency -> Bool.is equivalent to (\\a b -> compare a b /= LT) for "valid Currency"'s (1 mutations)
289.16 s
[really-safe-money-gen] coverage (1608/1610): Money\.CurrencySpec.Ord Currency.(<) \:\: Currency -> Currency -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid Currency"'s (1 mutations)
289.24 s
[really-safe-money-gen] coverage (1518/1610): Money\.AmountSpec.fromRational.succeeds on 0 (13 mutations)
289.30 s
[really-safe-money-gen] coverage (1610/1610): Money\.CurrencySpec.Ord Currency.(<) \:\: Currency -> Currency -> Bool.is antireflexive for "valid Currency"'s (1 mutations)
289.39 s
[really-safe-money-gen] coverage (1600/1610): Money\.CurrencySpec.Ord Currency.(<=) \:\: Currency -> Currency -> Bool.is reflexive for "valid Currency"'s (1 mutations)
289.47 s
[really-safe-money-gen] coverage (1609/1610): Money\.CurrencySpec.Ord Currency.(<) \:\: Currency -> Currency -> Bool.is transitive for "valid Currency"'s (1 mutations)
289.52 s
[really-safe-money-gen] coverage (1599/1610): Money\.CurrencySpec.Ord Currency.(<=) \:\: Currency -> Currency -> Bool.is equivalent to (\\a b -> compare a b /= GT) for "valid Currency"'s (1 mutations)
289.56 s
[really-safe-money-gen] coverage (1588/1610): Money\.CurrencySpec.Eq Currency.(/=) \:\: Currency -> Currency -> Bool.is antireflexive for "valid Currency"s (1 mutations)
289.56 s
[really-safe-money-gen] coverage (1527/1610): Money\.AmountSpec.fromRational.produces valid Amounts (13 mutations)
289.58 s
[really-safe-money-gen] coverage (1501/1610): Money\.AmountSpec.Ord Amount.(<=) \:\: Amount -> Amount -> Bool.is antisymmetric for "valid Amount"'s (0 mutations)
289.62 s
[really-safe-money-gen] coverage (1530/1610): Money\.AmountSpec.add.fails for maxBound + 1 (4 mutations)
289.67 s
[really-safe-money-gen] coverage (1594/1610): Money\.CurrencySpec.Show Currency and Read Currency.are implemented such that read \. show == id for valid values (1 mutations)
289.68 s
[really-safe-money-gen] coverage (1508/1610): Money\.AmountSpec.Ord Amount.(<) \:\: Amount -> Amount -> Bool.is antireflexive for "valid Amount"'s (0 mutations)
289.68 s
[really-safe-money-gen] coverage (1529/1610): Money\.AmountSpec.add.is commutative (4 mutations)
289.70 s
[really-safe-money-gen] coverage (1573/1610): Money\.AmountSpec.DecimalLiteral.can turn decimalLiteral QuantisationFactor {unQuantisationFactor = 1} into DecimalLiteral (Just True) 1 0 (23 mutations)
289.77 s
[really-safe-money-gen] coverage (1510/1610): Money\.AmountSpec.Ord Amount.(<) \:\: Amount -> Amount -> Bool.is equivalent to (\\a b -> compare a b == LT) for "valid Amount"'s (0 mutations)
289.80 s
[really-safe-money-gen] coverage (1597/1610): Money\.CurrencySpec.Ord Currency.(<=) \:\: Currency -> Currency -> Bool.is transitive for "valid Currency"'s (1 mutations)
289.85 s
[really-safe-money-gen] coverage (1601/1610): Money\.CurrencySpec.Ord Currency.(>) \:\: Currency -> Currency -> Bool.is transitive for "valid Currency"'s (1 mutations)
289.90 s
[really-safe-money-gen] coverage (1569/1610): Money\.AmountSpec.DecimalLiteral.Amount\.fromDecimalLiteral.produces valid factors (17 mutations)
300.10 s
[really-safe-money-gen] coverage (1582/1610): Money\.AmountSpec.DecimalLiteral.Amount\.toDecimalLiteral.produces valid decimal literals (29 mutations)
304.20 s
[really-safe-money-gen] coverage (1583/1610): Money\.AmountSpec.DecimalLiteral.Amount\.toDecimalLiteral.roundtrips with Amount\.fromDecimalLiteral (45 mutations)
304.34 s
[really-safe-money-gen] mutation-nix: running mutations
306.12 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
306.14 s
[really-safe-money-gen] @@ -171,10 +171,10 @@
306.14 s
[really-safe-money-gen] fmap
306.14 s
[really-safe-money-gen] ( ( \theoreticalResult ->
306.15 s
[really-safe-money-gen] let rounder :: Rational -> Integer
306.15 s
[really-safe-money-gen] - rounder = case r of
306.15 s
[really-safe-money-gen] - RoundUp -> ceiling
306.15 s
[really-safe-money-gen] - RoundDown -> floor
306.15 s
[really-safe-money-gen] - RoundNearest -> round
306.15 s
[really-safe-money-gen] + rounder = case r of
306.15 s
[really-safe-money-gen] + RoundUp -> ceiling
306.15 s
[really-safe-money-gen] + RoundDown -> floor
306.15 s
[really-safe-money-gen] + RoundNearest -> round
306.15 s
[really-safe-money-gen] roundedResult :: Integer
306.15 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
306.15 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
306.15 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
306.15 s
[really-safe-money-gen] @@ -171,10 +171,10 @@
306.15 s
[really-safe-money-gen] fmap
306.15 s
[really-safe-money-gen] ( ( \theoreticalResult ->
306.15 s
[really-safe-money-gen] let rounder :: Rational -> Integer
306.15 s
[really-safe-money-gen] - rounder = case r of
306.15 s
[really-safe-money-gen] - RoundUp -> ceiling
306.15 s
[really-safe-money-gen] - RoundDown -> floor
306.15 s
[really-safe-money-gen] - RoundNearest -> round
306.15 s
[really-safe-money-gen] + rounder = case r of
306.15 s
[really-safe-money-gen] + RoundUp -> ceiling
306.15 s
[really-safe-money-gen] + RoundDown -> floor
306.15 s
[really-safe-money-gen] + RoundNearest -> round
306.15 s
[really-safe-money-gen] roundedResult :: Integer
306.15 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
306.15 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
306.15 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:134:12-29
306.15 s
[really-safe-money-gen] @@ -131,7 +131,7 @@
306.15 s
[really-safe-money-gen] Just a -> do
306.15 s
[really-safe-money-gen] r <- Account.subtract a account
306.15 s
[really-safe-money-gen] Just $
306.15 s
[really-safe-money-gen] - if r == Account.zero
306.15 s
[really-safe-money-gen] + if not (r == Account.zero)
306.15 s
[really-safe-money-gen] then M.delete currency m
306.15 s
[really-safe-money-gen] else M.insert currency r m
306.15 s
[really-safe-money-gen]
306.15 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:134:12-29
306.15 s
[really-safe-money-gen] @@ -131,7 +131,7 @@
306.15 s
[really-safe-money-gen] Just a -> do
306.15 s
[really-safe-money-gen] r <- Account.subtract a account
306.15 s
[really-safe-money-gen] Just $
306.15 s
[really-safe-money-gen] - if r == Account.zero
306.15 s
[really-safe-money-gen] + if True
306.15 s
[really-safe-money-gen] then M.delete currency m
306.15 s
[really-safe-money-gen] else M.insert currency r m
306.15 s
[really-safe-money-gen]
306.15 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
306.15 s
[really-safe-money-gen] @@ -171,10 +171,10 @@
306.15 s
[really-safe-money-gen] fmap
306.15 s
[really-safe-money-gen] ( ( \theoreticalResult ->
306.15 s
[really-safe-money-gen] let rounder :: Rational -> Integer
306.15 s
[really-safe-money-gen] - rounder = case r of
306.15 s
[really-safe-money-gen] - RoundUp -> ceiling
306.15 s
[really-safe-money-gen] - RoundDown -> floor
306.15 s
[really-safe-money-gen] - RoundNearest -> round
306.15 s
[really-safe-money-gen] + rounder = case r of
306.15 s
[really-safe-money-gen] + RoundUp -> ceiling
306.15 s
[really-safe-money-gen] + RoundDown -> floor
306.15 s
[really-safe-money-gen] + RoundNearest -> round
306.15 s
[really-safe-money-gen] roundedResult :: Integer
306.15 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
306.15 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
306.15 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:134:12-29
306.15 s
[really-safe-money-gen] @@ -131,7 +131,7 @@
306.15 s
[really-safe-money-gen] Just a -> do
306.15 s
[really-safe-money-gen] r <- Account.subtract a account
306.15 s
[really-safe-money-gen] Just $
306.15 s
[really-safe-money-gen] - if r == Account.zero
306.15 s
[really-safe-money-gen] + if False
306.16 s
[really-safe-money-gen] then M.delete currency m
306.16 s
[really-safe-money-gen] else M.insert currency r m
306.16 s
[really-safe-money-gen]
306.16 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
306.16 s
[really-safe-money-gen] @@ -177,10 +177,10 @@
306.16 s
[really-safe-money-gen] RoundNearest -> round
306.16 s
[really-safe-money-gen] roundedResult :: Integer
306.16 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
306.16 s
[really-safe-money-gen] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
306.16 s
[really-safe-money-gen] - LT -> RoundedDown
306.16 s
[really-safe-money-gen] - EQ -> DidNotRound
306.16 s
[really-safe-money-gen] - GT -> RoundedUp
306.16 s
[really-safe-money-gen] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
306.16 s
[really-safe-money-gen] + LT -> RoundedDown
306.16 s
[really-safe-money-gen] + EQ -> DidNotRound
306.16 s
[really-safe-money-gen] + GT -> RoundedUp
306.16 s
[really-safe-money-gen] in (Account.fromMinimalQuantisations roundedResult, rounded)
306.16 s
[really-safe-money-gen] )
306.16 s
[really-safe-money-gen] . Prelude.sum
306.16 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
306.16 s
[really-safe-money-gen] @@ -177,10 +177,10 @@
306.16 s
[really-safe-money-gen] RoundNearest -> round
306.16 s
[really-safe-money-gen] roundedResult :: Integer
306.16 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
306.16 s
[really-safe-money-gen] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
306.16 s
[really-safe-money-gen] - LT -> RoundedDown
306.16 s
[really-safe-money-gen] - EQ -> DidNotRound
306.16 s
[really-safe-money-gen] - GT -> RoundedUp
306.16 s
[really-safe-money-gen] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
306.16 s
[really-safe-money-gen] + LT -> RoundedDown
306.16 s
[really-safe-money-gen] + EQ -> DidNotRound
306.16 s
[really-safe-money-gen] + GT -> RoundedUp
306.16 s
[really-safe-money-gen] in (Account.fromMinimalQuantisations roundedResult, rounded)
306.16 s
[really-safe-money-gen] )
306.16 s
[really-safe-money-gen] . Prelude.sum
306.16 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/MultiAccount.hs:134:9-37
306.16 s
[really-safe-money-gen] @@ -131,9 +131,9 @@
306.16 s
[really-safe-money-gen] Just a -> do
306.16 s
[really-safe-money-gen] r <- Account.subtract a account
306.16 s
[really-safe-money-gen] Just $
306.16 s
[really-safe-money-gen] - if r == Account.zero
306.16 s
[really-safe-money-gen] - then M.delete currency m
306.16 s
[really-safe-money-gen] - else M.insert currency r m
306.16 s
[really-safe-money-gen] + if r == Account.zero
306.16 s
[really-safe-money-gen] + then M.delete currency m
306.16 s
[really-safe-money-gen] + else M.insert currency r m
306.16 s
[really-safe-money-gen]
306.16 s
[really-safe-money-gen] -- | Try to convert every account to one currency.
306.16 s
[really-safe-money-gen] --
306.16 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:120:12-29
306.16 s
[really-safe-money-gen] @@ -117,7 +117,7 @@
306.16 s
[really-safe-money-gen] Just a -> do
306.16 s
[really-safe-money-gen] r <- Account.add a account
306.16 s
[really-safe-money-gen] Just $
306.16 s
[really-safe-money-gen] - if r == Account.zero
306.16 s
[really-safe-money-gen] + if True
306.16 s
[really-safe-money-gen] then M.delete currency m
306.16 s
[really-safe-money-gen] else M.insert currency r m
306.16 s
[really-safe-money-gen]
306.16 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:78:6-28
306.16 s
[really-safe-money-gen] @@ -75,7 +75,7 @@
306.16 s
[really-safe-money-gen]
306.16 s
[really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
306.16 s
[really-safe-money-gen] fromAccount currency amount =
306.16 s
[really-safe-money-gen] - if amount == Account.zero
306.16 s
[really-safe-money-gen] + if True
306.16 s
[really-safe-money-gen] then zero
306.16 s
[really-safe-money-gen] else MultiAccount $ M.singleton currency amount
306.16 s
[really-safe-money-gen]
306.16 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
306.16 s
[really-safe-money-gen] @@ -177,10 +177,10 @@
306.16 s
[really-safe-money-gen] RoundNearest -> round
306.16 s
[really-safe-money-gen] roundedResult :: Integer
306.16 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
306.16 s
[really-safe-money-gen] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
306.16 s
[really-safe-money-gen] - LT -> RoundedDown
306.16 s
[really-safe-money-gen] - EQ -> DidNotRound
306.16 s
[really-safe-money-gen] - GT -> RoundedUp
306.16 s
[really-safe-money-gen] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
306.16 s
[really-safe-money-gen] + LT -> RoundedDown
306.16 s
[really-safe-money-gen] + EQ -> DidNotRound
306.16 s
[really-safe-money-gen] + GT -> RoundedUp
306.16 s
[really-safe-money-gen] in (Account.fromMinimalQuantisations roundedResult, rounded)
306.16 s
[really-safe-money-gen] )
306.16 s
[really-safe-money-gen] . Prelude.sum
306.16 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/MultiAccount.hs:120:9-37
306.16 s
[really-safe-money-gen] @@ -117,9 +117,9 @@
306.16 s
[really-safe-money-gen] Just a -> do
306.16 s
[really-safe-money-gen] r <- Account.add a account
306.16 s
[really-safe-money-gen] Just $
306.16 s
[really-safe-money-gen] - if r == Account.zero
306.16 s
[really-safe-money-gen] - then M.delete currency m
306.16 s
[really-safe-money-gen] - else M.insert currency r m
306.16 s
[really-safe-money-gen] + if r == Account.zero
306.16 s
[really-safe-money-gen] + then M.delete currency m
306.16 s
[really-safe-money-gen] + else M.insert currency r m
306.17 s
[really-safe-money-gen]
306.17 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
306.17 s
[really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
306.17 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:129:23-37
306.17 s
[really-safe-money-gen] @@ -126,14 +126,14 @@
306.17 s
[really-safe-money-gen] subtractAccount m _ (Positive (Amount 0)) = Just m
306.17 s
[really-safe-money-gen] subtractAccount m _ (Negative (Amount 0)) = Just m
306.17 s
[really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
306.17 s
[really-safe-money-gen] - fmap MultiAccount $ case M.lookup currency m of
306.17 s
[really-safe-money-gen] - Nothing -> Just $ M.insert currency (Account.negate account) m
306.17 s
[really-safe-money-gen] - Just a -> do
306.17 s
[really-safe-money-gen] - r <- Account.subtract a account
306.17 s
[really-safe-money-gen] - Just $
306.17 s
[really-safe-money-gen] - if r == Account.zero
306.17 s
[really-safe-money-gen] - then M.delete currency m
306.17 s
[really-safe-money-gen] - else M.insert currency r m
306.17 s
[really-safe-money-gen] + fmap MultiAccount $ case M.lookup currency m of
306.17 s
[really-safe-money-gen] + Nothing -> Just $ M.insert currency (Account.negate account) m
306.17 s
[really-safe-money-gen] + Just a -> do
306.17 s
[really-safe-money-gen] + r <- Account.subtract a account
306.17 s
[really-safe-money-gen] + Just $
306.17 s
[really-safe-money-gen] + if r == Account.zero
306.17 s
[really-safe-money-gen] + then M.delete currency m
306.17 s
[really-safe-money-gen] + else M.insert currency r m
306.17 s
[really-safe-money-gen]
306.17 s
[really-safe-money-gen] -- | Try to convert every account to one currency.
306.17 s
[really-safe-money-gen] --
306.17 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:120:12-29
306.17 s
[really-safe-money-gen] @@ -117,7 +117,7 @@
306.17 s
[really-safe-money-gen] Just a -> do
306.17 s
[really-safe-money-gen] r <- Account.add a account
306.17 s
[really-safe-money-gen] Just $
306.17 s
[really-safe-money-gen] - if r == Account.zero
306.17 s
[really-safe-money-gen] + if False
306.17 s
[really-safe-money-gen] then M.delete currency m
306.17 s
[really-safe-money-gen] else M.insert currency r m
306.17 s
[really-safe-money-gen]
306.17 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:78:6-28
306.17 s
[really-safe-money-gen] @@ -75,7 +75,7 @@
306.17 s
[really-safe-money-gen]
306.17 s
[really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
306.17 s
[really-safe-money-gen] fromAccount currency amount =
306.17 s
[really-safe-money-gen] - if amount == Account.zero
306.17 s
[really-safe-money-gen] + if False
306.17 s
[really-safe-money-gen] then zero
306.17 s
[really-safe-money-gen] else MultiAccount $ M.singleton currency amount
306.17 s
[really-safe-money-gen]
306.17 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:120:12-29
306.17 s
[really-safe-money-gen] @@ -117,7 +117,7 @@
306.17 s
[really-safe-money-gen] Just a -> do
306.17 s
[really-safe-money-gen] r <- Account.add a account
306.17 s
[really-safe-money-gen] Just $
306.17 s
[really-safe-money-gen] - if r == Account.zero
306.17 s
[really-safe-money-gen] + if not (r == Account.zero)
306.18 s
[really-safe-money-gen] then M.delete currency m
306.18 s
[really-safe-money-gen] else M.insert currency r m
307.58 s
[really-safe-money-gen]
307.58 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:115:23-37
307.58 s
[really-safe-money-gen] @@ -112,14 +112,14 @@
307.58 s
[really-safe-money-gen] addAccount m _ (Positive (Amount 0)) = Just m
307.58 s
[really-safe-money-gen] addAccount m _ (Negative (Amount 0)) = Just m
307.58 s
[really-safe-money-gen] addAccount (MultiAccount m) currency account =
307.58 s
[really-safe-money-gen] - fmap MultiAccount $ case M.lookup currency m of
307.58 s
[really-safe-money-gen] - Nothing -> Just $ M.insert currency account m
307.58 s
[really-safe-money-gen] - Just a -> do
307.58 s
[really-safe-money-gen] - r <- Account.add a account
307.58 s
[really-safe-money-gen] - Just $
307.58 s
[really-safe-money-gen] - if r == Account.zero
307.58 s
[really-safe-money-gen] - then M.delete currency m
307.58 s
[really-safe-money-gen] - else M.insert currency r m
307.59 s
[really-safe-money-gen] + fmap MultiAccount $ case M.lookup currency m of
307.59 s
[really-safe-money-gen] + Nothing -> Just $ M.insert currency account m
307.59 s
[really-safe-money-gen] + Just a -> do
307.59 s
[really-safe-money-gen] + r <- Account.add a account
307.59 s
[really-safe-money-gen] + Just $
307.59 s
[really-safe-money-gen] + if r == Account.zero
307.59 s
[really-safe-money-gen] + then M.delete currency m
307.59 s
[really-safe-money-gen] + else M.insert currency r m
307.59 s
[really-safe-money-gen]
307.59 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
307.59 s
[really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
307.59 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:129:23-37
307.59 s
[really-safe-money-gen] @@ -126,14 +126,14 @@
307.59 s
[really-safe-money-gen] subtractAccount m _ (Positive (Amount 0)) = Just m
307.59 s
[really-safe-money-gen] subtractAccount m _ (Negative (Amount 0)) = Just m
307.59 s
[really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
307.59 s
[really-safe-money-gen] - fmap MultiAccount $ case M.lookup currency m of
307.59 s
[really-safe-money-gen] - Nothing -> Just $ M.insert currency (Account.negate account) m
307.59 s
[really-safe-money-gen] - Just a -> do
307.59 s
[really-safe-money-gen] - r <- Account.subtract a account
307.59 s
[really-safe-money-gen] - Just $
307.59 s
[really-safe-money-gen] - if r == Account.zero
307.59 s
[really-safe-money-gen] - then M.delete currency m
307.59 s
[really-safe-money-gen] - else M.insert currency r m
307.59 s
[really-safe-money-gen] + fmap MultiAccount $ case M.lookup currency m of
307.59 s
[really-safe-money-gen] + Nothing -> Just $ M.insert currency (Account.negate account) m
307.59 s
[really-safe-money-gen] + Just a -> do
307.59 s
[really-safe-money-gen] + r <- Account.subtract a account
307.59 s
[really-safe-money-gen] + Just $
307.59 s
[really-safe-money-gen] + if r == Account.zero
307.59 s
[really-safe-money-gen] + then M.delete currency m
307.59 s
[really-safe-money-gen] + else M.insert currency r m
307.59 s
[really-safe-money-gen]
307.59 s
[really-safe-money-gen] -- | Try to convert every account to one currency.
307.59 s
[really-safe-money-gen] --
307.59 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:115:23-37
307.59 s
[really-safe-money-gen] @@ -112,14 +112,14 @@
307.59 s
[really-safe-money-gen] addAccount m _ (Positive (Amount 0)) = Just m
307.59 s
[really-safe-money-gen] addAccount m _ (Negative (Amount 0)) = Just m
307.59 s
[really-safe-money-gen] addAccount (MultiAccount m) currency account =
307.59 s
[really-safe-money-gen] - fmap MultiAccount $ case M.lookup currency m of
307.60 s
[really-safe-money-gen] - Nothing -> Just $ M.insert currency account m
307.60 s
[really-safe-money-gen] - Just a -> do
307.60 s
[really-safe-money-gen] - r <- Account.add a account
307.60 s
[really-safe-money-gen] - Just $
307.60 s
[really-safe-money-gen] - if r == Account.zero
307.60 s
[really-safe-money-gen] - then M.delete currency m
307.60 s
[really-safe-money-gen] - else M.insert currency r m
307.60 s
[really-safe-money-gen] + fmap MultiAccount $ case M.lookup currency m of
307.60 s
[really-safe-money-gen] + Nothing -> Just $ M.insert currency account m
307.60 s
[really-safe-money-gen] + Just a -> do
307.60 s
[really-safe-money-gen] + r <- Account.add a account
307.60 s
[really-safe-money-gen] + Just $
307.60 s
[really-safe-money-gen] + if r == Account.zero
307.60 s
[really-safe-money-gen] + then M.delete currency m
307.60 s
[really-safe-money-gen] + else M.insert currency r m
307.60 s
[really-safe-money-gen]
307.60 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
307.60 s
[really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
307.60 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:78:6-28
307.60 s
[really-safe-money-gen] @@ -75,7 +75,7 @@
307.60 s
[really-safe-money-gen]
307.60 s
[really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
307.60 s
[really-safe-money-gen] fromAccount currency amount =
307.60 s
[really-safe-money-gen] - if amount == Account.zero
307.60 s
[really-safe-money-gen] + if not (amount == Account.zero)
307.60 s
[really-safe-money-gen] then zero
307.60 s
[really-safe-money-gen] else MultiAccount $ M.singleton currency amount
307.60 s
[really-safe-money-gen]
307.60 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/MultiAccount.hs:78:3-52
307.60 s
[really-safe-money-gen] @@ -75,9 +75,9 @@
307.60 s
[really-safe-money-gen]
307.60 s
[really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
307.60 s
[really-safe-money-gen] fromAccount currency amount =
307.60 s
[really-safe-money-gen] - if amount == Account.zero
307.60 s
[really-safe-money-gen] - then zero
307.60 s
[really-safe-money-gen] - else MultiAccount $ M.singleton currency amount
307.60 s
[really-safe-money-gen] + if amount == Account.zero
307.60 s
[really-safe-money-gen] + then zero
307.60 s
[really-safe-money-gen] + else MultiAccount $ M.singleton currency amount
307.60 s
[really-safe-money-gen]
307.60 s
[really-safe-money-gen] -- | No money of any currency
307.60 s
[really-safe-money-gen] zero :: MultiAccount currency
307.60 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:69:13-30
307.60 s
[really-safe-money-gen] @@ -66,7 +66,7 @@
307.60 s
[really-safe-money-gen] [ genericValidate ma,
307.60 s
[really-safe-money-gen] decorateMap m $ \_ a ->
307.60 s
[really-safe-money-gen] declare "The account is not zero" $
307.60 s
[really-safe-money-gen] - a /= Account.zero
307.60 s
[really-safe-money-gen] + True
307.60 s
[really-safe-money-gen] ]
307.60 s
[really-safe-money-gen]
307.60 s
[really-safe-money-gen] -- TODO no empty currencies
307.60 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:69:13-30
307.60 s
[really-safe-money-gen] @@ -66,7 +66,7 @@
307.60 s
[really-safe-money-gen] [ genericValidate ma,
307.60 s
[really-safe-money-gen] decorateMap m $ \_ a ->
307.60 s
[really-safe-money-gen] declare "The account is not zero" $
307.61 s
[really-safe-money-gen] - a /= Account.zero
307.61 s
[really-safe-money-gen] + not (a /= Account.zero)
307.61 s
[really-safe-money-gen] ]
307.61 s
[really-safe-money-gen]
307.61 s
[really-safe-money-gen] -- TODO no empty currencies
307.61 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:69:13-30
307.61 s
[really-safe-money-gen] @@ -66,7 +66,7 @@
307.61 s
[really-safe-money-gen] [ genericValidate ma,
307.61 s
[really-safe-money-gen] decorateMap m $ \_ a ->
307.61 s
[really-safe-money-gen] declare "The account is not zero" $
307.61 s
[really-safe-money-gen] - a /= Account.zero
307.61 s
[really-safe-money-gen] + False
307.61 s
[really-safe-money-gen] ]
307.61 s
[really-safe-money-gen]
307.61 s
[really-safe-money-gen] -- TODO no empty currencies
307.61 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAccount.hs:66:7-8
307.61 s
[really-safe-money-gen] @@ -63,11 +63,11 @@
307.61 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
307.61 s
[really-safe-money-gen] validate ma@(MultiAccount m) =
307.61 s
[really-safe-money-gen] mconcat
307.61 s
[really-safe-money-gen] - [ genericValidate ma,
307.61 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
307.61 s
[really-safe-money-gen] - declare "The account is not zero" $
307.61 s
[really-safe-money-gen] - a /= Account.zero
307.61 s
[really-safe-money-gen] - ]
307.61 s
[really-safe-money-gen] + [ genericValidate ma,
307.61 s
[really-safe-money-gen] + decorateMap m $ \_ a ->
307.61 s
[really-safe-money-gen] + declare "The account is not zero" $
307.61 s
[really-safe-money-gen] + a /= Account.zero
307.61 s
[really-safe-money-gen] + ]
307.61 s
[really-safe-money-gen]
307.61 s
[really-safe-money-gen] -- TODO no empty currencies
307.61 s
[really-safe-money-gen]
307.61 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAccount.hs:66:7-8
307.61 s
[really-safe-money-gen] @@ -63,11 +63,7 @@
307.61 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
307.61 s
[really-safe-money-gen] validate ma@(MultiAccount m) =
307.61 s
[really-safe-money-gen] mconcat
307.61 s
[really-safe-money-gen] - [ genericValidate ma,
307.61 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
307.61 s
[really-safe-money-gen] - declare "The account is not zero" $
307.61 s
[really-safe-money-gen] - a /= Account.zero
307.61 s
[really-safe-money-gen] - ]
307.61 s
[really-safe-money-gen] + []
307.61 s
[really-safe-money-gen]
307.61 s
[really-safe-money-gen] -- TODO no empty currencies
307.61 s
[really-safe-money-gen]
307.61 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/ConversionRate.hs:116:45-46
307.61 s
[really-safe-money-gen] @@ -113,7 +113,7 @@
307.61 s
[really-safe-money-gen] -- >>> invert (ConversionRate (1 % 2))
307.61 s
[really-safe-money-gen] -- ConversionRate {unConversionRate = 2 % 1}
307.61 s
[really-safe-money-gen] invert :: ConversionRate -> ConversionRate
307.61 s
[really-safe-money-gen] -invert (ConversionRate r) = ConversionRate (1 / r)
307.61 s
[really-safe-money-gen] +invert (ConversionRate r) = ConversionRate (-1 / r)
307.61 s
[really-safe-money-gen]
307.61 s
[really-safe-money-gen] -- | Compose two conversion rates
307.62 s
[really-safe-money-gen] --
307.62 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/ConversionRate.hs:116:45-46
307.62 s
[really-safe-money-gen] @@ -113,7 +113,7 @@
307.62 s
[really-safe-money-gen] -- >>> invert (ConversionRate (1 % 2))
307.62 s
[really-safe-money-gen] -- ConversionRate {unConversionRate = 2 % 1}
307.62 s
[really-safe-money-gen] invert :: ConversionRate -> ConversionRate
307.62 s
[really-safe-money-gen] -invert (ConversionRate r) = ConversionRate (1 / r)
307.62 s
[really-safe-money-gen] +invert (ConversionRate r) = ConversionRate (0 / r)
307.62 s
[really-safe-money-gen]
307.62 s
[really-safe-money-gen] -- | Compose two conversion rates
307.62 s
[really-safe-money-gen] --
307.62 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/ConversionRate.hs:109:27-28
307.62 s
[really-safe-money-gen] @@ -106,7 +106,7 @@
307.62 s
[really-safe-money-gen]
307.62 s
[really-safe-money-gen] -- | One-to-one conversion rate
307.62 s
[really-safe-money-gen] oneToOne :: ConversionRate
307.62 s
[really-safe-money-gen] -oneToOne = ConversionRate 1
307.62 s
[really-safe-money-gen] +oneToOne = ConversionRate 0
307.62 s
[really-safe-money-gen]
307.62 s
[really-safe-money-gen] -- | Invert a 'ConversionRate', to convert in the other direction.
307.62 s
[really-safe-money-gen] --
307.62 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/ConversionRate.hs:72:25-26
307.62 s
[really-safe-money-gen] @@ -69,7 +69,7 @@
307.62 s
[really-safe-money-gen] -- >>> fromRational (0 % 1)
307.62 s
[really-safe-money-gen] -- Nothing
307.62 s
[really-safe-money-gen] fromRational :: Rational -> Maybe ConversionRate
307.62 s
[really-safe-money-gen] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
307.62 s
[really-safe-money-gen] +fromRational r = if r < 1 then Nothing else fromRatio (realToFrac r)
307.62 s
[really-safe-money-gen]
307.62 s
[really-safe-money-gen] -- | Turn a 'ConversionRate' back into a 'Rational'
307.62 s
[really-safe-money-gen] --
307.62 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/ConversionRate.hs:72:21-26
307.62 s
[really-safe-money-gen] @@ -69,7 +69,7 @@
307.62 s
[really-safe-money-gen] -- >>> fromRational (0 % 1)
307.62 s
[really-safe-money-gen] -- Nothing
307.62 s
[really-safe-money-gen] fromRational :: Rational -> Maybe ConversionRate
307.62 s
[really-safe-money-gen] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
307.62 s
[really-safe-money-gen] +fromRational r = if True then Nothing else fromRatio (realToFrac r)
307.62 s
[really-safe-money-gen]
307.62 s
[really-safe-money-gen] -- | Turn a 'ConversionRate' back into a 'Rational'
307.62 s
[really-safe-money-gen] --
307.62 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/ConversionRate.hs:109:27-28
307.62 s
[really-safe-money-gen] @@ -106,7 +106,7 @@
307.62 s
[really-safe-money-gen]
307.62 s
[really-safe-money-gen] -- | One-to-one conversion rate
307.62 s
[really-safe-money-gen] oneToOne :: ConversionRate
307.62 s
[really-safe-money-gen] -oneToOne = ConversionRate 1
307.62 s
[really-safe-money-gen] +oneToOne = ConversionRate -1
307.62 s
[really-safe-money-gen]
307.62 s
[really-safe-money-gen] -- | Invert a 'ConversionRate', to convert in the other direction.
307.62 s
[really-safe-money-gen] --
307.62 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/ConversionRate.hs:72:21-26
307.62 s
[really-safe-money-gen] @@ -69,7 +69,7 @@
307.62 s
[really-safe-money-gen] -- >>> fromRational (0 % 1)
307.62 s
[really-safe-money-gen] -- Nothing
307.62 s
[really-safe-money-gen] fromRational :: Rational -> Maybe ConversionRate
307.62 s
[really-safe-money-gen] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
307.62 s
[really-safe-money-gen] +fromRational r = if False then Nothing else fromRatio (realToFrac r)
307.62 s
[really-safe-money-gen]
307.62 s
[really-safe-money-gen] -- | Turn a 'ConversionRate' back into a 'Rational'
307.62 s
[really-safe-money-gen] --
307.62 s
[really-safe-money-gen] Testing mutation Negate at src/Money/ConversionRate.hs:72:21-26
307.62 s
[really-safe-money-gen] @@ -69,7 +69,7 @@
307.63 s
[really-safe-money-gen] -- >>> fromRational (0 % 1)
307.63 s
[really-safe-money-gen] -- Nothing
307.63 s
[really-safe-money-gen] fromRational :: Rational -> Maybe ConversionRate
307.63 s
[really-safe-money-gen] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
307.63 s
[really-safe-money-gen] +fromRational r = if not (r < 0) then Nothing else fromRatio (realToFrac r)
307.63 s
[really-safe-money-gen]
307.63 s
[really-safe-money-gen] -- | Turn a 'ConversionRate' back into a 'Rational'
307.63 s
[really-safe-money-gen] --
307.63 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/ConversionRate.hs:72:18-69
309.39 s
[really-safe-money-gen] @@ -69,7 +69,7 @@
309.39 s
[really-safe-money-gen] -- >>> fromRational (0 % 1)
309.39 s
[really-safe-money-gen] -- Nothing
309.39 s
[really-safe-money-gen] fromRational :: Rational -> Maybe ConversionRate
309.39 s
[really-safe-money-gen] -fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
309.39 s
[really-safe-money-gen] +fromRational r = if r < 0 then Nothing else fromRatio (realToFrac r)
309.39 s
[really-safe-money-gen]
309.39 s
[really-safe-money-gen] -- | Turn a 'ConversionRate' back into a 'Rational'
309.39 s
[really-safe-money-gen] --
309.39 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/ConversionRate.hs:38:41-57
309.39 s
[really-safe-money-gen] @@ -35,7 +35,7 @@
309.39 s
[really-safe-money-gen] validate cr@(ConversionRate r) =
309.39 s
[really-safe-money-gen] mconcat
309.39 s
[really-safe-money-gen] [ genericValidate cr,
309.39 s
[really-safe-money-gen] - declare "The rate is nonzero" $ numerator r /= 0
309.39 s
[really-safe-money-gen] + declare "The rate is nonzero" $ True
309.39 s
[really-safe-money-gen] ]
309.39 s
[really-safe-money-gen]
309.39 s
[really-safe-money-gen] instance NFData ConversionRate
309.39 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/ConversionRate.hs:38:56-57
309.39 s
[really-safe-money-gen] @@ -35,7 +35,7 @@
309.39 s
[really-safe-money-gen] validate cr@(ConversionRate r) =
309.39 s
[really-safe-money-gen] mconcat
309.39 s
[really-safe-money-gen] [ genericValidate cr,
309.39 s
[really-safe-money-gen] - declare "The rate is nonzero" $ numerator r /= 0
309.39 s
[really-safe-money-gen] + declare "The rate is nonzero" $ numerator r /= 1
309.40 s
[really-safe-money-gen] ]
309.40 s
[really-safe-money-gen]
309.40 s
[really-safe-money-gen] instance NFData ConversionRate
309.40 s
[really-safe-money-gen] Testing mutation Negate at src/Money/ConversionRate.hs:38:41-57
309.40 s
[really-safe-money-gen] @@ -35,7 +35,7 @@
309.40 s
[really-safe-money-gen] validate cr@(ConversionRate r) =
309.40 s
[really-safe-money-gen] mconcat
309.40 s
[really-safe-money-gen] [ genericValidate cr,
309.40 s
[really-safe-money-gen] - declare "The rate is nonzero" $ numerator r /= 0
309.40 s
[really-safe-money-gen] + declare "The rate is nonzero" $ not (numerator r /= 0)
309.40 s
[really-safe-money-gen] ]
309.40 s
[really-safe-money-gen]
309.40 s
[really-safe-money-gen] instance NFData ConversionRate
309.40 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/ConversionRate.hs:38:41-57
309.40 s
[really-safe-money-gen] @@ -35,7 +35,7 @@
309.40 s
[really-safe-money-gen] validate cr@(ConversionRate r) =
309.40 s
[really-safe-money-gen] mconcat
309.40 s
[really-safe-money-gen] [ genericValidate cr,
309.40 s
[really-safe-money-gen] - declare "The rate is nonzero" $ numerator r /= 0
309.40 s
[really-safe-money-gen] + declare "The rate is nonzero" $ False
309.40 s
[really-safe-money-gen] ]
309.40 s
[really-safe-money-gen]
309.40 s
[really-safe-money-gen] instance NFData ConversionRate
309.40 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
309.40 s
[really-safe-money-gen] @@ -156,10 +156,10 @@
309.40 s
[really-safe-money-gen] fmap
309.40 s
[really-safe-money-gen] ( ( \theoreticalResult ->
309.40 s
[really-safe-money-gen] let rounder :: Ratio Natural -> Natural
309.40 s
[really-safe-money-gen] - rounder = case r of
309.40 s
[really-safe-money-gen] - RoundUp -> ceiling
309.40 s
[really-safe-money-gen] - RoundDown -> floor
309.40 s
[really-safe-money-gen] - RoundNearest -> round
309.40 s
[really-safe-money-gen] + rounder = case r of
309.40 s
[really-safe-money-gen] + RoundUp -> ceiling
309.40 s
[really-safe-money-gen] + RoundDown -> floor
309.40 s
[really-safe-money-gen] + RoundNearest -> round
309.40 s
[really-safe-money-gen] roundedResult :: Natural
309.40 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
309.40 s
[really-safe-money-gen] maxBoundN :: Natural
309.40 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/ConversionRate.hs:37:7-8
309.40 s
[really-safe-money-gen] @@ -34,9 +34,7 @@
309.40 s
[really-safe-money-gen] instance Validity ConversionRate where
309.40 s
[really-safe-money-gen] validate cr@(ConversionRate r) =
309.40 s
[really-safe-money-gen] mconcat
309.40 s
[really-safe-money-gen] - [ genericValidate cr,
309.40 s
[really-safe-money-gen] - declare "The rate is nonzero" $ numerator r /= 0
309.40 s
[really-safe-money-gen] - ]
309.40 s
[really-safe-money-gen] + []
309.40 s
[really-safe-money-gen]
309.40 s
[really-safe-money-gen] instance NFData ConversionRate
309.40 s
[really-safe-money-gen]
309.40 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/ConversionRate.hs:37:7-8
309.40 s
[really-safe-money-gen] @@ -34,9 +34,9 @@
309.40 s
[really-safe-money-gen] instance Validity ConversionRate where
309.40 s
[really-safe-money-gen] validate cr@(ConversionRate r) =
309.40 s
[really-safe-money-gen] mconcat
309.40 s
[really-safe-money-gen] - [ genericValidate cr,
309.40 s
[really-safe-money-gen] - declare "The rate is nonzero" $ numerator r /= 0
309.40 s
[really-safe-money-gen] - ]
309.41 s
[really-safe-money-gen] + [ genericValidate cr,
309.41 s
[really-safe-money-gen] + declare "The rate is nonzero" $ numerator r /= 0
309.41 s
[really-safe-money-gen] + ]
309.41 s
[really-safe-money-gen]
309.41 s
[really-safe-money-gen] instance NFData ConversionRate
309.41 s
[really-safe-money-gen]
309.41 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
309.41 s
[really-safe-money-gen] @@ -156,10 +156,10 @@
309.41 s
[really-safe-money-gen] fmap
309.41 s
[really-safe-money-gen] ( ( \theoreticalResult ->
309.41 s
[really-safe-money-gen] let rounder :: Ratio Natural -> Natural
309.41 s
[really-safe-money-gen] - rounder = case r of
309.41 s
[really-safe-money-gen] - RoundUp -> ceiling
309.41 s
[really-safe-money-gen] - RoundDown -> floor
309.41 s
[really-safe-money-gen] - RoundNearest -> round
309.41 s
[really-safe-money-gen] + rounder = case r of
309.41 s
[really-safe-money-gen] + RoundUp -> ceiling
309.41 s
[really-safe-money-gen] + RoundDown -> floor
309.41 s
[really-safe-money-gen] + RoundNearest -> round
309.41 s
[really-safe-money-gen] roundedResult :: Natural
309.41 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
309.41 s
[really-safe-money-gen] maxBoundN :: Natural
309.41 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
309.41 s
[really-safe-money-gen] @@ -156,10 +156,10 @@
309.41 s
[really-safe-money-gen] fmap
309.41 s
[really-safe-money-gen] ( ( \theoreticalResult ->
309.41 s
[really-safe-money-gen] let rounder :: Ratio Natural -> Natural
309.41 s
[really-safe-money-gen] - rounder = case r of
309.41 s
[really-safe-money-gen] - RoundUp -> ceiling
309.41 s
[really-safe-money-gen] - RoundDown -> floor
309.41 s
[really-safe-money-gen] - RoundNearest -> round
309.41 s
[really-safe-money-gen] + rounder = case r of
309.41 s
[really-safe-money-gen] + RoundUp -> ceiling
309.41 s
[really-safe-money-gen] + RoundDown -> floor
309.41 s
[really-safe-money-gen] + RoundNearest -> round
309.41 s
[really-safe-money-gen] roundedResult :: Natural
309.41 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
309.41 s
[really-safe-money-gen] maxBoundN :: Natural
309.41 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:168:20-45
309.41 s
[really-safe-money-gen] @@ -165,7 +165,7 @@
309.41 s
[really-safe-money-gen] maxBoundN :: Natural
309.41 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
309.41 s
[really-safe-money-gen] actualResult =
309.41 s
[really-safe-money-gen] - if roundedResult > maxBoundN
309.41 s
[really-safe-money-gen] + if True
309.41 s
[really-safe-money-gen] then Nothing
309.41 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
309.41 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
309.41 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:168:20-45
309.41 s
[really-safe-money-gen] @@ -165,7 +165,7 @@
309.41 s
[really-safe-money-gen] maxBoundN :: Natural
309.41 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
309.41 s
[really-safe-money-gen] actualResult =
309.41 s
[really-safe-money-gen] - if roundedResult > maxBoundN
309.41 s
[really-safe-money-gen] + if False
309.41 s
[really-safe-money-gen] then Nothing
309.41 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
309.41 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
309.41 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/MultiAmount.hs:168:17-57
309.41 s
[really-safe-money-gen] @@ -165,9 +165,9 @@
309.41 s
[really-safe-money-gen] maxBoundN :: Natural
309.41 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
309.41 s
[really-safe-money-gen] actualResult =
309.41 s
[really-safe-money-gen] - if roundedResult > maxBoundN
309.41 s
[really-safe-money-gen] - then Nothing
309.41 s
[really-safe-money-gen] - else Just (fromIntegral roundedResult)
309.41 s
[really-safe-money-gen] + if roundedResult > maxBoundN
309.41 s
[really-safe-money-gen] + then Nothing
309.41 s
[really-safe-money-gen] + else Just (fromIntegral roundedResult)
309.41 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
309.41 s
[really-safe-money-gen] LT -> RoundedDown
309.41 s
[really-safe-money-gen] EQ -> DidNotRound
309.41 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:168:20-45
309.41 s
[really-safe-money-gen] @@ -165,7 +165,7 @@
309.41 s
[really-safe-money-gen] maxBoundN :: Natural
309.41 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
309.41 s
[really-safe-money-gen] actualResult =
309.41 s
[really-safe-money-gen] - if roundedResult > maxBoundN
309.41 s
[really-safe-money-gen] + if not (roundedResult > maxBoundN)
309.41 s
[really-safe-money-gen] then Nothing
309.41 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
309.41 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
309.41 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
309.41 s
[really-safe-money-gen] @@ -168,10 +168,10 @@
309.41 s
[really-safe-money-gen] if roundedResult > maxBoundN
309.41 s
[really-safe-money-gen] then Nothing
309.41 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
309.41 s
[really-safe-money-gen] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
309.41 s
[really-safe-money-gen] - LT -> RoundedDown
309.41 s
[really-safe-money-gen] - EQ -> DidNotRound
309.41 s
[really-safe-money-gen] - GT -> RoundedUp
309.41 s
[really-safe-money-gen] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
309.41 s
[really-safe-money-gen] + LT -> RoundedDown
309.41 s
[really-safe-money-gen] + EQ -> DidNotRound
309.41 s
[really-safe-money-gen] + GT -> RoundedUp
309.41 s
[really-safe-money-gen] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
309.41 s
[really-safe-money-gen] )
309.41 s
[really-safe-money-gen] . Prelude.sum
309.41 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
309.41 s
[really-safe-money-gen] @@ -168,10 +168,10 @@
309.41 s
[really-safe-money-gen] if roundedResult > maxBoundN
309.41 s
[really-safe-money-gen] then Nothing
309.42 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
309.42 s
[really-safe-money-gen] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
309.42 s
[really-safe-money-gen] - LT -> RoundedDown
309.42 s
[really-safe-money-gen] - EQ -> DidNotRound
309.42 s
[really-safe-money-gen] - GT -> RoundedUp
309.42 s
[really-safe-money-gen] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
309.42 s
[really-safe-money-gen] + LT -> RoundedDown
309.42 s
[really-safe-money-gen] + EQ -> DidNotRound
309.42 s
[really-safe-money-gen] + GT -> RoundedUp
309.42 s
[really-safe-money-gen] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
309.42 s
[really-safe-money-gen] )
309.42 s
[really-safe-money-gen] . Prelude.sum
309.42 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
309.42 s
[really-safe-money-gen] @@ -168,10 +168,10 @@
309.42 s
[really-safe-money-gen] if roundedResult > maxBoundN
309.42 s
[really-safe-money-gen] then Nothing
309.42 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
309.42 s
[really-safe-money-gen] - rounded = case compare (fromIntegral roundedResult) theoreticalResult of
309.42 s
[really-safe-money-gen] - LT -> RoundedDown
309.42 s
[really-safe-money-gen] - EQ -> DidNotRound
309.42 s
[really-safe-money-gen] - GT -> RoundedUp
309.42 s
[really-safe-money-gen] + rounded = case compare (fromIntegral roundedResult) theoreticalResult of
309.42 s
[really-safe-money-gen] + LT -> RoundedDown
309.42 s
[really-safe-money-gen] + EQ -> DidNotRound
309.42 s
[really-safe-money-gen] + GT -> RoundedUp
311.29 s
[really-safe-money-gen] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
311.37 s
[really-safe-money-gen] )
311.37 s
[really-safe-money-gen] . Prelude.sum
311.37 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:119:12-28
311.37 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
311.37 s
[really-safe-money-gen] Just a -> do
311.37 s
[really-safe-money-gen] r <- Amount.subtract a amount
311.37 s
[really-safe-money-gen] Just $
311.37 s
[really-safe-money-gen] - if r == Amount.zero
311.37 s
[really-safe-money-gen] + if True
311.37 s
[really-safe-money-gen] then M.delete currency m
311.37 s
[really-safe-money-gen] else M.insert currency r m
311.37 s
[really-safe-money-gen]
311.37 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:106:12-28
311.37 s
[really-safe-money-gen] @@ -103,7 +103,7 @@
311.37 s
[really-safe-money-gen] Just a -> do
311.37 s
[really-safe-money-gen] r <- Amount.add a amount
311.37 s
[really-safe-money-gen] Just $
311.37 s
[really-safe-money-gen] - if r == Amount.zero
311.37 s
[really-safe-money-gen] + if True
311.37 s
[really-safe-money-gen] then M.delete currency m
311.37 s
[really-safe-money-gen] else M.insert currency r m
311.37 s
[really-safe-money-gen]
311.37 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:73:6-27
311.37 s
[really-safe-money-gen] @@ -70,7 +70,7 @@
311.37 s
[really-safe-money-gen]
311.37 s
[really-safe-money-gen] fromAmount :: currency -> Amount -> MultiAmount currency
311.37 s
[really-safe-money-gen] fromAmount currency amount =
311.37 s
[really-safe-money-gen] - if amount == Amount.zero
311.38 s
[really-safe-money-gen] + if not (amount == Amount.zero)
311.38 s
[really-safe-money-gen] then zero
311.38 s
[really-safe-money-gen] else MultiAmount $ M.singleton currency amount
311.38 s
[really-safe-money-gen]
311.38 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:101:22-37
311.38 s
[really-safe-money-gen] @@ -98,14 +98,14 @@
311.38 s
[really-safe-money-gen] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
311.38 s
[really-safe-money-gen] addAmount m _ (Amount 0) = Just m
311.38 s
[really-safe-money-gen] addAmount (MultiAmount m) currency amount =
311.38 s
[really-safe-money-gen] - fmap MultiAmount $ case M.lookup currency m of
311.38 s
[really-safe-money-gen] - Nothing -> Just $ M.insert currency amount m
311.38 s
[really-safe-money-gen] - Just a -> do
311.38 s
[really-safe-money-gen] - r <- Amount.add a amount
311.38 s
[really-safe-money-gen] - Just $
311.38 s
[really-safe-money-gen] - if r == Amount.zero
311.38 s
[really-safe-money-gen] - then M.delete currency m
311.38 s
[really-safe-money-gen] - else M.insert currency r m
311.38 s
[really-safe-money-gen] + fmap MultiAmount $ case M.lookup currency m of
311.38 s
[really-safe-money-gen] + Nothing -> Just $ M.insert currency amount m
311.38 s
[really-safe-money-gen] + Just a -> do
311.38 s
[really-safe-money-gen] + r <- Amount.add a amount
311.38 s
[really-safe-money-gen] + Just $
311.38 s
[really-safe-money-gen] + if r == Amount.zero
311.38 s
[really-safe-money-gen] + then M.delete currency m
311.38 s
[really-safe-money-gen] + else M.insert currency r m
311.38 s
[really-safe-money-gen]
311.38 s
[really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
311.38 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
311.38 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/MultiAmount.hs:106:9-37
311.38 s
[really-safe-money-gen] @@ -103,9 +103,9 @@
311.38 s
[really-safe-money-gen] Just a -> do
311.38 s
[really-safe-money-gen] r <- Amount.add a amount
311.38 s
[really-safe-money-gen] Just $
311.38 s
[really-safe-money-gen] - if r == Amount.zero
311.38 s
[really-safe-money-gen] - then M.delete currency m
311.38 s
[really-safe-money-gen] - else M.insert currency r m
311.38 s
[really-safe-money-gen] + if r == Amount.zero
311.38 s
[really-safe-money-gen] + then M.delete currency m
311.38 s
[really-safe-money-gen] + else M.insert currency r m
311.38 s
[really-safe-money-gen]
311.38 s
[really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
311.38 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
311.38 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:119:12-28
311.38 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
311.38 s
[really-safe-money-gen] Just a -> do
311.38 s
[really-safe-money-gen] r <- Amount.subtract a amount
311.38 s
[really-safe-money-gen] Just $
311.38 s
[really-safe-money-gen] - if r == Amount.zero
311.38 s
[really-safe-money-gen] + if not (r == Amount.zero)
311.38 s
[really-safe-money-gen] then M.delete currency m
311.38 s
[really-safe-money-gen] else M.insert currency r m
311.38 s
[really-safe-money-gen]
311.38 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:114:22-37
311.38 s
[really-safe-money-gen] @@ -111,14 +111,14 @@
311.38 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
311.38 s
[really-safe-money-gen] subtractAmount m _ (Amount 0) = Just m
311.38 s
[really-safe-money-gen] subtractAmount (MultiAmount m) currency amount =
311.38 s
[really-safe-money-gen] - fmap MultiAmount $ case M.lookup currency m of
311.38 s
[really-safe-money-gen] - Nothing -> Nothing -- Can't go below zero
311.38 s
[really-safe-money-gen] - Just a -> do
311.38 s
[really-safe-money-gen] - r <- Amount.subtract a amount
311.38 s
[really-safe-money-gen] - Just $
311.38 s
[really-safe-money-gen] - if r == Amount.zero
311.38 s
[really-safe-money-gen] - then M.delete currency m
311.38 s
[really-safe-money-gen] - else M.insert currency r m
311.38 s
[really-safe-money-gen] + fmap MultiAmount $ case M.lookup currency m of
311.38 s
[really-safe-money-gen] + Nothing -> Nothing -- Can't go below zero
311.38 s
[really-safe-money-gen] + Just a -> do
311.38 s
[really-safe-money-gen] + r <- Amount.subtract a amount
311.38 s
[really-safe-money-gen] + Just $
311.38 s
[really-safe-money-gen] + if r == Amount.zero
311.39 s
[really-safe-money-gen] + then M.delete currency m
311.39 s
[really-safe-money-gen] + else M.insert currency r m
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] -- | Try to convert every amount to one currency.
311.39 s
[really-safe-money-gen] --
311.39 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:106:12-28
311.39 s
[really-safe-money-gen] @@ -103,7 +103,7 @@
311.39 s
[really-safe-money-gen] Just a -> do
311.39 s
[really-safe-money-gen] r <- Amount.add a amount
311.39 s
[really-safe-money-gen] Just $
311.39 s
[really-safe-money-gen] - if r == Amount.zero
311.39 s
[really-safe-money-gen] + if False
311.39 s
[really-safe-money-gen] then M.delete currency m
311.39 s
[really-safe-money-gen] else M.insert currency r m
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/MultiAmount.hs:119:9-37
311.39 s
[really-safe-money-gen] @@ -116,9 +116,9 @@
311.39 s
[really-safe-money-gen] Just a -> do
311.39 s
[really-safe-money-gen] r <- Amount.subtract a amount
311.39 s
[really-safe-money-gen] Just $
311.39 s
[really-safe-money-gen] - if r == Amount.zero
311.39 s
[really-safe-money-gen] - then M.delete currency m
311.39 s
[really-safe-money-gen] - else M.insert currency r m
311.39 s
[really-safe-money-gen] + if r == Amount.zero
311.39 s
[really-safe-money-gen] + then M.delete currency m
311.39 s
[really-safe-money-gen] + else M.insert currency r m
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] -- | Try to convert every amount to one currency.
311.39 s
[really-safe-money-gen] --
311.39 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:119:12-28
311.39 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
311.39 s
[really-safe-money-gen] Just a -> do
311.39 s
[really-safe-money-gen] r <- Amount.subtract a amount
311.39 s
[really-safe-money-gen] Just $
311.39 s
[really-safe-money-gen] - if r == Amount.zero
311.39 s
[really-safe-money-gen] + if False
311.39 s
[really-safe-money-gen] then M.delete currency m
311.39 s
[really-safe-money-gen] else M.insert currency r m
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/MultiAmount.hs:73:3-51
311.39 s
[really-safe-money-gen] @@ -70,9 +70,9 @@
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] fromAmount :: currency -> Amount -> MultiAmount currency
311.39 s
[really-safe-money-gen] fromAmount currency amount =
311.39 s
[really-safe-money-gen] - if amount == Amount.zero
311.39 s
[really-safe-money-gen] - then zero
311.39 s
[really-safe-money-gen] - else MultiAmount $ M.singleton currency amount
311.39 s
[really-safe-money-gen] + if amount == Amount.zero
311.39 s
[really-safe-money-gen] + then zero
311.39 s
[really-safe-money-gen] + else MultiAmount $ M.singleton currency amount
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] -- | No money of any currency
311.39 s
[really-safe-money-gen] zero :: MultiAmount currency
311.39 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:73:6-27
311.39 s
[really-safe-money-gen] @@ -70,7 +70,7 @@
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] fromAmount :: currency -> Amount -> MultiAmount currency
311.39 s
[really-safe-money-gen] fromAmount currency amount =
311.39 s
[really-safe-money-gen] - if amount == Amount.zero
311.39 s
[really-safe-money-gen] + if False
311.39 s
[really-safe-money-gen] then zero
311.39 s
[really-safe-money-gen] else MultiAmount $ M.singleton currency amount
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:73:6-27
311.39 s
[really-safe-money-gen] @@ -70,7 +70,7 @@
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] fromAmount :: currency -> Amount -> MultiAmount currency
311.39 s
[really-safe-money-gen] fromAmount currency amount =
311.39 s
[really-safe-money-gen] - if amount == Amount.zero
311.39 s
[really-safe-money-gen] + if True
311.39 s
[really-safe-money-gen] then zero
311.39 s
[really-safe-money-gen] else MultiAmount $ M.singleton currency amount
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:101:22-37
311.39 s
[really-safe-money-gen] @@ -98,14 +98,14 @@
311.39 s
[really-safe-money-gen] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
311.39 s
[really-safe-money-gen] addAmount m _ (Amount 0) = Just m
311.39 s
[really-safe-money-gen] addAmount (MultiAmount m) currency amount =
311.39 s
[really-safe-money-gen] - fmap MultiAmount $ case M.lookup currency m of
311.39 s
[really-safe-money-gen] - Nothing -> Just $ M.insert currency amount m
311.39 s
[really-safe-money-gen] - Just a -> do
311.39 s
[really-safe-money-gen] - r <- Amount.add a amount
311.39 s
[really-safe-money-gen] - Just $
311.39 s
[really-safe-money-gen] - if r == Amount.zero
311.39 s
[really-safe-money-gen] - then M.delete currency m
311.39 s
[really-safe-money-gen] - else M.insert currency r m
311.39 s
[really-safe-money-gen] + fmap MultiAmount $ case M.lookup currency m of
311.39 s
[really-safe-money-gen] + Nothing -> Just $ M.insert currency amount m
311.39 s
[really-safe-money-gen] + Just a -> do
311.39 s
[really-safe-money-gen] + r <- Amount.add a amount
311.39 s
[really-safe-money-gen] + Just $
311.39 s
[really-safe-money-gen] + if r == Amount.zero
311.39 s
[really-safe-money-gen] + then M.delete currency m
311.39 s
[really-safe-money-gen] + else M.insert currency r m
311.39 s
[really-safe-money-gen]
311.39 s
[really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
311.39 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
311.39 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:114:22-37
311.40 s
[really-safe-money-gen] @@ -111,14 +111,14 @@
311.40 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
311.40 s
[really-safe-money-gen] subtractAmount m _ (Amount 0) = Just m
311.40 s
[really-safe-money-gen] subtractAmount (MultiAmount m) currency amount =
311.40 s
[really-safe-money-gen] - fmap MultiAmount $ case M.lookup currency m of
311.40 s
[really-safe-money-gen] - Nothing -> Nothing -- Can't go below zero
311.40 s
[really-safe-money-gen] - Just a -> do
311.40 s
[really-safe-money-gen] - r <- Amount.subtract a amount
311.40 s
[really-safe-money-gen] - Just $
311.40 s
[really-safe-money-gen] - if r == Amount.zero
311.40 s
[really-safe-money-gen] - then M.delete currency m
311.40 s
[really-safe-money-gen] - else M.insert currency r m
311.40 s
[really-safe-money-gen] + fmap MultiAmount $ case M.lookup currency m of
311.40 s
[really-safe-money-gen] + Nothing -> Nothing -- Can't go below zero
311.40 s
[really-safe-money-gen] + Just a -> do
311.40 s
[really-safe-money-gen] + r <- Amount.subtract a amount
311.40 s
[really-safe-money-gen] + Just $
311.40 s
[really-safe-money-gen] + if r == Amount.zero
311.40 s
[really-safe-money-gen] + then M.delete currency m
311.40 s
[really-safe-money-gen] + else M.insert currency r m
311.40 s
[really-safe-money-gen]
311.40 s
[really-safe-money-gen] -- | Try to convert every amount to one currency.
311.40 s
[really-safe-money-gen] --
311.40 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:106:12-28
311.40 s
[really-safe-money-gen] @@ -103,7 +103,7 @@
311.40 s
[really-safe-money-gen] Just a -> do
311.40 s
[really-safe-money-gen] r <- Amount.add a amount
311.40 s
[really-safe-money-gen] Just $
311.40 s
[really-safe-money-gen] - if r == Amount.zero
311.40 s
[really-safe-money-gen] + if not (r == Amount.zero)
311.40 s
[really-safe-money-gen] then M.delete currency m
311.40 s
[really-safe-money-gen] else M.insert currency r m
311.40 s
[really-safe-money-gen]
311.40 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:66:13-29
311.40 s
[really-safe-money-gen] @@ -63,7 +63,7 @@
311.40 s
[really-safe-money-gen] [ genericValidate ma,
311.40 s
[really-safe-money-gen] decorateMap m $ \_ a ->
311.40 s
[really-safe-money-gen] declare "The amount is not zero" $
311.40 s
[really-safe-money-gen] - a /= Amount.zero
311.40 s
[really-safe-money-gen] + True
311.40 s
[really-safe-money-gen] ]
311.40 s
[really-safe-money-gen]
311.40 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
311.40 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:66:13-29
311.40 s
[really-safe-money-gen] @@ -63,7 +63,7 @@
311.40 s
[really-safe-money-gen] [ genericValidate ma,
311.40 s
[really-safe-money-gen] decorateMap m $ \_ a ->
311.40 s
[really-safe-money-gen] declare "The amount is not zero" $
314.01 s
[really-safe-money-gen] - a /= Amount.zero
314.01 s
[really-safe-money-gen] + False
314.02 s
[really-safe-money-gen] ]
314.02 s
[really-safe-money-gen]
314.02 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
314.02 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:66:13-29
314.02 s
[really-safe-money-gen] @@ -63,7 +63,7 @@
314.02 s
[really-safe-money-gen] [ genericValidate ma,
314.02 s
[really-safe-money-gen] decorateMap m $ \_ a ->
314.02 s
[really-safe-money-gen] declare "The amount is not zero" $
314.02 s
[really-safe-money-gen] - a /= Amount.zero
314.02 s
[really-safe-money-gen] + not (a /= Amount.zero)
314.02 s
[really-safe-money-gen] ]
314.02 s
[really-safe-money-gen]
314.02 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
314.02 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAmount.hs:63:7-8
314.02 s
[really-safe-money-gen] @@ -60,11 +60,7 @@
314.02 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
314.02 s
[really-safe-money-gen] validate ma@(MultiAmount m) =
314.02 s
[really-safe-money-gen] mconcat
314.02 s
[really-safe-money-gen] - [ genericValidate ma,
314.02 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
314.02 s
[really-safe-money-gen] - declare "The amount is not zero" $
314.02 s
[really-safe-money-gen] - a /= Amount.zero
314.02 s
[really-safe-money-gen] - ]
314.02 s
[really-safe-money-gen] + []
314.02 s
[really-safe-money-gen]
314.02 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
314.02 s
[really-safe-money-gen]
314.02 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAmount.hs:63:7-8
314.03 s
[really-safe-money-gen] @@ -60,11 +60,11 @@
314.03 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
314.03 s
[really-safe-money-gen] validate ma@(MultiAmount m) =
314.03 s
[really-safe-money-gen] mconcat
314.03 s
[really-safe-money-gen] - [ genericValidate ma,
314.03 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
314.03 s
[really-safe-money-gen] - declare "The amount is not zero" $
314.03 s
[really-safe-money-gen] - a /= Amount.zero
314.03 s
[really-safe-money-gen] - ]
314.03 s
[really-safe-money-gen] + [ genericValidate ma,
314.03 s
[really-safe-money-gen] + decorateMap m $ \_ a ->
314.03 s
[really-safe-money-gen] + declare "The amount is not zero" $
314.03 s
[really-safe-money-gen] + a /= Amount.zero
314.03 s
[really-safe-money-gen] + ]
314.03 s
[really-safe-money-gen]
314.03 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
314.03 s
[really-safe-money-gen]
314.03 s
[really-safe-money-gen] Testing mutation BoolLit at src/Numeric/DecimalLiteral.hs:396:23-27
314.03 s
[really-safe-money-gen] @@ -393,5 +393,5 @@
314.03 s
[really-safe-money-gen] DecimalLiteral mS m e -> DecimalLiteral (go mS) m e
314.03 s
[really-safe-money-gen] where
314.03 s
[really-safe-money-gen] go = \case
314.03 s
[really-safe-money-gen] - Nothing -> Just True
314.03 s
[really-safe-money-gen] + Nothing -> Just False
314.03 s
[really-safe-money-gen] s -> s
314.03 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:368:10-39
314.03 s
[really-safe-money-gen] @@ -365,7 +365,7 @@
314.03 s
[really-safe-money-gen] setMinimumDigits wantedDigits dl =
314.03 s
[really-safe-money-gen] let currentDigits :: Word8
314.03 s
[really-safe-money-gen] currentDigits = digits dl
314.03 s
[really-safe-money-gen] - in if wantedDigits <= currentDigits
314.03 s
[really-safe-money-gen] + in if True
314.03 s
[really-safe-money-gen] then dl
314.03 s
[really-safe-money-gen] else increaseDigits (wantedDigits - currentDigits) dl
314.03 s
[really-safe-money-gen] where
314.03 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:368:10-39
314.03 s
[really-safe-money-gen] @@ -365,7 +365,7 @@
314.03 s
[really-safe-money-gen] setMinimumDigits wantedDigits dl =
314.03 s
[really-safe-money-gen] let currentDigits :: Word8
314.03 s
[really-safe-money-gen] currentDigits = digits dl
314.03 s
[really-safe-money-gen] - in if wantedDigits <= currentDigits
314.03 s
[really-safe-money-gen] + in if False
314.03 s
[really-safe-money-gen] then dl
314.03 s
[really-safe-money-gen] else increaseDigits (wantedDigits - currentDigits) dl
314.03 s
[really-safe-money-gen] where
314.03 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:368:10-39
314.03 s
[really-safe-money-gen] @@ -365,7 +365,7 @@
314.03 s
[really-safe-money-gen] setMinimumDigits wantedDigits dl =
314.03 s
[really-safe-money-gen] let currentDigits :: Word8
314.03 s
[really-safe-money-gen] currentDigits = digits dl
314.03 s
[really-safe-money-gen] - in if wantedDigits <= currentDigits
314.03 s
[really-safe-money-gen] + in if not (wantedDigits <= currentDigits)
314.03 s
[really-safe-money-gen] then dl
314.03 s
[really-safe-money-gen] else increaseDigits (wantedDigits - currentDigits) dl
314.04 s
[really-safe-money-gen] where
314.04 s
[really-safe-money-gen] Testing mutation CondFlip at src/Numeric/DecimalLiteral.hs:368:7-62
314.04 s
[really-safe-money-gen] @@ -365,9 +365,9 @@
314.04 s
[really-safe-money-gen] setMinimumDigits wantedDigits dl =
314.04 s
[really-safe-money-gen] let currentDigits :: Word8
314.04 s
[really-safe-money-gen] currentDigits = digits dl
314.04 s
[really-safe-money-gen] - in if wantedDigits <= currentDigits
314.04 s
[really-safe-money-gen] - then dl
314.04 s
[really-safe-money-gen] - else increaseDigits (wantedDigits - currentDigits) dl
314.04 s
[really-safe-money-gen] + in if wantedDigits <= currentDigits
314.04 s
[really-safe-money-gen] + then dl
314.04 s
[really-safe-money-gen] + else increaseDigits (wantedDigits - currentDigits) dl
314.04 s
[really-safe-money-gen] where
314.04 s
[really-safe-money-gen] increaseDigits :: Word8 -> DecimalLiteral -> DecimalLiteral
314.04 s
[really-safe-money-gen] increaseDigits 0 = id
314.04 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:375:80-82
314.04 s
[really-safe-money-gen] @@ -372,7 +372,7 @@
314.04 s
[really-safe-money-gen] increaseDigits :: Word8 -> DecimalLiteral -> DecimalLiteral
314.04 s
[really-safe-money-gen] increaseDigits 0 = id
314.04 s
[really-safe-money-gen] increaseDigits w = \case
314.04 s
[really-safe-money-gen] - DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 10) (succ e))
314.04 s
[really-safe-money-gen] + DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 0) (succ e))
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] -- | Ensures that a positive literal has no sign
314.04 s
[really-safe-money-gen] --
314.04 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:337:21-22
314.04 s
[really-safe-money-gen] @@ -334,7 +334,7 @@
314.04 s
[really-safe-money-gen] pure $ fromIntegral n
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
314.04 s
[really-safe-money-gen] -numSign a = if a >= 0 then Nothing else Just False
314.04 s
[really-safe-money-gen] +numSign a = if a >= 1 then Nothing else Just False
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
314.04 s
[really-safe-money-gen] signSignum = \case
314.04 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:375:80-82
314.04 s
[really-safe-money-gen] @@ -372,7 +372,7 @@
314.04 s
[really-safe-money-gen] increaseDigits :: Word8 -> DecimalLiteral -> DecimalLiteral
314.04 s
[really-safe-money-gen] increaseDigits 0 = id
314.04 s
[really-safe-money-gen] increaseDigits w = \case
314.04 s
[really-safe-money-gen] - DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 10) (succ e))
314.04 s
[really-safe-money-gen] + DecimalLiteral mS m e -> increaseDigits (pred w) (DecimalLiteral mS (m * 1) (succ e))
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] -- | Ensures that a positive literal has no sign
314.04 s
[really-safe-money-gen] --
314.04 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:337:16-22
314.04 s
[really-safe-money-gen] @@ -334,7 +334,7 @@
314.04 s
[really-safe-money-gen] pure $ fromIntegral n
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
314.04 s
[really-safe-money-gen] -numSign a = if a >= 0 then Nothing else Just False
314.04 s
[really-safe-money-gen] +numSign a = if False then Nothing else Just False
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
314.04 s
[really-safe-money-gen] signSignum = \case
314.04 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:337:16-22
314.04 s
[really-safe-money-gen] @@ -334,7 +334,7 @@
314.04 s
[really-safe-money-gen] pure $ fromIntegral n
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
314.04 s
[really-safe-money-gen] -numSign a = if a >= 0 then Nothing else Just False
314.04 s
[really-safe-money-gen] +numSign a = if True then Nothing else Just False
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
314.04 s
[really-safe-money-gen] signSignum = \case
314.04 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:337:16-22
314.04 s
[really-safe-money-gen] @@ -334,7 +334,7 @@
314.04 s
[really-safe-money-gen] pure $ fromIntegral n
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
314.04 s
[really-safe-money-gen] -numSign a = if a >= 0 then Nothing else Just False
314.04 s
[really-safe-money-gen] +numSign a = if not (a >= 0) then Nothing else Just False
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
314.04 s
[really-safe-money-gen] signSignum = \case
314.04 s
[really-safe-money-gen] Testing mutation BoolLit at src/Numeric/DecimalLiteral.hs:337:46-51
314.04 s
[really-safe-money-gen] @@ -334,7 +334,7 @@
314.04 s
[really-safe-money-gen] pure $ fromIntegral n
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
314.04 s
[really-safe-money-gen] -numSign a = if a >= 0 then Nothing else Just False
314.04 s
[really-safe-money-gen] +numSign a = if a >= 0 then Nothing else Just True
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
314.04 s
[really-safe-money-gen] signSignum = \case
314.04 s
[really-safe-money-gen] Testing mutation CondFlip at src/Numeric/DecimalLiteral.hs:337:13-51
314.04 s
[really-safe-money-gen] @@ -334,7 +334,7 @@
314.04 s
[really-safe-money-gen] pure $ fromIntegral n
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
314.04 s
[really-safe-money-gen] -numSign a = if a >= 0 then Nothing else Just False
314.04 s
[really-safe-money-gen] +numSign a = if a >= 0 then Nothing else Just False
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
314.04 s
[really-safe-money-gen] signSignum = \case
314.04 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:332:11-46
314.04 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
314.04 s
[really-safe-money-gen] toInt :: DecimalLiteral -> Maybe Int
314.04 s
[really-safe-money-gen] toInt dl = do
314.04 s
[really-safe-money-gen] n <- toInteger dl
314.04 s
[really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Int)
314.04 s
[really-safe-money-gen] + guard $ not (n <= fromIntegral (maxBound :: Int))
314.04 s
[really-safe-money-gen] guard $ n >= fromIntegral (minBound :: Int)
314.04 s
[really-safe-money-gen] pure $ fromIntegral n
314.04 s
[really-safe-money-gen]
314.04 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:332:11-46
314.04 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
314.04 s
[really-safe-money-gen] toInt :: DecimalLiteral -> Maybe Int
314.04 s
[really-safe-money-gen] toInt dl = do
314.04 s
[really-safe-money-gen] n <- toInteger dl
314.04 s
[really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Int)
314.05 s
[really-safe-money-gen] + guard $ False
314.05 s
[really-safe-money-gen] guard $ n >= fromIntegral (minBound :: Int)
314.05 s
[really-safe-money-gen] pure $ fromIntegral n
314.05 s
[really-safe-money-gen]
314.05 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:332:11-46
314.05 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
314.05 s
[really-safe-money-gen] toInt :: DecimalLiteral -> Maybe Int
314.05 s
[really-safe-money-gen] toInt dl = do
314.05 s
[really-safe-money-gen] n <- toInteger dl
314.05 s
[really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Int)
314.05 s
[really-safe-money-gen] + guard $ True
314.05 s
[really-safe-money-gen] guard $ n >= fromIntegral (minBound :: Int)
314.05 s
[really-safe-money-gen] pure $ fromIntegral n
314.05 s
[really-safe-money-gen]
314.05 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:333:11-46
314.05 s
[really-safe-money-gen] @@ -330,7 +330,7 @@
314.05 s
[really-safe-money-gen] toInt dl = do
314.05 s
[really-safe-money-gen] n <- toInteger dl
314.05 s
[really-safe-money-gen] guard $ n <= fromIntegral (maxBound :: Int)
314.05 s
[really-safe-money-gen] - guard $ n >= fromIntegral (minBound :: Int)
314.05 s
[really-safe-money-gen] + guard $ True
314.05 s
[really-safe-money-gen] pure $ fromIntegral n
314.05 s
[really-safe-money-gen]
314.05 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
314.05 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:333:11-46
314.05 s
[really-safe-money-gen] @@ -330,7 +330,7 @@
314.05 s
[really-safe-money-gen] toInt dl = do
314.05 s
[really-safe-money-gen] n <- toInteger dl
314.05 s
[really-safe-money-gen] guard $ n <= fromIntegral (maxBound :: Int)
314.05 s
[really-safe-money-gen] - guard $ n >= fromIntegral (minBound :: Int)
314.05 s
[really-safe-money-gen] + guard $ False
314.05 s
[really-safe-money-gen] pure $ fromIntegral n
314.05 s
[really-safe-money-gen]
314.05 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
314.05 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:333:11-46
314.05 s
[really-safe-money-gen] @@ -330,7 +330,7 @@
314.05 s
[really-safe-money-gen] toInt dl = do
314.05 s
[really-safe-money-gen] n <- toInteger dl
314.05 s
[really-safe-money-gen] guard $ n <= fromIntegral (maxBound :: Int)
314.05 s
[really-safe-money-gen] - guard $ n >= fromIntegral (minBound :: Int)
314.05 s
[really-safe-money-gen] + guard $ not (n >= fromIntegral (minBound :: Int))
314.05 s
[really-safe-money-gen] pure $ fromIntegral n
314.05 s
[really-safe-money-gen]
314.05 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
314.05 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:315:67-68
314.05 s
[really-safe-money-gen] @@ -312,7 +312,7 @@
314.05 s
[really-safe-money-gen]
315.80 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from an 'Integer'
315.80 s
[really-safe-money-gen] fromInteger :: Integer -> DecimalLiteral
315.80 s
[really-safe-money-gen] -fromInteger n = DecimalLiteral (numSign n) (fromIntegral (abs n)) 0
315.80 s
[really-safe-money-gen] +fromInteger n = DecimalLiteral (numSign n) (fromIntegral (abs n)) 1
315.80 s
[really-safe-money-gen]
315.80 s
[really-safe-money-gen] -- | Turn a 'DecimalLiteral' into an 'Integer'
315.80 s
[really-safe-money-gen] toInteger :: DecimalLiteral -> Maybe Integer
315.80 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:299:11-47
315.80 s
[really-safe-money-gen] @@ -296,7 +296,7 @@
315.80 s
[really-safe-money-gen] toWord :: DecimalLiteral -> Maybe Word
315.81 s
[really-safe-money-gen] toWord dl = do
315.81 s
[really-safe-money-gen] n <- toNatural dl
315.81 s
[really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Word)
315.81 s
[really-safe-money-gen] + guard $ True
315.81 s
[really-safe-money-gen] pure $ fromIntegral n
315.81 s
[really-safe-money-gen]
315.81 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Natural'
315.81 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:299:11-47
315.81 s
[really-safe-money-gen] @@ -296,7 +296,7 @@
315.81 s
[really-safe-money-gen] toWord :: DecimalLiteral -> Maybe Word
315.81 s
[really-safe-money-gen] toWord dl = do
315.81 s
[really-safe-money-gen] n <- toNatural dl
315.81 s
[really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Word)
315.81 s
[really-safe-money-gen] + guard $ False
315.81 s
[really-safe-money-gen] pure $ fromIntegral n
315.81 s
[really-safe-money-gen]
315.81 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Natural'
315.81 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:299:11-47
315.81 s
[really-safe-money-gen] @@ -296,7 +296,7 @@
315.81 s
[really-safe-money-gen] toWord :: DecimalLiteral -> Maybe Word
315.81 s
[really-safe-money-gen] toWord dl = do
315.81 s
[really-safe-money-gen] n <- toNatural dl
315.81 s
[really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Word)
315.81 s
[really-safe-money-gen] + guard $ not (n <= fromIntegral (maxBound :: Word))
315.81 s
[really-safe-money-gen] pure $ fromIntegral n
315.81 s
[really-safe-money-gen]
315.81 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Natural'
315.81 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
315.81 s
[really-safe-money-gen] @@ -286,7 +286,7 @@
315.81 s
[really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
315.81 s
[really-safe-money-gen] toRatio (DecimalLiteral mSign m e) = case mSign of
315.81 s
[really-safe-money-gen] Just False -> Nothing
315.81 s
[really-safe-money-gen] - _ -> Just $ fromIntegral m / (10 ^ e)
315.81 s
[really-safe-money-gen] + _ -> Just $ fromIntegral m / (0 ^ e)
315.81 s
[really-safe-money-gen]
315.81 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
315.81 s
[really-safe-money-gen] fromWord :: Word -> DecimalLiteral
315.81 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
315.81 s
[really-safe-money-gen] @@ -286,7 +286,7 @@
315.81 s
[really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
315.81 s
[really-safe-money-gen] toRatio (DecimalLiteral mSign m e) = case mSign of
315.82 s
[really-safe-money-gen] Just False -> Nothing
315.82 s
[really-safe-money-gen] - _ -> Just $ fromIntegral m / (10 ^ e)
315.82 s
[really-safe-money-gen] + _ -> Just $ fromIntegral m / (1 ^ e)
315.82 s
[really-safe-money-gen]
315.82 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
315.82 s
[really-safe-money-gen] fromWord :: Word -> DecimalLiteral
315.82 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
315.82 s
[really-safe-money-gen] @@ -286,7 +286,7 @@
315.82 s
[really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
315.82 s
[really-safe-money-gen] toRatio (DecimalLiteral mSign m e) = case mSign of
315.82 s
[really-safe-money-gen] Just False -> Nothing
315.82 s
[really-safe-money-gen] - _ -> Just $ fromIntegral m / (10 ^ e)
315.82 s
[really-safe-money-gen] + _ -> Just $ fromIntegral m / (-10 ^ e)
315.82 s
[really-safe-money-gen]
315.82 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
315.82 s
[really-safe-money-gen] fromWord :: Word -> DecimalLiteral
315.82 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral.hs:287:38-40
315.82 s
[really-safe-money-gen] @@ -284,9 +284,9 @@
315.82 s
[really-safe-money-gen] -- >>> toRatio (DecimalLiteral (Just False) 3 1)
315.82 s
[really-safe-money-gen] -- Nothing
315.82 s
[really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
315.82 s
[really-safe-money-gen] -toRatio (DecimalLiteral mSign m e) = case mSign of
315.82 s
[really-safe-money-gen] - Just False -> Nothing
315.82 s
[really-safe-money-gen] - _ -> Just $ fromIntegral m / (10 ^ e)
315.82 s
[really-safe-money-gen] +toRatio (DecimalLiteral mSign m e) = case mSign of
315.82 s
[really-safe-money-gen] + Just False -> Nothing
315.82 s
[really-safe-money-gen] + _ -> Just $ fromIntegral m / (10 ^ e)
315.82 s
[really-safe-money-gen]
315.82 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
315.82 s
[really-safe-money-gen] fromWord :: Word -> DecimalLiteral
315.82 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral.hs:287:38-40
315.82 s
[really-safe-money-gen] @@ -284,9 +284,9 @@
315.82 s
[really-safe-money-gen] -- >>> toRatio (DecimalLiteral (Just False) 3 1)
315.82 s
[really-safe-money-gen] -- Nothing
315.82 s
[really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
315.82 s
[really-safe-money-gen] -toRatio (DecimalLiteral mSign m e) = case mSign of
315.82 s
[really-safe-money-gen] - Just False -> Nothing
315.82 s
[really-safe-money-gen] - _ -> Just $ fromIntegral m / (10 ^ e)
315.82 s
[really-safe-money-gen] +toRatio (DecimalLiteral mSign m e) = case mSign of
315.82 s
[really-safe-money-gen] + Just False -> Nothing
315.82 s
[really-safe-money-gen] + _ -> Just $ fromIntegral m / (10 ^ e)
315.82 s
[really-safe-money-gen]
315.82 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
315.82 s
[really-safe-money-gen] fromWord :: Word -> DecimalLiteral
315.82 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:236:41-44
315.82 s
[really-safe-money-gen] @@ -233,7 +233,7 @@
315.82 s
[really-safe-money-gen] -- >>> fromRatio (1 % 3)
315.82 s
[really-safe-money-gen] -- Nothing
315.82 s
[really-safe-money-gen] fromRatio :: Ratio Natural -> Maybe DecimalLiteral
315.82 s
[really-safe-money-gen] -fromRatio = fromRationalRepetendLimited 256
315.82 s
[really-safe-money-gen] +fromRatio = fromRationalRepetendLimited 0
315.82 s
[really-safe-money-gen] where
315.82 s
[really-safe-money-gen] fromRationalRepetendLimited ::
315.82 s
[really-safe-money-gen] -- limit
315.82 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:236:41-44
315.82 s
[really-safe-money-gen] @@ -233,7 +233,7 @@
315.82 s
[really-safe-money-gen] -- >>> fromRatio (1 % 3)
315.82 s
[really-safe-money-gen] -- Nothing
315.82 s
[really-safe-money-gen] fromRatio :: Ratio Natural -> Maybe DecimalLiteral
315.82 s
[really-safe-money-gen] -fromRatio = fromRationalRepetendLimited 256
315.82 s
[really-safe-money-gen] +fromRatio = fromRationalRepetendLimited 1
315.82 s
[really-safe-money-gen] where
315.82 s
[really-safe-money-gen] fromRationalRepetendLimited ::
315.82 s
[really-safe-money-gen] -- limit
315.82 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:236:41-44
315.82 s
[really-safe-money-gen] @@ -233,7 +233,7 @@
315.82 s
[really-safe-money-gen] -- >>> fromRatio (1 % 3)
315.82 s
[really-safe-money-gen] -- Nothing
315.82 s
[really-safe-money-gen] fromRatio :: Ratio Natural -> Maybe DecimalLiteral
315.82 s
[really-safe-money-gen] -fromRatio = fromRationalRepetendLimited 256
315.82 s
[really-safe-money-gen] +fromRatio = fromRationalRepetendLimited -256
315.83 s
[really-safe-money-gen] where
315.83 s
[really-safe-money-gen] fromRationalRepetendLimited ::
315.83 s
[really-safe-money-gen] -- limit
315.83 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:244:14-15
315.83 s
[really-safe-money-gen] @@ -241,7 +241,7 @@
315.83 s
[really-safe-money-gen] Ratio Natural ->
315.83 s
[really-safe-money-gen] Maybe DecimalLiteral
315.83 s
[really-safe-money-gen] fromRationalRepetendLimited l rational
315.83 s
[really-safe-money-gen] - | d == 0 = Nothing
315.83 s
[really-safe-money-gen] + | d == 1 = Nothing
315.83 s
[really-safe-money-gen] | otherwise = toLiteral Nothing <$> longDiv num
315.83 s
[really-safe-money-gen] where
315.83 s
[really-safe-money-gen] toLiteral mSign (m, e) = DecimalLiteral mSign m (fromIntegral e)
315.83 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:244:9-15
315.83 s
[really-safe-money-gen] @@ -241,7 +241,7 @@
315.83 s
[really-safe-money-gen] Ratio Natural ->
315.83 s
[really-safe-money-gen] Maybe DecimalLiteral
315.83 s
[really-safe-money-gen] fromRationalRepetendLimited l rational
315.83 s
[really-safe-money-gen] - | d == 0 = Nothing
315.83 s
[really-safe-money-gen] + | not (d == 0) = Nothing
315.83 s
[really-safe-money-gen] | otherwise = toLiteral Nothing <$> longDiv num
315.83 s
[really-safe-money-gen] where
315.83 s
[really-safe-money-gen] toLiteral mSign (m, e) = DecimalLiteral mSign m (fromIntegral e)
315.83 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:244:9-15
315.83 s
[really-safe-money-gen] @@ -241,7 +241,7 @@
315.83 s
[really-safe-money-gen] Ratio Natural ->
315.83 s
[really-safe-money-gen] Maybe DecimalLiteral
315.83 s
[really-safe-money-gen] fromRationalRepetendLimited l rational
315.83 s
[really-safe-money-gen] - | d == 0 = Nothing
315.83 s
[really-safe-money-gen] + | True = Nothing
315.83 s
[really-safe-money-gen] | otherwise = toLiteral Nothing <$> longDiv num
315.83 s
[really-safe-money-gen] where
315.83 s
[really-safe-money-gen] toLiteral mSign (m, e) = DecimalLiteral mSign m (fromIntegral e)
315.83 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:264:13-26
315.83 s
[really-safe-money-gen] @@ -261,7 +261,7 @@
315.83 s
[really-safe-money-gen] Just (c, e)
315.83 s
[really-safe-money-gen] longDivWithLimit !c !e ns !n
315.83 s
[really-safe-money-gen] -- If there's a repetend, we can't turn it into a decimal literal
315.83 s
[really-safe-money-gen] - | S.member n ns = Nothing
315.83 s
[really-safe-money-gen] + | True = Nothing
315.83 s
[really-safe-money-gen] -- Over the limit, stop trying
315.83 s
[really-safe-money-gen] | e >= l = Nothing
315.83 s
[really-safe-money-gen] | n < d =
315.83 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:264:13-26
315.83 s
[really-safe-money-gen] @@ -261,7 +261,7 @@
315.83 s
[really-safe-money-gen] Just (c, e)
315.83 s
[really-safe-money-gen] longDivWithLimit !c !e ns !n
315.83 s
[really-safe-money-gen] -- If there's a repetend, we can't turn it into a decimal literal
315.83 s
[really-safe-money-gen] - | S.member n ns = Nothing
315.83 s
[really-safe-money-gen] + | not (S.member n ns) = Nothing
315.83 s
[really-safe-money-gen] -- Over the limit, stop trying
315.83 s
[really-safe-money-gen] | e >= l = Nothing
315.83 s
[really-safe-money-gen] | n < d =
315.83 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:266:13-19
315.83 s
[really-safe-money-gen] @@ -263,7 +263,7 @@
315.83 s
[really-safe-money-gen] -- If there's a repetend, we can't turn it into a decimal literal
315.83 s
[really-safe-money-gen] | S.member n ns = Nothing
315.83 s
[really-safe-money-gen] -- Over the limit, stop trying
315.83 s
[really-safe-money-gen] - | e >= l = Nothing
315.83 s
[really-safe-money-gen] + | True = Nothing
315.83 s
[really-safe-money-gen] | n < d =
315.83 s
[really-safe-money-gen] let !ns' = S.insert n ns
315.83 s
[really-safe-money-gen] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
315.83 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:266:13-19
315.83 s
[really-safe-money-gen] @@ -263,7 +263,7 @@
315.83 s
[really-safe-money-gen] -- If there's a repetend, we can't turn it into a decimal literal
315.83 s
[really-safe-money-gen] | S.member n ns = Nothing
315.83 s
[really-safe-money-gen] -- Over the limit, stop trying
315.83 s
[really-safe-money-gen] - | e >= l = Nothing
315.83 s
[really-safe-money-gen] + | not (e >= l) = Nothing
315.83 s
[really-safe-money-gen] | n < d =
315.83 s
[really-safe-money-gen] let !ns' = S.insert n ns
315.83 s
[really-safe-money-gen] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
315.83 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:267:13-18
315.83 s
[really-safe-money-gen] @@ -264,7 +264,7 @@
315.83 s
[really-safe-money-gen] | S.member n ns = Nothing
315.83 s
[really-safe-money-gen] -- Over the limit, stop trying
315.83 s
[really-safe-money-gen] | e >= l = Nothing
315.83 s
[really-safe-money-gen] - | n < d =
315.83 s
[really-safe-money-gen] + | True =
315.83 s
[really-safe-money-gen] let !ns' = S.insert n ns
315.83 s
[really-safe-money-gen] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
315.83 s
[really-safe-money-gen] | otherwise =
315.83 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:267:13-18
315.83 s
[really-safe-money-gen] @@ -264,7 +264,7 @@
315.83 s
[really-safe-money-gen] | S.member n ns = Nothing
315.83 s
[really-safe-money-gen] -- Over the limit, stop trying
315.83 s
[really-safe-money-gen] | e >= l = Nothing
315.83 s
[really-safe-money-gen] - | n < d =
315.83 s
[really-safe-money-gen] + | not (n < d) =
315.83 s
[really-safe-money-gen] let !ns' = S.insert n ns
315.83 s
[really-safe-money-gen] in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
315.83 s
[really-safe-money-gen] | otherwise =
315.83 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:269:41-43
315.83 s
[really-safe-money-gen] @@ -266,7 +266,7 @@
315.83 s
[really-safe-money-gen] | e >= l = Nothing
315.83 s
[really-safe-money-gen] | n < d =
315.84 s
[really-safe-money-gen] let !ns' = S.insert n ns
317.39 s
[really-safe-money-gen] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
317.48 s
[really-safe-money-gen] + in longDivWithLimit (c * 0) (succ e) ns' (n * 10)
317.48 s
[really-safe-money-gen] | otherwise =
317.48 s
[really-safe-money-gen] let (q, r') = n `quotRem` d
317.48 s
[really-safe-money-gen] in longDivWithLimit (c + q) e ns r'
317.48 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:269:41-43
317.48 s
[really-safe-money-gen] @@ -266,7 +266,7 @@
317.48 s
[really-safe-money-gen] | e >= l = Nothing
317.48 s
[really-safe-money-gen] | n < d =
317.48 s
[really-safe-money-gen] let !ns' = S.insert n ns
317.48 s
[really-safe-money-gen] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
317.48 s
[really-safe-money-gen] + in longDivWithLimit (c * 1) (succ e) ns' (n * 10)
317.48 s
[really-safe-money-gen] | otherwise =
317.48 s
[really-safe-money-gen] let (q, r') = n `quotRem` d
317.48 s
[really-safe-money-gen] in longDivWithLimit (c + q) e ns r'
317.48 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:269:63-65
317.48 s
[really-safe-money-gen] @@ -266,7 +266,7 @@
317.49 s
[really-safe-money-gen] | e >= l = Nothing
317.49 s
[really-safe-money-gen] | n < d =
317.49 s
[really-safe-money-gen] let !ns' = S.insert n ns
317.49 s
[really-safe-money-gen] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
317.49 s
[really-safe-money-gen] + in longDivWithLimit (c * 10) (succ e) ns' (n * 0)
317.49 s
[really-safe-money-gen] | otherwise =
317.49 s
[really-safe-money-gen] let (q, r') = n `quotRem` d
317.49 s
[really-safe-money-gen] in longDivWithLimit (c + q) e ns r'
317.49 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:252:36-37
317.49 s
[really-safe-money-gen] @@ -249,7 +249,7 @@
317.49 s
[really-safe-money-gen] num = numerator rational
317.49 s
[really-safe-money-gen]
317.49 s
[really-safe-money-gen] longDiv :: Natural -> Maybe (Natural, Int)
317.49 s
[really-safe-money-gen] - longDiv = longDivWithLimit 0 0 S.empty
317.49 s
[really-safe-money-gen] + longDiv = longDivWithLimit 1 0 S.empty
317.49 s
[really-safe-money-gen]
317.49 s
[really-safe-money-gen] longDivWithLimit ::
317.49 s
[really-safe-money-gen] Natural ->
317.49 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:269:63-65
317.49 s
[really-safe-money-gen] @@ -266,7 +266,7 @@
317.49 s
[really-safe-money-gen] | e >= l = Nothing
317.49 s
[really-safe-money-gen] | n < d =
317.49 s
[really-safe-money-gen] let !ns' = S.insert n ns
317.49 s
[really-safe-money-gen] - in longDivWithLimit (c * 10) (succ e) ns' (n * 10)
317.49 s
[really-safe-money-gen] + in longDivWithLimit (c * 10) (succ e) ns' (n * 1)
317.49 s
[really-safe-money-gen] | otherwise =
317.49 s
[really-safe-money-gen] let (q, r') = n `quotRem` d
317.49 s
[really-safe-money-gen] in longDivWithLimit (c + q) e ns r'
317.49 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:252:38-39
317.49 s
[really-safe-money-gen] @@ -249,7 +249,7 @@
317.49 s
[really-safe-money-gen] num = numerator rational
317.49 s
[really-safe-money-gen]
317.49 s
[really-safe-money-gen] longDiv :: Natural -> Maybe (Natural, Int)
317.49 s
[really-safe-money-gen] - longDiv = longDivWithLimit 0 0 S.empty
317.49 s
[really-safe-money-gen] + longDiv = longDivWithLimit 0 1 S.empty
317.49 s
[really-safe-money-gen]
317.49 s
[really-safe-money-gen] longDivWithLimit ::
317.49 s
[really-safe-money-gen] Natural ->
317.49 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:223:39-41
317.49 s
[really-safe-money-gen] @@ -220,7 +220,7 @@
317.49 s
[really-safe-money-gen] -- (-3) % 10
317.49 s
[really-safe-money-gen] toRational :: DecimalLiteral -> Rational
317.49 s
[really-safe-money-gen] toRational (DecimalLiteral mSign m e) =
317.49 s
[really-safe-money-gen] - signSignum mSign (fromIntegral m / (10 ^ e))
317.49 s
[really-safe-money-gen] + signSignum mSign (fromIntegral m / (0 ^ e))
317.49 s
[really-safe-money-gen]
317.49 s
[really-safe-money-gen] -- | Parse a 'DecimalLiteral' from a 'Ratio Natural'
317.49 s
[really-safe-money-gen] --
317.49 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:223:39-41
317.49 s
[really-safe-money-gen] @@ -220,7 +220,7 @@
317.49 s
[really-safe-money-gen] -- (-3) % 10
317.49 s
[really-safe-money-gen] toRational :: DecimalLiteral -> Rational
317.49 s
[really-safe-money-gen] toRational (DecimalLiteral mSign m e) =
317.49 s
[really-safe-money-gen] - signSignum mSign (fromIntegral m / (10 ^ e))
317.49 s
[really-safe-money-gen] + signSignum mSign (fromIntegral m / (1 ^ e))
317.49 s
[really-safe-money-gen]
317.49 s
[really-safe-money-gen] -- | Parse a 'DecimalLiteral' from a 'Ratio Natural'
317.49 s
[really-safe-money-gen] --
317.49 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:223:39-41
317.49 s
[really-safe-money-gen] @@ -220,7 +220,7 @@
317.49 s
[really-safe-money-gen] -- (-3) % 10
317.49 s
[really-safe-money-gen] toRational :: DecimalLiteral -> Rational
317.49 s
[really-safe-money-gen] toRational (DecimalLiteral mSign m e) =
317.49 s
[really-safe-money-gen] - signSignum mSign (fromIntegral m / (10 ^ e))
317.49 s
[really-safe-money-gen] + signSignum mSign (fromIntegral m / (-10 ^ e))
317.49 s
[really-safe-money-gen]
317.49 s
[really-safe-money-gen] -- | Parse a 'DecimalLiteral' from a 'Ratio Natural'
317.49 s
[really-safe-money-gen] --
317.49 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:208:9-10
317.49 s
[really-safe-money-gen] @@ -205,7 +205,7 @@
317.49 s
[really-safe-money-gen] -- Nothing
317.49 s
[really-safe-money-gen] fromRational :: Rational -> Maybe DecimalLiteral
317.49 s
[really-safe-money-gen] fromRational (n :% d)
317.49 s
[really-safe-money-gen] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
317.50 s
[really-safe-money-gen] + | n < 1 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
317.50 s
[really-safe-money-gen] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
317.50 s
[really-safe-money-gen]
317.50 s
[really-safe-money-gen] -- | Turn a 'DecimalLiteral' into a 'Rational'
317.50 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:208:5-10
317.50 s
[really-safe-money-gen] @@ -205,7 +205,7 @@
317.50 s
[really-safe-money-gen] -- Nothing
317.50 s
[really-safe-money-gen] fromRational :: Rational -> Maybe DecimalLiteral
317.50 s
[really-safe-money-gen] fromRational (n :% d)
317.50 s
[really-safe-money-gen] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
317.50 s
[really-safe-money-gen] + | not (n < 0) = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
317.50 s
[really-safe-money-gen] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
317.50 s
[really-safe-money-gen]
317.50 s
[really-safe-money-gen] -- | Turn a 'DecimalLiteral' into a 'Rational'
317.50 s
[really-safe-money-gen] Testing mutation BoolLit at src/Numeric/DecimalLiteral.hs:208:62-67
317.50 s
[really-safe-money-gen] @@ -205,7 +205,7 @@
317.50 s
[really-safe-money-gen] -- Nothing
317.50 s
[really-safe-money-gen] fromRational :: Rational -> Maybe DecimalLiteral
317.50 s
[really-safe-money-gen] fromRational (n :% d)
317.50 s
[really-safe-money-gen] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
317.50 s
[really-safe-money-gen] + | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just True) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
317.50 s
[really-safe-money-gen] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
317.50 s
[really-safe-money-gen]
317.50 s
[really-safe-money-gen] -- | Turn a 'DecimalLiteral' into a 'Rational'
317.50 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:304:42-43
317.50 s
[really-safe-money-gen] @@ -301,7 +301,7 @@
317.50 s
[really-safe-money-gen]
317.50 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Natural'
317.50 s
[really-safe-money-gen] fromNatural :: Natural -> DecimalLiteral
317.50 s
[really-safe-money-gen] -fromNatural n = DecimalLiteral Nothing n 0
317.50 s
[really-safe-money-gen] +fromNatural n = DecimalLiteral Nothing n 1
317.50 s
[really-safe-money-gen]
317.50 s
[really-safe-money-gen] -- | Turn a 'DecimalLiteral' into a 'Natural'
317.50 s
[really-safe-money-gen] toNatural :: DecimalLiteral -> Maybe Natural
317.50 s
[really-safe-money-gen] Testing mutation ListLit at src/Numeric/DecimalLiteral.hs:186:15-25
317.50 s
[really-safe-money-gen] @@ -183,7 +183,7 @@
317.50 s
[really-safe-money-gen]
317.50 s
[really-safe-money-gen] goFrac m e = reverse (go e (reverse (show m)))
317.50 s
[really-safe-money-gen] go :: Word8 -> String -> String
317.50 s
[really-safe-money-gen] - go 0 [] = ['.', '0']
317.50 s
[really-safe-money-gen] + go 0 [] = []
317.50 s
[really-safe-money-gen] go 0 s = '.' : s
317.50 s
[really-safe-money-gen] go e [] = '0' : go (pred e) []
317.50 s
[really-safe-money-gen] go e (c : cs) = c : go (pred e) cs
317.50 s
[really-safe-money-gen] Testing mutation ListLit at src/Numeric/DecimalLiteral.hs:186:15-25
317.50 s
[really-safe-money-gen] @@ -183,7 +183,7 @@
317.50 s
[really-safe-money-gen]
317.50 s
[really-safe-money-gen] goFrac m e = reverse (go e (reverse (show m)))
317.50 s
[really-safe-money-gen] go :: Word8 -> String -> String
317.50 s
[really-safe-money-gen] - go 0 [] = ['.', '0']
317.50 s
[really-safe-money-gen] + go 0 [] = ['.', '0']
317.50 s
[really-safe-money-gen] go 0 s = '.' : s
317.50 s
[really-safe-money-gen] go e [] = '0' : go (pred e) []
317.50 s
[really-safe-money-gen] go e (c : cs) = c : go (pred e) cs
317.50 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:145:28-30
317.50 s
[really-safe-money-gen] @@ -142,7 +142,7 @@
317.50 s
[really-safe-money-gen] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
317.50 s
[really-safe-money-gen] parseDigits f z = do
317.50 s
[really-safe-money-gen] c <- ReadP.satisfy Char.isDigit
317.50 s
[really-safe-money-gen] - let digit = Char.ord c - 48
317.50 s
[really-safe-money-gen] + let digit = Char.ord c - 0
317.50 s
[really-safe-money-gen] case f z digit of
317.50 s
[really-safe-money-gen] Nothing -> fail "Failed to step the first digit"
317.50 s
[really-safe-money-gen] Just a -> ReadP.look >>= go a
317.50 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:145:28-30
317.50 s
[really-safe-money-gen] @@ -142,7 +142,7 @@
317.50 s
[really-safe-money-gen] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
317.50 s
[really-safe-money-gen] parseDigits f z = do
317.50 s
[really-safe-money-gen] c <- ReadP.satisfy Char.isDigit
317.50 s
[really-safe-money-gen] - let digit = Char.ord c - 48
317.50 s
[really-safe-money-gen] + let digit = Char.ord c - 1
317.50 s
[really-safe-money-gen] case f z digit of
317.50 s
[really-safe-money-gen] Nothing -> fail "Failed to step the first digit"
317.50 s
[really-safe-money-gen] Just a -> ReadP.look >>= go a
317.50 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:145:28-30
317.50 s
[really-safe-money-gen] @@ -142,7 +142,7 @@
317.50 s
[really-safe-money-gen] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
317.50 s
[really-safe-money-gen] parseDigits f z = do
317.50 s
[really-safe-money-gen] c <- ReadP.satisfy Char.isDigit
317.50 s
[really-safe-money-gen] - let digit = Char.ord c - 48
317.50 s
[really-safe-money-gen] + let digit = Char.ord c - -48
317.50 s
[really-safe-money-gen] case f z digit of
317.50 s
[really-safe-money-gen] Nothing -> fail "Failed to step the first digit"
317.50 s
[really-safe-money-gen] Just a -> ReadP.look >>= go a
317.50 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:152:9-23
317.50 s
[really-safe-money-gen] @@ -149,7 +149,7 @@
317.50 s
[really-safe-money-gen] where
317.50 s
[really-safe-money-gen] go !a [] = return a
317.50 s
[really-safe-money-gen] go !a (c : cs)
317.50 s
[really-safe-money-gen] - | Char.isDigit c = do
317.50 s
[really-safe-money-gen] + | True = do
317.50 s
[really-safe-money-gen] _ <- ReadP.get
317.50 s
[really-safe-money-gen] let digit = Char.ord c - 48
317.50 s
[really-safe-money-gen] case f a digit of
317.50 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:152:9-23
317.50 s
[really-safe-money-gen] @@ -149,7 +149,7 @@
317.50 s
[really-safe-money-gen] where
317.50 s
[really-safe-money-gen] go !a [] = return a
317.50 s
[really-safe-money-gen] go !a (c : cs)
317.50 s
[really-safe-money-gen] - | Char.isDigit c = do
317.50 s
[really-safe-money-gen] + | not (Char.isDigit c) = do
317.50 s
[really-safe-money-gen] _ <- ReadP.get
317.50 s
[really-safe-money-gen] let digit = Char.ord c - 48
317.50 s
[really-safe-money-gen] case f a digit of
317.50 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:208:5-10
317.50 s
[really-safe-money-gen] @@ -205,7 +205,7 @@
317.51 s
[really-safe-money-gen] -- Nothing
317.51 s
[really-safe-money-gen] fromRational :: Rational -> Maybe DecimalLiteral
317.51 s
[really-safe-money-gen] fromRational (n :% d)
317.51 s
[really-safe-money-gen] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
317.51 s
[really-safe-money-gen] + | True = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
317.51 s
[really-safe-money-gen] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
317.51 s
[really-safe-money-gen]
317.51 s
[really-safe-money-gen] -- | Turn a 'DecimalLiteral' into a 'Rational'
317.51 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:154:36-38
317.51 s
[really-safe-money-gen] @@ -151,7 +151,7 @@
317.51 s
[really-safe-money-gen] go !a (c : cs)
319.49 s
[really-safe-money-gen] | Char.isDigit c = do
319.49 s
[really-safe-money-gen] _ <- ReadP.get
319.49 s
[really-safe-money-gen] - let digit = Char.ord c - 48
319.49 s
[really-safe-money-gen] + let digit = Char.ord c - 0
319.49 s
[really-safe-money-gen] case f a digit of
319.49 s
[really-safe-money-gen] Nothing -> fail "Failed to step the digit"
319.49 s
[really-safe-money-gen] Just a' -> go a' cs
319.49 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:154:36-38
319.49 s
[really-safe-money-gen] @@ -151,7 +151,7 @@
319.49 s
[really-safe-money-gen] go !a (c : cs)
319.49 s
[really-safe-money-gen] | Char.isDigit c = do
319.49 s
[really-safe-money-gen] _ <- ReadP.get
319.49 s
[really-safe-money-gen] - let digit = Char.ord c - 48
319.49 s
[really-safe-money-gen] + let digit = Char.ord c - 1
319.49 s
[really-safe-money-gen] case f a digit of
319.49 s
[really-safe-money-gen] Nothing -> fail "Failed to step the digit"
319.50 s
[really-safe-money-gen] Just a' -> go a' cs
319.50 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:154:36-38
319.50 s
[really-safe-money-gen] @@ -151,7 +151,7 @@
319.50 s
[really-safe-money-gen] go !a (c : cs)
319.50 s
[really-safe-money-gen] | Char.isDigit c = do
319.50 s
[really-safe-money-gen] _ <- ReadP.get
319.50 s
[really-safe-money-gen] - let digit = Char.ord c - 48
319.50 s
[really-safe-money-gen] + let digit = Char.ord c - -48
319.50 s
[really-safe-money-gen] case f a digit of
319.50 s
[really-safe-money-gen] Nothing -> fail "Failed to step the digit"
319.50 s
[really-safe-money-gen] Just a' -> go a' cs
319.50 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:139:27-29
319.50 s
[really-safe-money-gen] @@ -136,7 +136,7 @@
319.50 s
[really-safe-money-gen] stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
319.50 s
[really-safe-money-gen]
319.50 s
[really-safe-money-gen] step :: Natural -> Int -> Maybe Natural
319.50 s
[really-safe-money-gen] -step a digit = Just $ a * 10 + fromIntegral digit
319.50 s
[really-safe-money-gen] +step a digit = Just $ a * 0 + fromIntegral digit
319.50 s
[really-safe-money-gen] {-# INLINE step #-}
319.50 s
[really-safe-money-gen]
319.50 s
[really-safe-money-gen] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
319.50 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:139:27-29
319.50 s
[really-safe-money-gen] @@ -136,7 +136,7 @@
319.50 s
[really-safe-money-gen] stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
319.50 s
[really-safe-money-gen]
319.50 s
[really-safe-money-gen] step :: Natural -> Int -> Maybe Natural
319.50 s
[really-safe-money-gen] -step a digit = Just $ a * 10 + fromIntegral digit
319.50 s
[really-safe-money-gen] +step a digit = Just $ a * 1 + fromIntegral digit
319.50 s
[really-safe-money-gen] {-# INLINE step #-}
319.50 s
[really-safe-money-gen]
319.50 s
[really-safe-money-gen] parseDigits :: (a -> Int -> Maybe a) -> a -> ReadP a
319.50 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:136:39-41
319.50 s
[really-safe-money-gen] @@ -133,7 +133,7 @@
319.50 s
[really-safe-money-gen]
319.50 s
[really-safe-money-gen] stepFraction :: (Natural, Word8) -> Int -> Maybe (Natural, Word8)
319.50 s
[really-safe-money-gen] stepFraction (_, 255) _ = Nothing
319.50 s
[really-safe-money-gen] -stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
319.50 s
[really-safe-money-gen] +stepFraction (m, e) digit = Just (m * 0 + fromIntegral digit, succ e)
319.50 s
[really-safe-money-gen]
319.50 s
[really-safe-money-gen] step :: Natural -> Int -> Maybe Natural
319.50 s
[really-safe-money-gen] step a digit = Just $ a * 10 + fromIntegral digit
319.50 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:136:39-41
319.50 s
[really-safe-money-gen] @@ -133,7 +133,7 @@
319.51 s
[really-safe-money-gen]
319.51 s
[really-safe-money-gen] stepFraction :: (Natural, Word8) -> Int -> Maybe (Natural, Word8)
319.51 s
[really-safe-money-gen] stepFraction (_, 255) _ = Nothing
319.51 s
[really-safe-money-gen] -stepFraction (m, e) digit = Just (m * 10 + fromIntegral digit, succ e)
319.51 s
[really-safe-money-gen] +stepFraction (m, e) digit = Just (m * 1 + fromIntegral digit, succ e)
319.51 s
[really-safe-money-gen]
319.51 s
[really-safe-money-gen] step :: Natural -> Int -> Maybe Natural
319.51 s
[really-safe-money-gen] step a digit = Just $ a * 10 + fromIntegral digit
319.51 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-30
319.51 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
319.51 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
319.51 s
[really-safe-money-gen] decimalLiteralP = do
319.51 s
[really-safe-money-gen] let isSignChar :: Char -> Bool
319.51 s
[really-safe-money-gen] - isSignChar c = c == '-' || c == '+'
319.51 s
[really-safe-money-gen] + isSignChar c = True || c == '+'
319.51 s
[really-safe-money-gen]
319.51 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.51 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.51 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:34-42
319.51 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
319.51 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
319.51 s
[really-safe-money-gen] decimalLiteralP = do
319.51 s
[really-safe-money-gen] let isSignChar :: Char -> Bool
319.51 s
[really-safe-money-gen] - isSignChar c = c == '-' || c == '+'
319.51 s
[really-safe-money-gen] + isSignChar c = c == '-' || True
319.51 s
[really-safe-money-gen]
319.51 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.51 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.51 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:119:22-30
319.51 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
319.51 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
319.51 s
[really-safe-money-gen] decimalLiteralP = do
319.51 s
[really-safe-money-gen] let isSignChar :: Char -> Bool
319.51 s
[really-safe-money-gen] - isSignChar c = c == '-' || c == '+'
319.51 s
[really-safe-money-gen] + isSignChar c = not (c == '-') || c == '+'
319.51 s
[really-safe-money-gen]
319.51 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.51 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.51 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-30
319.51 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
319.51 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
319.51 s
[really-safe-money-gen] decimalLiteralP = do
319.51 s
[really-safe-money-gen] let isSignChar :: Char -> Bool
319.51 s
[really-safe-money-gen] - isSignChar c = c == '-' || c == '+'
319.51 s
[really-safe-money-gen] + isSignChar c = False || c == '+'
319.51 s
[really-safe-money-gen]
319.51 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.51 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.51 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:119:34-42
319.51 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
319.51 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
319.51 s
[really-safe-money-gen] decimalLiteralP = do
319.51 s
[really-safe-money-gen] let isSignChar :: Char -> Bool
319.51 s
[really-safe-money-gen] - isSignChar c = c == '-' || c == '+'
319.51 s
[really-safe-money-gen] + isSignChar c = c == '-' || not (c == '+')
319.51 s
[really-safe-money-gen]
319.51 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.51 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.51 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:34-42
319.51 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
319.51 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
319.51 s
[really-safe-money-gen] decimalLiteralP = do
319.51 s
[really-safe-money-gen] let isSignChar :: Char -> Bool
319.51 s
[really-safe-money-gen] - isSignChar c = c == '-' || c == '+'
319.51 s
[really-safe-money-gen] + isSignChar c = c == '-' || False
319.51 s
[really-safe-money-gen]
319.51 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.51 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.51 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-42
319.51 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
319.51 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
319.51 s
[really-safe-money-gen] decimalLiteralP = do
319.51 s
[really-safe-money-gen] let isSignChar :: Char -> Bool
319.51 s
[really-safe-money-gen] - isSignChar c = c == '-' || c == '+'
319.51 s
[really-safe-money-gen] + isSignChar c = True
319.51 s
[really-safe-money-gen]
319.51 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.51 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.51 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:119:22-42
319.51 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
319.51 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
319.51 s
[really-safe-money-gen] decimalLiteralP = do
319.51 s
[really-safe-money-gen] let isSignChar :: Char -> Bool
319.51 s
[really-safe-money-gen] - isSignChar c = c == '-' || c == '+'
319.52 s
[really-safe-money-gen] + isSignChar c = False
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.52 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.52 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:119:22-42
319.52 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
319.52 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
319.52 s
[really-safe-money-gen] decimalLiteralP = do
319.52 s
[really-safe-money-gen] let isSignChar :: Char -> Bool
319.52 s
[really-safe-money-gen] - isSignChar c = c == '-' || c == '+'
319.52 s
[really-safe-money-gen] + isSignChar c = not (c == '-' || c == '+')
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.52 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.52 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:123:19-34
319.52 s
[really-safe-money-gen] @@ -120,7 +120,7 @@
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.52 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.52 s
[really-safe-money-gen] - pure $ Just $ signChar == '+'
319.52 s
[really-safe-money-gen] + pure $ Just $ False
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] units <- parseDigits step 0
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] Testing mutation Negate at src/Numeric/DecimalLiteral.hs:123:19-34
319.52 s
[really-safe-money-gen] @@ -120,7 +120,7 @@
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
319.52 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.52 s
[really-safe-money-gen] - pure $ Just $ signChar == '+'
319.52 s
[really-safe-money-gen] + pure $ Just $ not (signChar == '+')
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] units <- parseDigits step 0
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:125:29-30
319.52 s
[really-safe-money-gen] @@ -122,7 +122,7 @@
319.52 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
319.52 s
[really-safe-money-gen] pure $ Just $ signChar == '+'
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] - units <- parseDigits step 0
319.52 s
[really-safe-money-gen] + units <- parseDigits step 1
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] ReadP.option (DecimalLiteral mSign units 0) $ do
319.52 s
[really-safe-money-gen] _ <- ReadP.satisfy (== '.')
319.52 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:127:44-45
319.52 s
[really-safe-money-gen] @@ -124,7 +124,7 @@
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] units <- parseDigits step 0
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] - ReadP.option (DecimalLiteral mSign units 0) $ do
319.52 s
[really-safe-money-gen] + ReadP.option (DecimalLiteral mSign units 1) $ do
319.52 s
[really-safe-money-gen] _ <- ReadP.satisfy (== '.')
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] (m, e) <- parseDigits stepFraction (units, 0)
319.52 s
[really-safe-money-gen] Testing mutation IntLit at src/Numeric/DecimalLiteral.hs:130:48-49
319.52 s
[really-safe-money-gen] @@ -127,7 +127,7 @@
319.52 s
[really-safe-money-gen] ReadP.option (DecimalLiteral mSign units 0) $ do
319.52 s
[really-safe-money-gen] _ <- ReadP.satisfy (== '.')
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] - (m, e) <- parseDigits stepFraction (units, 0)
319.52 s
[really-safe-money-gen] + (m, e) <- parseDigits stepFraction (units, 1)
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] pure $ DecimalLiteral mSign m e
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral.hs:112:17-21
319.52 s
[really-safe-money-gen] @@ -109,9 +109,9 @@
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] -- | Like 'fromString' but in a 'MonadFail'
319.52 s
[really-safe-money-gen] fromStringM :: (MonadFail m) => String -> m DecimalLiteral
319.52 s
[really-safe-money-gen] -fromStringM s = case Numeric.DecimalLiteral.fromString s of
319.52 s
[really-safe-money-gen] - Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
319.52 s
[really-safe-money-gen] - Just dl -> pure dl
319.52 s
[really-safe-money-gen] +fromStringM s = case Numeric.DecimalLiteral.fromString s of
319.52 s
[really-safe-money-gen] + Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
319.52 s
[really-safe-money-gen] + Just dl -> pure dl
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
319.52 s
[really-safe-money-gen] decimalLiteralP = do
319.52 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral.hs:112:17-21
319.52 s
[really-safe-money-gen] @@ -109,9 +109,9 @@
319.52 s
[really-safe-money-gen]
319.52 s
[really-safe-money-gen] -- | Like 'fromString' but in a 'MonadFail'
319.52 s
[really-safe-money-gen] fromStringM :: (MonadFail m) => String -> m DecimalLiteral
319.52 s
[really-safe-money-gen] -fromStringM s = case Numeric.DecimalLiteral.fromString s of
319.52 s
[really-safe-money-gen] - Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
319.52 s
[really-safe-money-gen] - Just dl -> pure dl
320.72 s
[really-safe-money-gen] +fromStringM s = case Numeric.DecimalLiteral.fromString s of
320.73 s
[really-safe-money-gen] + Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
320.73 s
[really-safe-money-gen] + Just dl -> pure dl
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
320.73 s
[really-safe-money-gen] decimalLiteralP = do
320.73 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral.hs:86:18-18
320.73 s
[really-safe-money-gen] @@ -83,9 +83,9 @@
320.73 s
[really-safe-money-gen] instance NFData DecimalLiteral
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] instance IsString DecimalLiteral where
320.73 s
[really-safe-money-gen] - fromString s = case Numeric.DecimalLiteral.fromString s of
320.73 s
[really-safe-money-gen] - Nothing -> error $ "Invalid DecimalLiteral: " <> show s
320.73 s
[really-safe-money-gen] - Just dl -> dl
320.73 s
[really-safe-money-gen] + fromString s = case Numeric.DecimalLiteral.fromString s of
320.73 s
[really-safe-money-gen] + Nothing -> error $ "Invalid DecimalLiteral: " <> show s
320.73 s
[really-safe-money-gen] + Just dl -> dl
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] -- | Parse a decimal literal from a string
320.73 s
[really-safe-money-gen] --
320.73 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral.hs:86:18-18
320.73 s
[really-safe-money-gen] @@ -83,9 +83,9 @@
320.73 s
[really-safe-money-gen] instance NFData DecimalLiteral
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] instance IsString DecimalLiteral where
320.73 s
[really-safe-money-gen] - fromString s = case Numeric.DecimalLiteral.fromString s of
320.73 s
[really-safe-money-gen] - Nothing -> error $ "Invalid DecimalLiteral: " <> show s
320.73 s
[really-safe-money-gen] - Just dl -> dl
320.73 s
[really-safe-money-gen] + fromString s = case Numeric.DecimalLiteral.fromString s of
320.73 s
[really-safe-money-gen] + Nothing -> error $ "Invalid DecimalLiteral: " <> show s
320.73 s
[really-safe-money-gen] + Just dl -> dl
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] -- | Parse a decimal literal from a string
320.73 s
[really-safe-money-gen] --
320.73 s
[really-safe-money-gen] Testing mutation ConstBool at src/Numeric/DecimalLiteral.hs:123:19-34
320.73 s
[really-safe-money-gen] @@ -120,7 +120,7 @@
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] mSign <- ReadP.option Nothing $ do
320.73 s
[really-safe-money-gen] signChar <- ReadP.satisfy isSignChar
320.73 s
[really-safe-money-gen] - pure $ Just $ signChar == '+'
320.73 s
[really-safe-money-gen] + pure $ Just $ True
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] units <- parseDigits step 0
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:801:36-38
320.73 s
[really-safe-money-gen] @@ -798,7 +798,7 @@
320.73 s
[really-safe-money-gen] quantisationFactorFormatString (QuantisationFactor 0) = "%f"
320.73 s
[really-safe-money-gen] quantisationFactorFormatString (QuantisationFactor qf) =
320.73 s
[really-safe-money-gen] let decimals :: Int
320.73 s
[really-safe-money-gen] - decimals = ceiling $ logBase 10 (fromIntegral qf :: Float)
320.73 s
[really-safe-money-gen] + decimals = ceiling $ logBase 0 (fromIntegral qf :: Float)
320.73 s
[really-safe-money-gen] in printf "%%0.%df" decimals
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
320.73 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:801:36-38
320.73 s
[really-safe-money-gen] @@ -798,7 +798,7 @@
320.73 s
[really-safe-money-gen] quantisationFactorFormatString (QuantisationFactor 0) = "%f"
320.73 s
[really-safe-money-gen] quantisationFactorFormatString (QuantisationFactor qf) =
320.73 s
[really-safe-money-gen] let decimals :: Int
320.73 s
[really-safe-money-gen] - decimals = ceiling $ logBase 10 (fromIntegral qf :: Float)
320.73 s
[really-safe-money-gen] + decimals = ceiling $ logBase 1 (fromIntegral qf :: Float)
320.73 s
[really-safe-money-gen] in printf "%%0.%df" decimals
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
320.73 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:801:36-38
320.73 s
[really-safe-money-gen] @@ -798,7 +798,7 @@
320.73 s
[really-safe-money-gen] quantisationFactorFormatString (QuantisationFactor 0) = "%f"
320.73 s
[really-safe-money-gen] quantisationFactorFormatString (QuantisationFactor qf) =
320.73 s
[really-safe-money-gen] let decimals :: Int
320.73 s
[really-safe-money-gen] - decimals = ceiling $ logBase 10 (fromIntegral qf :: Float)
320.73 s
[really-safe-money-gen] + decimals = ceiling $ logBase -10 (fromIntegral qf :: Float)
320.73 s
[really-safe-money-gen] in printf "%%0.%df" decimals
320.73 s
[really-safe-money-gen]
320.73 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
320.73 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:569:18-19
320.73 s
[really-safe-money-gen] @@ -566,7 +566,7 @@
320.73 s
[really-safe-money-gen] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
320.73 s
[really-safe-money-gen] smallerChunk :: Amount
320.73 s
[really-safe-money-gen] smallerChunk = Amount smallerChunkSize
320.73 s
[really-safe-money-gen] - in if rest == 0
320.73 s
[really-safe-money-gen] + in if rest == 1
320.73 s
[really-safe-money-gen] then DistributedIntoEqualChunks f smallerChunk
320.73 s
[really-safe-money-gen] else
320.73 s
[really-safe-money-gen] let -- This 'fromIntegral' is theoretically not safe, but it's
320.73 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:569:10-19
320.73 s
[really-safe-money-gen] @@ -566,7 +566,7 @@
320.73 s
[really-safe-money-gen] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
320.73 s
[really-safe-money-gen] smallerChunk :: Amount
320.73 s
[really-safe-money-gen] smallerChunk = Amount smallerChunkSize
320.73 s
[really-safe-money-gen] - in if rest == 0
320.73 s
[really-safe-money-gen] + in if True
320.73 s
[really-safe-money-gen] then DistributedIntoEqualChunks f smallerChunk
320.73 s
[really-safe-money-gen] else
320.73 s
[really-safe-money-gen] let -- This 'fromIntegral' is theoretically not safe, but it's
320.73 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:569:10-19
320.73 s
[really-safe-money-gen] @@ -566,7 +566,7 @@
320.73 s
[really-safe-money-gen] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
320.73 s
[really-safe-money-gen] smallerChunk :: Amount
320.73 s
[really-safe-money-gen] smallerChunk = Amount smallerChunkSize
320.73 s
[really-safe-money-gen] - in if rest == 0
320.73 s
[really-safe-money-gen] + in if False
320.73 s
[really-safe-money-gen] then DistributedIntoEqualChunks f smallerChunk
320.73 s
[really-safe-money-gen] else
320.73 s
[really-safe-money-gen] let -- This 'fromIntegral' is theoretically not safe, but it's
320.73 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:569:10-19
320.73 s
[really-safe-money-gen] @@ -566,7 +566,7 @@
320.73 s
[really-safe-money-gen] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
320.73 s
[really-safe-money-gen] smallerChunk :: Amount
320.73 s
[really-safe-money-gen] smallerChunk = Amount smallerChunkSize
320.73 s
[really-safe-money-gen] - in if rest == 0
320.73 s
[really-safe-money-gen] + in if not (rest == 0)
320.73 s
[really-safe-money-gen] then DistributedIntoEqualChunks f smallerChunk
320.73 s
[really-safe-money-gen] else
320.73 s
[really-safe-money-gen] let -- This 'fromIntegral' is theoretically not safe, but it's
320.73 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:569:7-29
320.73 s
[really-safe-money-gen] @@ -566,22 +566,22 @@
320.73 s
[really-safe-money-gen] (smallerChunkSize, rest) = divMod a ((fromIntegral :: Word32 -> Word64) f)
320.73 s
[really-safe-money-gen] smallerChunk :: Amount
320.73 s
[really-safe-money-gen] smallerChunk = Amount smallerChunkSize
320.73 s
[really-safe-money-gen] - in if rest == 0
320.73 s
[really-safe-money-gen] - then DistributedIntoEqualChunks f smallerChunk
320.73 s
[really-safe-money-gen] - else
320.73 s
[really-safe-money-gen] - let -- This 'fromIntegral' is theoretically not safe, but it's
320.73 s
[really-safe-money-gen] - -- necessarily smaller than f so it will fit.
320.73 s
[really-safe-money-gen] - numberOfLargerChunks :: Word32
320.73 s
[really-safe-money-gen] - numberOfLargerChunks = (fromIntegral :: Word64 -> Word32) rest
320.73 s
[really-safe-money-gen] - numberOfSmallerChunks :: Word32
320.73 s
[really-safe-money-gen] - numberOfSmallerChunks = f - numberOfLargerChunks
320.73 s
[really-safe-money-gen] - largerChunk :: Amount
320.73 s
[really-safe-money-gen] - largerChunk = Amount $ succ smallerChunkSize
320.73 s
[really-safe-money-gen] - in DistributedIntoUnequalChunks
320.74 s
[really-safe-money-gen] - numberOfLargerChunks
320.74 s
[really-safe-money-gen] - largerChunk
320.74 s
[really-safe-money-gen] - numberOfSmallerChunks
320.74 s
[really-safe-money-gen] - smallerChunk
320.74 s
[really-safe-money-gen] + in if rest == 0
320.74 s
[really-safe-money-gen] + then DistributedIntoEqualChunks f smallerChunk
320.74 s
[really-safe-money-gen] + else
320.74 s
[really-safe-money-gen] + let -- This 'fromIntegral' is theoretically not safe, but it's
320.74 s
[really-safe-money-gen] + -- necessarily smaller than f so it will fit.
320.74 s
[really-safe-money-gen] + numberOfLargerChunks :: Word32
320.74 s
[really-safe-money-gen] + numberOfLargerChunks = (fromIntegral :: Word64 -> Word32) rest
320.74 s
[really-safe-money-gen] + numberOfSmallerChunks :: Word32
320.74 s
[really-safe-money-gen] + numberOfSmallerChunks = f - numberOfLargerChunks
320.74 s
[really-safe-money-gen] + largerChunk :: Amount
320.74 s
[really-safe-money-gen] + largerChunk = Amount $ succ smallerChunkSize
320.74 s
[really-safe-money-gen] + in DistributedIntoUnequalChunks
320.74 s
[really-safe-money-gen] + numberOfLargerChunks
320.74 s
[really-safe-money-gen] + largerChunk
320.74 s
[really-safe-money-gen] + numberOfSmallerChunks
320.74 s
[really-safe-money-gen] + smallerChunk
320.74 s
[really-safe-money-gen]
320.74 s
[really-safe-money-gen] -- | The result of 'distribute'
320.74 s
[really-safe-money-gen] type AmountDistribution = Distribution Amount
320.74 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:544:10-23
320.74 s
[really-safe-money-gen] @@ -541,7 +541,7 @@
320.74 s
[really-safe-money-gen] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
320.74 s
[really-safe-money-gen] r :: Integer
320.74 s
[really-safe-money-gen] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
320.74 s
[really-safe-money-gen] - in if r > maxBoundI
320.74 s
[really-safe-money-gen] + in if True
320.74 s
[really-safe-money-gen] then Nothing
320.74 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
320.74 s
[really-safe-money-gen]
320.74 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:544:10-23
320.74 s
[really-safe-money-gen] @@ -541,7 +541,7 @@
320.74 s
[really-safe-money-gen] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
320.74 s
[really-safe-money-gen] r :: Integer
320.74 s
[really-safe-money-gen] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
320.74 s
[really-safe-money-gen] - in if r > maxBoundI
320.74 s
[really-safe-money-gen] + in if False
320.74 s
[really-safe-money-gen] then Nothing
320.74 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
320.74 s
[really-safe-money-gen]
320.74 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:544:10-23
320.74 s
[really-safe-money-gen] @@ -541,7 +541,7 @@
320.74 s
[really-safe-money-gen] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
320.74 s
[really-safe-money-gen] r :: Integer
320.74 s
[really-safe-money-gen] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
320.74 s
[really-safe-money-gen] - in if r > maxBoundI
320.74 s
[really-safe-money-gen] + in if not (r > maxBoundI)
320.74 s
[really-safe-money-gen] then Nothing
320.74 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
320.74 s
[really-safe-money-gen]
320.74 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:544:7-66
320.74 s
[really-safe-money-gen] @@ -541,9 +541,9 @@
320.74 s
[really-safe-money-gen] maxBoundI = (fromIntegral :: Word64 -> Integer) (maxBound :: Word64)
320.74 s
[really-safe-money-gen] r :: Integer
320.74 s
[really-safe-money-gen] r = (fromIntegral :: Word32 -> Integer) f * (fromIntegral :: Word64 -> Integer) a
320.74 s
[really-safe-money-gen] - in if r > maxBoundI
320.74 s
[really-safe-money-gen] - then Nothing
320.74 s
[really-safe-money-gen] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
320.74 s
[really-safe-money-gen] + in if r > maxBoundI
320.74 s
[really-safe-money-gen] + then Nothing
320.74 s
[really-safe-money-gen] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
320.74 s
[really-safe-money-gen]
320.74 s
[really-safe-money-gen] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
320.74 s
[really-safe-money-gen] --
320.74 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:518:14-15
320.74 s
[really-safe-money-gen] @@ -515,7 +515,7 @@
320.74 s
[really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
322.35 s
[really-safe-money-gen] r :: Integer
322.35 s
[really-safe-money-gen] r = i1 - i2
322.35 s
[really-safe-money-gen] - in if r < 0
322.35 s
[really-safe-money-gen] + in if r < 1
322.35 s
[really-safe-money-gen] then Nothing
322.35 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.35 s
[really-safe-money-gen]
322.35 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:518:10-15
322.35 s
[really-safe-money-gen] @@ -515,7 +515,7 @@
322.35 s
[really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
322.35 s
[really-safe-money-gen] r :: Integer
322.35 s
[really-safe-money-gen] r = i1 - i2
322.35 s
[really-safe-money-gen] - in if r < 0
322.35 s
[really-safe-money-gen] + in if True
322.35 s
[really-safe-money-gen] then Nothing
322.35 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.36 s
[really-safe-money-gen]
322.36 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:518:10-15
322.36 s
[really-safe-money-gen] @@ -515,7 +515,7 @@
322.36 s
[really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
322.36 s
[really-safe-money-gen] r :: Integer
322.36 s
[really-safe-money-gen] r = i1 - i2
322.36 s
[really-safe-money-gen] - in if r < 0
322.36 s
[really-safe-money-gen] + in if False
322.36 s
[really-safe-money-gen] then Nothing
322.36 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.36 s
[really-safe-money-gen]
322.36 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:518:10-15
322.36 s
[really-safe-money-gen] @@ -515,7 +515,7 @@
322.36 s
[really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
322.36 s
[really-safe-money-gen] r :: Integer
322.36 s
[really-safe-money-gen] r = i1 - i2
322.36 s
[really-safe-money-gen] - in if r < 0
322.36 s
[really-safe-money-gen] + in if not (r < 0)
322.36 s
[really-safe-money-gen] then Nothing
322.36 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.36 s
[really-safe-money-gen]
322.36 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:518:7-66
322.36 s
[really-safe-money-gen] @@ -515,9 +515,9 @@
322.36 s
[really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
322.36 s
[really-safe-money-gen] r :: Integer
322.36 s
[really-safe-money-gen] r = i1 - i2
322.36 s
[really-safe-money-gen] - in if r < 0
322.36 s
[really-safe-money-gen] - then Nothing
322.36 s
[really-safe-money-gen] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.36 s
[really-safe-money-gen] + in if r < 0
322.36 s
[really-safe-money-gen] + then Nothing
322.36 s
[really-safe-money-gen] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.36 s
[really-safe-money-gen]
322.36 s
[really-safe-money-gen] -- | Multiply an amount of money by an integer scalar
322.36 s
[really-safe-money-gen] --
322.36 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:476:10-23
322.36 s
[really-safe-money-gen] @@ -473,7 +473,7 @@
322.36 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
322.36 s
[really-safe-money-gen] r :: Integer
322.36 s
[really-safe-money-gen] r = i1 + i2
322.36 s
[really-safe-money-gen] - in if r > maxBoundI
322.36 s
[really-safe-money-gen] + in if True
322.36 s
[really-safe-money-gen] then Nothing
322.36 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.36 s
[really-safe-money-gen]
322.36 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:476:10-23
322.36 s
[really-safe-money-gen] @@ -473,7 +473,7 @@
322.36 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
322.36 s
[really-safe-money-gen] r :: Integer
322.36 s
[really-safe-money-gen] r = i1 + i2
322.36 s
[really-safe-money-gen] - in if r > maxBoundI
322.36 s
[really-safe-money-gen] + in if False
322.36 s
[really-safe-money-gen] then Nothing
322.36 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.36 s
[really-safe-money-gen]
322.36 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:476:10-23
322.36 s
[really-safe-money-gen] @@ -473,7 +473,7 @@
322.36 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
322.36 s
[really-safe-money-gen] r :: Integer
322.36 s
[really-safe-money-gen] r = i1 + i2
322.36 s
[really-safe-money-gen] - in if r > maxBoundI
322.36 s
[really-safe-money-gen] + in if not (r > maxBoundI)
322.36 s
[really-safe-money-gen] then Nothing
322.36 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.36 s
[really-safe-money-gen]
322.36 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:476:7-66
322.36 s
[really-safe-money-gen] @@ -473,9 +473,9 @@
322.36 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
322.36 s
[really-safe-money-gen] r :: Integer
322.36 s
[really-safe-money-gen] r = i1 + i2
322.36 s
[really-safe-money-gen] - in if r > maxBoundI
322.36 s
[really-safe-money-gen] - then Nothing
322.36 s
[really-safe-money-gen] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.36 s
[really-safe-money-gen] + in if r > maxBoundI
322.36 s
[really-safe-money-gen] + then Nothing
322.36 s
[really-safe-money-gen] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
322.36 s
[really-safe-money-gen]
322.36 s
[really-safe-money-gen] -- | Add a number of amounts of money together.
322.36 s
[really-safe-money-gen] --
322.37 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:388:5-16
322.37 s
[really-safe-money-gen] @@ -385,7 +385,7 @@
322.37 s
[really-safe-money-gen] -- Nothing
322.37 s
[really-safe-money-gen] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
322.37 s
[really-safe-money-gen] fromRational (QuantisationFactor qf) r
322.37 s
[really-safe-money-gen] - | isInvalid r = Nothing
322.37 s
[really-safe-money-gen] + | True = Nothing
322.37 s
[really-safe-money-gen] | r < 0 = Nothing
322.37 s
[really-safe-money-gen] | otherwise =
322.37 s
[really-safe-money-gen] let resultRational :: Rational
322.37 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:388:5-16
322.37 s
[really-safe-money-gen] @@ -385,7 +385,7 @@
322.37 s
[really-safe-money-gen] -- Nothing
322.37 s
[really-safe-money-gen] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
322.37 s
[really-safe-money-gen] fromRational (QuantisationFactor qf) r
322.37 s
[really-safe-money-gen] - | isInvalid r = Nothing
322.37 s
[really-safe-money-gen] + | not (isInvalid r) = Nothing
322.37 s
[really-safe-money-gen] | r < 0 = Nothing
322.37 s
[really-safe-money-gen] | otherwise =
322.37 s
[really-safe-money-gen] let resultRational :: Rational
322.37 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:389:9-10
322.37 s
[really-safe-money-gen] @@ -386,7 +386,7 @@
322.37 s
[really-safe-money-gen] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
322.37 s
[really-safe-money-gen] fromRational (QuantisationFactor qf) r
322.37 s
[really-safe-money-gen] | isInvalid r = Nothing
322.37 s
[really-safe-money-gen] - | r < 0 = Nothing
322.37 s
[really-safe-money-gen] + | r < 1 = Nothing
322.37 s
[really-safe-money-gen] | otherwise =
322.37 s
[really-safe-money-gen] let resultRational :: Rational
322.37 s
[really-safe-money-gen] resultRational = r * (fromIntegral :: Word32 -> Rational) qf
322.37 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:389:5-10
322.37 s
[really-safe-money-gen] @@ -386,7 +386,7 @@
322.37 s
[really-safe-money-gen] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
322.37 s
[really-safe-money-gen] fromRational (QuantisationFactor qf) r
322.37 s
[really-safe-money-gen] | isInvalid r = Nothing
322.37 s
[really-safe-money-gen] - | r < 0 = Nothing
322.37 s
[really-safe-money-gen] + | True = Nothing
322.37 s
[really-safe-money-gen] | otherwise =
322.37 s
[really-safe-money-gen] let resultRational :: Rational
322.37 s
[really-safe-money-gen] resultRational = r * (fromIntegral :: Word32 -> Rational) qf
322.37 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:389:5-10
322.37 s
[really-safe-money-gen] @@ -386,7 +386,7 @@
322.37 s
[really-safe-money-gen] fromRational :: QuantisationFactor -> Rational -> Maybe Amount
322.37 s
[really-safe-money-gen] fromRational (QuantisationFactor qf) r
322.37 s
[really-safe-money-gen] | isInvalid r = Nothing
322.37 s
[really-safe-money-gen] - | r < 0 = Nothing
322.37 s
[really-safe-money-gen] + | not (r < 0) = Nothing
322.37 s
[really-safe-money-gen] | otherwise =
322.37 s
[really-safe-money-gen] let resultRational :: Rational
322.37 s
[really-safe-money-gen] resultRational = r * (fromIntegral :: Word32 -> Rational) qf
322.37 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:397:14-31
322.37 s
[really-safe-money-gen] @@ -394,7 +394,7 @@
322.37 s
[really-safe-money-gen] ceiled = (ceiling :: Rational -> Natural) resultRational
322.37 s
[really-safe-money-gen] floored :: Natural
322.37 s
[really-safe-money-gen] floored = (floor :: Rational -> Natural) resultRational
322.37 s
[really-safe-money-gen] - in if ceiled == floored
322.37 s
[really-safe-money-gen] + in if True
322.37 s
[really-safe-money-gen] then
322.37 s
[really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
322.37 s
[really-safe-money-gen] then Nothing
322.37 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:397:14-31
322.37 s
[really-safe-money-gen] @@ -394,7 +394,7 @@
322.37 s
[really-safe-money-gen] ceiled = (ceiling :: Rational -> Natural) resultRational
322.37 s
[really-safe-money-gen] floored :: Natural
322.37 s
[really-safe-money-gen] floored = (floor :: Rational -> Natural) resultRational
322.37 s
[really-safe-money-gen] - in if ceiled == floored
322.37 s
[really-safe-money-gen] + in if False
322.37 s
[really-safe-money-gen] then
322.37 s
[really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
322.37 s
[really-safe-money-gen] then Nothing
322.37 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:399:18-83
322.37 s
[really-safe-money-gen] @@ -396,7 +396,7 @@
322.37 s
[really-safe-money-gen] floored = (floor :: Rational -> Natural) resultRational
322.37 s
[really-safe-money-gen] in if ceiled == floored
322.37 s
[really-safe-money-gen] then
322.37 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
322.37 s
[really-safe-money-gen] + if False
322.37 s
[really-safe-money-gen] then Nothing
322.37 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
322.37 s
[really-safe-money-gen] else Nothing
322.37 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:397:14-31
322.37 s
[really-safe-money-gen] @@ -394,7 +394,7 @@
322.37 s
[really-safe-money-gen] ceiled = (ceiling :: Rational -> Natural) resultRational
322.37 s
[really-safe-money-gen] floored :: Natural
322.37 s
[really-safe-money-gen] floored = (floor :: Rational -> Natural) resultRational
322.37 s
[really-safe-money-gen] - in if ceiled == floored
322.37 s
[really-safe-money-gen] + in if not (ceiled == floored)
322.37 s
[really-safe-money-gen] then
322.37 s
[really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
322.37 s
[really-safe-money-gen] then Nothing
322.37 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:399:18-83
322.37 s
[really-safe-money-gen] @@ -396,7 +396,7 @@
322.37 s
[really-safe-money-gen] floored = (floor :: Rational -> Natural) resultRational
322.37 s
[really-safe-money-gen] in if ceiled == floored
322.37 s
[really-safe-money-gen] then
322.37 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
322.37 s
[really-safe-money-gen] + if True
322.37 s
[really-safe-money-gen] then Nothing
322.37 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
322.37 s
[really-safe-money-gen] else Nothing
322.38 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:399:18-83
322.38 s
[really-safe-money-gen] @@ -396,7 +396,7 @@
322.38 s
[really-safe-money-gen] floored = (floor :: Rational -> Natural) resultRational
322.38 s
[really-safe-money-gen] in if ceiled == floored
322.38 s
[really-safe-money-gen] then
322.38 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
322.38 s
[really-safe-money-gen] + if not (ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64))
322.38 s
[really-safe-money-gen] then Nothing
322.38 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
322.38 s
[really-safe-money-gen] else Nothing
322.38 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:399:15-57
322.38 s
[really-safe-money-gen] @@ -396,9 +396,9 @@
322.38 s
[really-safe-money-gen] floored = (floor :: Rational -> Natural) resultRational
322.38 s
[really-safe-money-gen] in if ceiled == floored
322.38 s
[really-safe-money-gen] then
322.38 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
322.38 s
[really-safe-money-gen] - then Nothing
322.38 s
[really-safe-money-gen] - else Just $ Amount (fromIntegral ceiled)
322.38 s
[really-safe-money-gen] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
322.38 s
[really-safe-money-gen] + then Nothing
322.38 s
[really-safe-money-gen] + else Just $ Amount (fromIntegral ceiled)
322.38 s
[really-safe-money-gen] else Nothing
322.38 s
[really-safe-money-gen]
322.38 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Rational'.
322.38 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:397:11-25
322.38 s
[really-safe-money-gen] @@ -394,12 +394,12 @@
322.38 s
[really-safe-money-gen] ceiled = (ceiling :: Rational -> Natural) resultRational
322.38 s
[really-safe-money-gen] floored :: Natural
322.38 s
[really-safe-money-gen] floored = (floor :: Rational -> Natural) resultRational
322.38 s
[really-safe-money-gen] - in if ceiled == floored
322.38 s
[really-safe-money-gen] - then
325.22 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
325.33 s
[really-safe-money-gen] - then Nothing
325.33 s
[really-safe-money-gen] - else Just $ Amount (fromIntegral ceiled)
325.33 s
[really-safe-money-gen] - else Nothing
325.33 s
[really-safe-money-gen] + in if ceiled == floored
325.33 s
[really-safe-money-gen] + then
325.33 s
[really-safe-money-gen] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
325.33 s
[really-safe-money-gen] + then Nothing
325.33 s
[really-safe-money-gen] + else Just $ Amount (fromIntegral ceiled)
325.33 s
[really-safe-money-gen] + else Nothing
325.33 s
[really-safe-money-gen]
325.33 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Rational'.
325.33 s
[really-safe-money-gen] --
325.33 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:320:5-10
325.33 s
[really-safe-money-gen] @@ -317,7 +317,7 @@
325.33 s
[really-safe-money-gen] Double ->
325.33 s
[really-safe-money-gen] Maybe Amount
325.33 s
[really-safe-money-gen] fromDouble (QuantisationFactor qf) d
325.33 s
[really-safe-money-gen] - | d < 0 = Nothing
325.33 s
[really-safe-money-gen] + | True = Nothing
325.33 s
[really-safe-money-gen] | otherwise =
325.33 s
[really-safe-money-gen] let resultDouble :: Double
325.33 s
[really-safe-money-gen] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
325.33 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:320:9-10
325.33 s
[really-safe-money-gen] @@ -317,7 +317,7 @@
325.33 s
[really-safe-money-gen] Double ->
325.33 s
[really-safe-money-gen] Maybe Amount
325.33 s
[really-safe-money-gen] fromDouble (QuantisationFactor qf) d
325.33 s
[really-safe-money-gen] - | d < 0 = Nothing
325.33 s
[really-safe-money-gen] + | d < 1 = Nothing
325.33 s
[really-safe-money-gen] | otherwise =
325.33 s
[really-safe-money-gen] let resultDouble :: Double
325.33 s
[really-safe-money-gen] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
325.33 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:320:5-10
325.33 s
[really-safe-money-gen] @@ -317,7 +317,7 @@
325.33 s
[really-safe-money-gen] Double ->
325.33 s
[really-safe-money-gen] Maybe Amount
325.33 s
[really-safe-money-gen] fromDouble (QuantisationFactor qf) d
325.33 s
[really-safe-money-gen] - | d < 0 = Nothing
325.33 s
[really-safe-money-gen] + | not (d < 0) = Nothing
325.33 s
[really-safe-money-gen] | otherwise =
325.33 s
[really-safe-money-gen] let resultDouble :: Double
325.33 s
[really-safe-money-gen] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
325.33 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:327:9-16
325.33 s
[really-safe-money-gen] @@ -324,7 +324,7 @@
325.33 s
[really-safe-money-gen] in go resultDouble
325.33 s
[really-safe-money-gen] where
325.33 s
[really-safe-money-gen] go resultDouble
325.33 s
[really-safe-money-gen] - | isNaN d = Nothing
325.34 s
[really-safe-money-gen] + | True = Nothing
325.34 s
[really-safe-money-gen] | isInfinite d = Nothing
325.34 s
[really-safe-money-gen] | otherwise =
325.34 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
325.34 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:327:9-16
325.34 s
[really-safe-money-gen] @@ -324,7 +324,7 @@
325.34 s
[really-safe-money-gen] in go resultDouble
325.34 s
[really-safe-money-gen] where
325.34 s
[really-safe-money-gen] go resultDouble
325.34 s
[really-safe-money-gen] - | isNaN d = Nothing
325.34 s
[really-safe-money-gen] + | not (isNaN d) = Nothing
325.34 s
[really-safe-money-gen] | isInfinite d = Nothing
325.34 s
[really-safe-money-gen] | otherwise =
325.34 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
325.34 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:328:9-21
325.34 s
[really-safe-money-gen] @@ -325,7 +325,7 @@
325.34 s
[really-safe-money-gen] where
325.34 s
[really-safe-money-gen] go resultDouble
325.34 s
[really-safe-money-gen] | isNaN d = Nothing
325.34 s
[really-safe-money-gen] - | isInfinite d = Nothing
325.34 s
[really-safe-money-gen] + | not (isInfinite d) = Nothing
325.34 s
[really-safe-money-gen] | otherwise =
325.34 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
325.34 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
325.34 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:332:38-40
325.34 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
325.34 s
[really-safe-money-gen] | otherwise =
325.34 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
325.34 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
325.34 s
[really-safe-money-gen] - if exponent resultDouble > 65
325.34 s
[really-safe-money-gen] + if exponent resultDouble > 1
325.34 s
[really-safe-money-gen] then Nothing
325.34 s
[really-safe-money-gen] else
325.34 s
[really-safe-money-gen] let ceiled :: Natural
325.34 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:332:38-40
325.34 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
325.34 s
[really-safe-money-gen] | otherwise =
325.34 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
325.34 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
325.34 s
[really-safe-money-gen] - if exponent resultDouble > 65
325.34 s
[really-safe-money-gen] + if exponent resultDouble > -65
325.34 s
[really-safe-money-gen] then Nothing
325.34 s
[really-safe-money-gen] else
325.34 s
[really-safe-money-gen] let ceiled :: Natural
325.34 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:332:14-40
325.34 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
325.34 s
[really-safe-money-gen] | otherwise =
325.34 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
325.34 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
325.34 s
[really-safe-money-gen] - if exponent resultDouble > 65
325.34 s
[really-safe-money-gen] + if True
325.34 s
[really-safe-money-gen] then Nothing
325.34 s
[really-safe-money-gen] else
325.34 s
[really-safe-money-gen] let ceiled :: Natural
325.34 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:332:14-40
325.34 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
325.34 s
[really-safe-money-gen] | otherwise =
325.34 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
325.34 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
325.34 s
[really-safe-money-gen] - if exponent resultDouble > 65
325.34 s
[really-safe-money-gen] + if False
325.34 s
[really-safe-money-gen] then Nothing
325.34 s
[really-safe-money-gen] else
325.34 s
[really-safe-money-gen] let ceiled :: Natural
325.34 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:332:14-40
325.34 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
325.34 s
[really-safe-money-gen] | otherwise =
325.34 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
325.34 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
325.34 s
[really-safe-money-gen] - if exponent resultDouble > 65
325.34 s
[really-safe-money-gen] + if not (exponent resultDouble > 65)
325.34 s
[really-safe-money-gen] then Nothing
325.34 s
[really-safe-money-gen] else
325.34 s
[really-safe-money-gen] let ceiled :: Natural
325.34 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:339:22-39
325.34 s
[really-safe-money-gen] @@ -336,7 +336,7 @@
325.34 s
[really-safe-money-gen] ceiled = (ceiling :: Double -> Natural) resultDouble
325.34 s
[really-safe-money-gen] floored :: Natural
325.34 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
325.34 s
[really-safe-money-gen] - in if ceiled == floored
325.34 s
[really-safe-money-gen] + in if True
325.34 s
[really-safe-money-gen] then
325.34 s
[really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
325.34 s
[really-safe-money-gen] then Nothing
325.34 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:328:9-21
325.34 s
[really-safe-money-gen] @@ -325,7 +325,7 @@
325.34 s
[really-safe-money-gen] where
325.34 s
[really-safe-money-gen] go resultDouble
325.34 s
[really-safe-money-gen] | isNaN d = Nothing
325.34 s
[really-safe-money-gen] - | isInfinite d = Nothing
325.34 s
[really-safe-money-gen] + | True = Nothing
325.34 s
[really-safe-money-gen] | otherwise =
325.34 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
325.34 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
325.34 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:339:22-39
325.34 s
[really-safe-money-gen] @@ -336,7 +336,7 @@
325.34 s
[really-safe-money-gen] ceiled = (ceiling :: Double -> Natural) resultDouble
325.34 s
[really-safe-money-gen] floored :: Natural
325.34 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
325.34 s
[really-safe-money-gen] - in if ceiled == floored
325.34 s
[really-safe-money-gen] + in if not (ceiled == floored)
325.34 s
[really-safe-money-gen] then
325.34 s
[really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
325.34 s
[really-safe-money-gen] then Nothing
325.34 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:332:38-40
325.34 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
325.34 s
[really-safe-money-gen] | otherwise =
325.34 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
325.34 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
325.34 s
[really-safe-money-gen] - if exponent resultDouble > 65
325.34 s
[really-safe-money-gen] + if exponent resultDouble > 0
325.34 s
[really-safe-money-gen] then Nothing
325.34 s
[really-safe-money-gen] else
325.34 s
[really-safe-money-gen] let ceiled :: Natural
325.34 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:339:22-39
325.34 s
[really-safe-money-gen] @@ -336,7 +336,7 @@
325.34 s
[really-safe-money-gen] ceiled = (ceiling :: Double -> Natural) resultDouble
325.34 s
[really-safe-money-gen] floored :: Natural
325.34 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
325.34 s
[really-safe-money-gen] - in if ceiled == floored
325.34 s
[really-safe-money-gen] + in if False
325.34 s
[really-safe-money-gen] then
325.34 s
[really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
325.34 s
[really-safe-money-gen] then Nothing
325.34 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:341:26-91
325.34 s
[really-safe-money-gen] @@ -338,7 +338,7 @@
325.34 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
325.34 s
[really-safe-money-gen] in if ceiled == floored
325.34 s
[really-safe-money-gen] then
325.34 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
325.34 s
[really-safe-money-gen] + if True
325.34 s
[really-safe-money-gen] then Nothing
325.34 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
325.34 s
[really-safe-money-gen] else Nothing
325.34 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:341:26-91
325.35 s
[really-safe-money-gen] @@ -338,7 +338,7 @@
325.35 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
325.35 s
[really-safe-money-gen] in if ceiled == floored
325.35 s
[really-safe-money-gen] then
325.35 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
325.35 s
[really-safe-money-gen] + if not (ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64))
325.35 s
[really-safe-money-gen] then Nothing
325.35 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
325.35 s
[really-safe-money-gen] else Nothing
325.35 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:341:23-65
325.35 s
[really-safe-money-gen] @@ -338,9 +338,9 @@
325.35 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
325.35 s
[really-safe-money-gen] in if ceiled == floored
325.35 s
[really-safe-money-gen] then
325.35 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
325.35 s
[really-safe-money-gen] - then Nothing
325.35 s
[really-safe-money-gen] - else Just $ Amount (fromIntegral ceiled)
325.35 s
[really-safe-money-gen] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
325.35 s
[really-safe-money-gen] + then Nothing
326.77 s
[really-safe-money-gen] + else Just $ Amount (fromIntegral ceiled)
326.77 s
[really-safe-money-gen] else Nothing
326.77 s
[really-safe-money-gen]
326.77 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Double'.
326.77 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:339:19-33
326.77 s
[really-safe-money-gen] @@ -336,12 +336,12 @@
326.77 s
[really-safe-money-gen] ceiled = (ceiling :: Double -> Natural) resultDouble
326.77 s
[really-safe-money-gen] floored :: Natural
326.77 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
326.77 s
[really-safe-money-gen] - in if ceiled == floored
326.77 s
[really-safe-money-gen] - then
326.77 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
326.77 s
[really-safe-money-gen] - then Nothing
326.77 s
[really-safe-money-gen] - else Just $ Amount (fromIntegral ceiled)
326.77 s
[really-safe-money-gen] - else Nothing
326.77 s
[really-safe-money-gen] + in if ceiled == floored
326.77 s
[really-safe-money-gen] + then
326.77 s
[really-safe-money-gen] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
326.77 s
[really-safe-money-gen] + then Nothing
326.77 s
[really-safe-money-gen] + else Just $ Amount (fromIntegral ceiled)
326.77 s
[really-safe-money-gen] + else Nothing
326.77 s
[really-safe-money-gen]
326.77 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Double'.
326.77 s
[really-safe-money-gen] --
326.77 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:332:11-33
326.77 s
[really-safe-money-gen] @@ -329,19 +329,19 @@
326.77 s
[really-safe-money-gen] | otherwise =
326.77 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
326.77 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
326.77 s
[really-safe-money-gen] - if exponent resultDouble > 65
326.77 s
[really-safe-money-gen] - then Nothing
326.77 s
[really-safe-money-gen] - else
326.77 s
[really-safe-money-gen] - let ceiled :: Natural
326.77 s
[really-safe-money-gen] - ceiled = (ceiling :: Double -> Natural) resultDouble
326.77 s
[really-safe-money-gen] - floored :: Natural
326.77 s
[really-safe-money-gen] - floored = (floor :: Double -> Natural) resultDouble
326.77 s
[really-safe-money-gen] - in if ceiled == floored
326.77 s
[really-safe-money-gen] - then
326.77 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
326.77 s
[really-safe-money-gen] - then Nothing
326.77 s
[really-safe-money-gen] - else Just $ Amount (fromIntegral ceiled)
326.77 s
[really-safe-money-gen] - else Nothing
326.77 s
[really-safe-money-gen] + if exponent resultDouble > 65
326.78 s
[really-safe-money-gen] + then Nothing
326.78 s
[really-safe-money-gen] + else
326.78 s
[really-safe-money-gen] + let ceiled :: Natural
326.78 s
[really-safe-money-gen] + ceiled = (ceiling :: Double -> Natural) resultDouble
326.78 s
[really-safe-money-gen] + floored :: Natural
326.78 s
[really-safe-money-gen] + floored = (floor :: Double -> Natural) resultDouble
326.78 s
[really-safe-money-gen] + in if ceiled == floored
326.78 s
[really-safe-money-gen] + then
326.78 s
[really-safe-money-gen] + if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
326.78 s
[really-safe-money-gen] + then Nothing
326.78 s
[really-safe-money-gen] + else Just $ Amount (fromIntegral ceiled)
326.78 s
[really-safe-money-gen] + else Nothing
326.78 s
[really-safe-money-gen]
326.78 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Double'.
326.78 s
[really-safe-money-gen] --
326.78 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:290:79-80
326.78 s
[really-safe-money-gen] @@ -287,7 +287,7 @@
326.78 s
[really-safe-money-gen] -- >>> toRatio (QuantisationFactor 100) (Amount 1)
326.78 s
[really-safe-money-gen] -- 1 % 100
326.78 s
[really-safe-money-gen] toRatio :: QuantisationFactor -> Amount -> Ratio Natural
326.78 s
[really-safe-money-gen] -toRatio (QuantisationFactor 0) a = fromIntegral (toMinimalQuantisations a) :% 0
326.78 s
[really-safe-money-gen] +toRatio (QuantisationFactor 0) a = fromIntegral (toMinimalQuantisations a) :% 1
326.78 s
[really-safe-money-gen] toRatio (QuantisationFactor quantisationFactor) a =
326.78 s
[really-safe-money-gen] (fromIntegral :: Word64 -> Natural) (toMinimalQuantisations a)
326.78 s
[really-safe-money-gen] % (fromIntegral :: Word32 -> Natural) quantisationFactor
326.78 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:494:96-97
326.78 s
[really-safe-money-gen] @@ -491,7 +491,7 @@
326.78 s
[really-safe-money-gen] let maxBoundI :: Integer
326.78 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
326.78 s
[really-safe-money-gen] r :: Integer
326.78 s
[really-safe-money-gen] - r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
326.78 s
[really-safe-money-gen] + r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 1 l
326.78 s
[really-safe-money-gen] in if r > maxBoundI
326.78 s
[really-safe-money-gen] then Nothing
326.78 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
326.78 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:495:10-23
326.78 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
326.78 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
326.78 s
[really-safe-money-gen] r :: Integer
326.78 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
326.78 s
[really-safe-money-gen] - in if r > maxBoundI
326.78 s
[really-safe-money-gen] + in if True
326.78 s
[really-safe-money-gen] then Nothing
326.78 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
326.78 s
[really-safe-money-gen]
326.78 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:495:10-23
326.78 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
326.78 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
326.78 s
[really-safe-money-gen] r :: Integer
326.78 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
326.78 s
[really-safe-money-gen] - in if r > maxBoundI
326.78 s
[really-safe-money-gen] + in if False
326.78 s
[really-safe-money-gen] then Nothing
326.78 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
326.78 s
[really-safe-money-gen]
326.78 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:341:26-91
326.78 s
[really-safe-money-gen] @@ -338,7 +338,7 @@
326.78 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
326.78 s
[really-safe-money-gen] in if ceiled == floored
326.78 s
[really-safe-money-gen] then
326.78 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
326.78 s
[really-safe-money-gen] + if False
326.78 s
[really-safe-money-gen] then Nothing
326.78 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
326.78 s
[really-safe-money-gen] else Nothing
326.78 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:495:10-23
326.78 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
326.78 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
326.78 s
[really-safe-money-gen] r :: Integer
326.78 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
326.78 s
[really-safe-money-gen] - in if r > maxBoundI
326.78 s
[really-safe-money-gen] + in if not (r > maxBoundI)
326.78 s
[really-safe-money-gen] then Nothing
326.78 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
326.78 s
[really-safe-money-gen]
326.78 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:495:7-66
326.78 s
[really-safe-money-gen] @@ -492,9 +492,9 @@
326.78 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
326.78 s
[really-safe-money-gen] r :: Integer
326.78 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
326.78 s
[really-safe-money-gen] - in if r > maxBoundI
326.78 s
[really-safe-money-gen] - then Nothing
326.78 s
[really-safe-money-gen] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
326.78 s
[really-safe-money-gen] + in if r > maxBoundI
326.78 s
[really-safe-money-gen] + then Nothing
326.78 s
[really-safe-money-gen] + else Just (Amount ((fromInteger :: Integer -> Word64) r))
326.78 s
[really-safe-money-gen]
326.78 s
[really-safe-money-gen] -- | Add two amounts of money.
326.78 s
[really-safe-money-gen] --
326.78 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:661:30-31
326.78 s
[really-safe-money-gen] @@ -658,7 +658,7 @@
326.78 s
[really-safe-money-gen] -- | The amount and the real rate that was used, considering the 'Rounding'
326.78 s
[really-safe-money-gen] (Maybe Amount, Ratio Natural)
326.78 s
[really-safe-money-gen] fraction _ (Amount 0) f = (Just zero, f)
326.78 s
[really-safe-money-gen] -fraction _ _ 0 = (Just zero, 0)
326.78 s
[really-safe-money-gen] +fraction _ _ 0 = (Just zero, 1)
326.78 s
[really-safe-money-gen] fraction r (Amount a) f =
326.78 s
[really-safe-money-gen] let amountAsRatio :: Ratio Natural
326.78 s
[really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
326.78 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:250:15-16
326.78 s
[really-safe-money-gen] @@ -247,7 +247,7 @@
326.78 s
[really-safe-money-gen] -- >>> zero
326.78 s
[really-safe-money-gen] -- Amount 0
326.78 s
[really-safe-money-gen] zero :: Amount
326.78 s
[really-safe-money-gen] -zero = Amount 0
326.78 s
[really-safe-money-gen] +zero = Amount 1
326.78 s
[really-safe-money-gen]
326.78 s
[really-safe-money-gen] -- | Turn an amount into a number of minimal quantisations.
326.78 s
[really-safe-money-gen] --
326.78 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:668:17-30
326.78 s
[really-safe-money-gen] @@ -665,10 +665,10 @@
326.78 s
[really-safe-money-gen] theoreticalResult :: Ratio Natural
326.78 s
[really-safe-money-gen] theoreticalResult = amountAsRatio * f
326.78 s
[really-safe-money-gen] rounder :: Ratio Natural -> Natural
326.78 s
[really-safe-money-gen] - rounder = case r of
326.78 s
[really-safe-money-gen] - RoundUp -> ceiling
326.78 s
[really-safe-money-gen] - RoundDown -> floor
326.78 s
[really-safe-money-gen] - RoundNearest -> round
326.78 s
[really-safe-money-gen] + rounder = case r of
326.78 s
[really-safe-money-gen] + RoundUp -> ceiling
326.78 s
[really-safe-money-gen] + RoundDown -> floor
326.78 s
[really-safe-money-gen] + RoundNearest -> round
326.78 s
[really-safe-money-gen] roundedResult :: Natural
326.78 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
326.78 s
[really-safe-money-gen] actualRate :: Ratio Natural
326.78 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:668:17-30
326.78 s
[really-safe-money-gen] @@ -665,10 +665,10 @@
326.78 s
[really-safe-money-gen] theoreticalResult :: Ratio Natural
326.78 s
[really-safe-money-gen] theoreticalResult = amountAsRatio * f
326.78 s
[really-safe-money-gen] rounder :: Ratio Natural -> Natural
326.78 s
[really-safe-money-gen] - rounder = case r of
326.78 s
[really-safe-money-gen] - RoundUp -> ceiling
326.78 s
[really-safe-money-gen] - RoundDown -> floor
326.78 s
[really-safe-money-gen] - RoundNearest -> round
326.78 s
[really-safe-money-gen] + rounder = case r of
326.78 s
[really-safe-money-gen] + RoundUp -> ceiling
326.78 s
[really-safe-money-gen] + RoundDown -> floor
326.78 s
[really-safe-money-gen] + RoundNearest -> round
326.78 s
[really-safe-money-gen] roundedResult :: Natural
326.78 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
326.78 s
[really-safe-money-gen] actualRate :: Ratio Natural
326.78 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:668:17-30
326.78 s
[really-safe-money-gen] @@ -665,10 +665,10 @@
326.78 s
[really-safe-money-gen] theoreticalResult :: Ratio Natural
326.78 s
[really-safe-money-gen] theoreticalResult = amountAsRatio * f
326.78 s
[really-safe-money-gen] rounder :: Ratio Natural -> Natural
326.78 s
[really-safe-money-gen] - rounder = case r of
326.78 s
[really-safe-money-gen] - RoundUp -> ceiling
326.78 s
[really-safe-money-gen] - RoundDown -> floor
326.78 s
[really-safe-money-gen] - RoundNearest -> round
326.78 s
[really-safe-money-gen] + rounder = case r of
326.78 s
[really-safe-money-gen] + RoundUp -> ceiling
326.78 s
[really-safe-money-gen] + RoundDown -> floor
326.78 s
[really-safe-money-gen] + RoundNearest -> round
326.78 s
[really-safe-money-gen] roundedResult :: Natural
326.78 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
326.78 s
[really-safe-money-gen] actualRate :: Ratio Natural
326.78 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:681:12-37
326.78 s
[really-safe-money-gen] @@ -678,7 +678,7 @@
326.78 s
[really-safe-money-gen] maxBoundN :: Natural
326.78 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
329.31 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
329.31 s
[really-safe-money-gen] - in ( if roundedResult > maxBoundN
329.31 s
[really-safe-money-gen] + in ( if False
329.31 s
[really-safe-money-gen] then Nothing
329.31 s
[really-safe-money-gen] else Just result,
329.31 s
[really-safe-money-gen] actualRate
329.31 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:681:12-37
329.31 s
[really-safe-money-gen] @@ -678,7 +678,7 @@
329.31 s
[really-safe-money-gen] maxBoundN :: Natural
329.31 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
329.32 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
329.32 s
[really-safe-money-gen] - in ( if roundedResult > maxBoundN
329.32 s
[really-safe-money-gen] + in ( if not (roundedResult > maxBoundN)
329.32 s
[really-safe-money-gen] then Nothing
329.32 s
[really-safe-money-gen] else Just result,
329.32 s
[really-safe-money-gen] actualRate
329.32 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount.hs:681:9-27
329.32 s
[really-safe-money-gen] @@ -678,9 +678,9 @@
329.32 s
[really-safe-money-gen] maxBoundN :: Natural
329.32 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
329.32 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
329.32 s
[really-safe-money-gen] - in ( if roundedResult > maxBoundN
329.32 s
[really-safe-money-gen] - then Nothing
329.32 s
[really-safe-money-gen] - else Just result,
329.32 s
[really-safe-money-gen] + in ( if roundedResult > maxBoundN
329.32 s
[really-safe-money-gen] + then Nothing
329.32 s
[really-safe-money-gen] + else Just result,
329.32 s
[really-safe-money-gen] actualRate
329.32 s
[really-safe-money-gen] )
329.32 s
[really-safe-money-gen]
329.32 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:806:79-92
329.32 s
[really-safe-money-gen] @@ -803,4 +803,4 @@
329.32 s
[really-safe-money-gen]
329.32 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
329.32 s
[really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
329.32 s
[really-safe-money-gen] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
329.32 s
[really-safe-money-gen] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ True
329.32 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:806:79-92
329.32 s
[really-safe-money-gen] @@ -803,4 +803,4 @@
329.32 s
[really-safe-money-gen]
329.32 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
329.32 s
[really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
329.32 s
[really-safe-money-gen] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
329.32 s
[really-safe-money-gen] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ False
329.32 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:806:79-92
329.32 s
[really-safe-money-gen] @@ -803,4 +803,4 @@
329.32 s
[really-safe-money-gen]
329.32 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
329.32 s
[really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
329.32 s
[really-safe-money-gen] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
329.32 s
[really-safe-money-gen] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ not (amount > zero)
329.32 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:607:15-22
329.32 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
329.32 s
[really-safe-money-gen] case ad of
329.32 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
329.32 s
[really-safe-money-gen] declare "The larger chunks are larger" $
329.32 s
[really-safe-money-gen] - a1 > a2
329.32 s
[really-safe-money-gen] + True
329.32 s
[really-safe-money-gen] _ -> valid
329.32 s
[really-safe-money-gen] ]
329.32 s
[really-safe-money-gen]
329.32 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:681:12-37
329.32 s
[really-safe-money-gen] @@ -678,7 +678,7 @@
329.32 s
[really-safe-money-gen] maxBoundN :: Natural
329.32 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
329.32 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
329.32 s
[really-safe-money-gen] - in ( if roundedResult > maxBoundN
329.32 s
[really-safe-money-gen] + in ( if True
329.32 s
[really-safe-money-gen] then Nothing
329.32 s
[really-safe-money-gen] else Just result,
329.32 s
[really-safe-money-gen] actualRate
329.32 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:607:15-22
329.32 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
329.32 s
[really-safe-money-gen] case ad of
329.32 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
329.32 s
[really-safe-money-gen] declare "The larger chunks are larger" $
329.32 s
[really-safe-money-gen] - a1 > a2
329.32 s
[really-safe-money-gen] + False
329.32 s
[really-safe-money-gen] _ -> valid
329.32 s
[really-safe-money-gen] ]
329.32 s
[really-safe-money-gen]
329.32 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:607:15-22
329.32 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
329.32 s
[really-safe-money-gen] case ad of
329.32 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
329.32 s
[really-safe-money-gen] declare "The larger chunks are larger" $
329.32 s
[really-safe-money-gen] - a1 > a2
329.32 s
[really-safe-money-gen] + not (a1 > a2)
329.32 s
[really-safe-money-gen] _ -> valid
329.32 s
[really-safe-money-gen] ]
329.32 s
[really-safe-money-gen]
329.32 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:604:9-21
329.32 s
[really-safe-money-gen] @@ -601,11 +601,11 @@
329.32 s
[really-safe-money-gen] validate ad =
329.32 s
[really-safe-money-gen] mconcat
329.32 s
[really-safe-money-gen] [ genericValidate ad,
329.32 s
[really-safe-money-gen] - case ad of
329.32 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
329.32 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
329.32 s
[really-safe-money-gen] - a1 > a2
329.32 s
[really-safe-money-gen] - _ -> valid
329.32 s
[really-safe-money-gen] + case ad of
329.32 s
[really-safe-money-gen] + DistributedIntoUnequalChunks _ a1 _ a2 ->
329.32 s
[really-safe-money-gen] + declare "The larger chunks are larger" $
329.32 s
[really-safe-money-gen] + a1 > a2
329.32 s
[really-safe-money-gen] + _ -> valid
329.32 s
[really-safe-money-gen] ]
329.32 s
[really-safe-money-gen]
329.32 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
329.32 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:604:9-21
329.32 s
[really-safe-money-gen] @@ -601,11 +601,11 @@
329.32 s
[really-safe-money-gen] validate ad =
329.32 s
[really-safe-money-gen] mconcat
329.32 s
[really-safe-money-gen] [ genericValidate ad,
329.32 s
[really-safe-money-gen] - case ad of
329.32 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
329.32 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
329.32 s
[really-safe-money-gen] - a1 > a2
329.32 s
[really-safe-money-gen] - _ -> valid
329.32 s
[really-safe-money-gen] + case ad of
329.32 s
[really-safe-money-gen] + DistributedIntoUnequalChunks _ a1 _ a2 ->
329.32 s
[really-safe-money-gen] + declare "The larger chunks are larger" $
329.32 s
[really-safe-money-gen] + a1 > a2
329.32 s
[really-safe-money-gen] + _ -> valid
329.32 s
[really-safe-money-gen] ]
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
329.33 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/QuantisationFactor.hs:87:27-28
329.33 s
[really-safe-money-gen] @@ -84,7 +84,7 @@
329.33 s
[really-safe-money-gen] fromDecimalLiteral dl = do
329.33 s
[really-safe-money-gen] irat <-
329.33 s
[really-safe-money-gen] let r = DecimalLiteral.toRational dl
329.33 s
[really-safe-money-gen] - in if numerator r == 0
329.33 s
[really-safe-money-gen] + in if numerator r == 1
329.33 s
[really-safe-money-gen] then Nothing
329.33 s
[really-safe-money-gen] else pure r
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/QuantisationFactor.hs:87:12-28
329.33 s
[really-safe-money-gen] @@ -84,7 +84,7 @@
329.33 s
[really-safe-money-gen] fromDecimalLiteral dl = do
329.33 s
[really-safe-money-gen] irat <-
329.33 s
[really-safe-money-gen] let r = DecimalLiteral.toRational dl
329.33 s
[really-safe-money-gen] - in if numerator r == 0
329.33 s
[really-safe-money-gen] + in if True
329.33 s
[really-safe-money-gen] then Nothing
329.33 s
[really-safe-money-gen] else pure r
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/QuantisationFactor.hs:87:12-28
329.33 s
[really-safe-money-gen] @@ -84,7 +84,7 @@
329.33 s
[really-safe-money-gen] fromDecimalLiteral dl = do
329.33 s
[really-safe-money-gen] irat <-
329.33 s
[really-safe-money-gen] let r = DecimalLiteral.toRational dl
329.33 s
[really-safe-money-gen] - in if numerator r == 0
329.33 s
[really-safe-money-gen] + in if False
329.33 s
[really-safe-money-gen] then Nothing
329.33 s
[really-safe-money-gen] else pure r
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/QuantisationFactor.hs:87:9-22
329.33 s
[really-safe-money-gen] @@ -84,9 +84,9 @@
329.33 s
[really-safe-money-gen] fromDecimalLiteral dl = do
329.33 s
[really-safe-money-gen] irat <-
329.33 s
[really-safe-money-gen] let r = DecimalLiteral.toRational dl
329.33 s
[really-safe-money-gen] - in if numerator r == 0
329.33 s
[really-safe-money-gen] - then Nothing
329.33 s
[really-safe-money-gen] - else pure r
329.33 s
[really-safe-money-gen] + in if numerator r == 0
329.33 s
[really-safe-money-gen] + then Nothing
329.33 s
[really-safe-money-gen] + else pure r
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] rat <-
329.33 s
[really-safe-money-gen] let r = 1 / irat
329.33 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/QuantisationFactor.hs:92:13-14
329.33 s
[really-safe-money-gen] @@ -89,7 +89,7 @@
329.33 s
[really-safe-money-gen] else pure r
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] rat <-
329.33 s
[really-safe-money-gen] - let r = 1 / irat
329.33 s
[really-safe-money-gen] + let r = 0 / irat
329.33 s
[really-safe-money-gen] in if r < 0
329.33 s
[really-safe-money-gen] then Nothing
329.33 s
[really-safe-money-gen] else Just r
329.33 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/QuantisationFactor.hs:92:13-14
329.33 s
[really-safe-money-gen] @@ -89,7 +89,7 @@
329.33 s
[really-safe-money-gen] else pure r
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] rat <-
329.33 s
[really-safe-money-gen] - let r = 1 / irat
329.33 s
[really-safe-money-gen] + let r = -1 / irat
329.33 s
[really-safe-money-gen] in if r < 0
329.33 s
[really-safe-money-gen] then Nothing
329.33 s
[really-safe-money-gen] else Just r
329.33 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/QuantisationFactor.hs:93:16-17
329.33 s
[really-safe-money-gen] @@ -90,7 +90,7 @@
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] rat <-
329.33 s
[really-safe-money-gen] let r = 1 / irat
329.33 s
[really-safe-money-gen] - in if r < 0
329.33 s
[really-safe-money-gen] + in if r < 1
329.33 s
[really-safe-money-gen] then Nothing
329.33 s
[really-safe-money-gen] else Just r
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount.hs:603:7-8
329.33 s
[really-safe-money-gen] @@ -600,13 +600,7 @@
329.33 s
[really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
329.33 s
[really-safe-money-gen] validate ad =
329.33 s
[really-safe-money-gen] mconcat
329.33 s
[really-safe-money-gen] - [ genericValidate ad,
329.33 s
[really-safe-money-gen] - case ad of
329.33 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
329.33 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
329.33 s
[really-safe-money-gen] - a1 > a2
329.33 s
[really-safe-money-gen] - _ -> valid
329.33 s
[really-safe-money-gen] - ]
329.33 s
[really-safe-money-gen] + []
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount.hs:603:7-8
329.33 s
[really-safe-money-gen] @@ -600,13 +600,13 @@
329.33 s
[really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
329.33 s
[really-safe-money-gen] validate ad =
329.33 s
[really-safe-money-gen] mconcat
329.33 s
[really-safe-money-gen] - [ genericValidate ad,
329.33 s
[really-safe-money-gen] - case ad of
329.33 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
329.33 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
329.33 s
[really-safe-money-gen] - a1 > a2
329.33 s
[really-safe-money-gen] - _ -> valid
329.33 s
[really-safe-money-gen] - ]
329.33 s
[really-safe-money-gen] + [ genericValidate ad,
329.33 s
[really-safe-money-gen] + case ad of
329.33 s
[really-safe-money-gen] + DistributedIntoUnequalChunks _ a1 _ a2 ->
329.33 s
[really-safe-money-gen] + declare "The larger chunks are larger" $
329.33 s
[really-safe-money-gen] + a1 > a2
329.33 s
[really-safe-money-gen] + _ -> valid
329.33 s
[really-safe-money-gen] + ]
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/QuantisationFactor.hs:93:12-17
329.33 s
[really-safe-money-gen] @@ -90,7 +90,7 @@
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] rat <-
329.33 s
[really-safe-money-gen] let r = 1 / irat
329.33 s
[really-safe-money-gen] - in if r < 0
329.33 s
[really-safe-money-gen] + in if True
329.33 s
[really-safe-money-gen] then Nothing
329.33 s
[really-safe-money-gen] else Just r
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] Testing mutation Negate at src/Money/QuantisationFactor.hs:87:12-28
329.33 s
[really-safe-money-gen] @@ -84,7 +84,7 @@
329.33 s
[really-safe-money-gen] fromDecimalLiteral dl = do
329.33 s
[really-safe-money-gen] irat <-
329.33 s
[really-safe-money-gen] let r = DecimalLiteral.toRational dl
329.33 s
[really-safe-money-gen] - in if numerator r == 0
329.33 s
[really-safe-money-gen] + in if not (numerator r == 0)
329.33 s
[really-safe-money-gen] then Nothing
329.33 s
[really-safe-money-gen] else pure r
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/QuantisationFactor.hs:93:12-17
329.33 s
[really-safe-money-gen] @@ -90,7 +90,7 @@
329.33 s
[really-safe-money-gen]
329.33 s
[really-safe-money-gen] rat <-
329.33 s
[really-safe-money-gen] let r = 1 / irat
329.33 s
[really-safe-money-gen] - in if r < 0
329.33 s
[really-safe-money-gen] + in if False
329.33 s
[really-safe-money-gen] then Nothing
329.33 s
[really-safe-money-gen] else Just r
329.33 s
[really-safe-money-gen]
331.48 s
[really-safe-money-gen] Testing mutation Negate at src/Money/QuantisationFactor.hs:93:12-17
331.57 s
[really-safe-money-gen] @@ -90,7 +90,7 @@
331.57 s
[really-safe-money-gen]
331.57 s
[really-safe-money-gen] rat <-
331.57 s
[really-safe-money-gen] let r = 1 / irat
331.57 s
[really-safe-money-gen] - in if r < 0
331.57 s
[really-safe-money-gen] + in if not (r < 0)
331.57 s
[really-safe-money-gen] then Nothing
331.57 s
[really-safe-money-gen] else Just r
331.57 s
[really-safe-money-gen]
331.57 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/QuantisationFactor.hs:93:9-22
331.57 s
[really-safe-money-gen] @@ -90,9 +90,9 @@
331.57 s
[really-safe-money-gen]
331.57 s
[really-safe-money-gen] rat <-
331.57 s
[really-safe-money-gen] let r = 1 / irat
331.57 s
[really-safe-money-gen] - in if r < 0
331.57 s
[really-safe-money-gen] - then Nothing
331.57 s
[really-safe-money-gen] - else Just r
331.57 s
[really-safe-money-gen] + in if r < 0
331.58 s
[really-safe-money-gen] + then Nothing
331.58 s
[really-safe-money-gen] + else Just r
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] fac <-
331.58 s
[really-safe-money-gen] if denominator rat == 1
331.58 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/QuantisationFactor.hs:98:27-28
331.58 s
[really-safe-money-gen] @@ -95,7 +95,7 @@
331.58 s
[really-safe-money-gen] else Just r
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] fac <-
331.58 s
[really-safe-money-gen] - if denominator rat == 1
331.58 s
[really-safe-money-gen] + if denominator rat == 0
331.58 s
[really-safe-money-gen] then Just (numerator rat)
331.58 s
[really-safe-money-gen] else Nothing
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/QuantisationFactor.hs:98:27-28
331.58 s
[really-safe-money-gen] @@ -95,7 +95,7 @@
331.58 s
[really-safe-money-gen] else Just r
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] fac <-
331.58 s
[really-safe-money-gen] - if denominator rat == 1
331.58 s
[really-safe-money-gen] + if denominator rat == -1
331.58 s
[really-safe-money-gen] then Just (numerator rat)
331.58 s
[really-safe-money-gen] else Nothing
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/QuantisationFactor.hs:98:8-28
331.58 s
[really-safe-money-gen] @@ -95,7 +95,7 @@
331.58 s
[really-safe-money-gen] else Just r
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] fac <-
331.58 s
[really-safe-money-gen] - if denominator rat == 1
331.58 s
[really-safe-money-gen] + if True
331.58 s
[really-safe-money-gen] then Just (numerator rat)
331.58 s
[really-safe-money-gen] else Nothing
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/QuantisationFactor.hs:98:8-28
331.58 s
[really-safe-money-gen] @@ -95,7 +95,7 @@
331.58 s
[really-safe-money-gen] else Just r
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] fac <-
331.58 s
[really-safe-money-gen] - if denominator rat == 1
331.58 s
[really-safe-money-gen] + if False
331.58 s
[really-safe-money-gen] then Just (numerator rat)
331.58 s
[really-safe-money-gen] else Nothing
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/QuantisationFactor.hs:98:5-19
331.58 s
[really-safe-money-gen] @@ -95,9 +95,9 @@
331.58 s
[really-safe-money-gen] else Just r
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] fac <-
331.58 s
[really-safe-money-gen] - if denominator rat == 1
331.58 s
[really-safe-money-gen] - then Just (numerator rat)
331.58 s
[really-safe-money-gen] - else Nothing
331.58 s
[really-safe-money-gen] + if denominator rat == 1
331.58 s
[really-safe-money-gen] + then Just (numerator rat)
331.58 s
[really-safe-money-gen] + else Nothing
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] if fac <= fromIntegral (maxBound :: Word32)
331.58 s
[really-safe-money-gen] then Just (QuantisationFactor (fromIntegral fac))
331.58 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/QuantisationFactor.hs:102:6-46
331.58 s
[really-safe-money-gen] @@ -99,6 +99,6 @@
331.58 s
[really-safe-money-gen] then Just (numerator rat)
331.58 s
[really-safe-money-gen] else Nothing
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] - if fac <= fromIntegral (maxBound :: Word32)
331.58 s
[really-safe-money-gen] + if True
331.58 s
[really-safe-money-gen] then Just (QuantisationFactor (fromIntegral fac))
331.58 s
[really-safe-money-gen] else Nothing
331.58 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/QuantisationFactor.hs:102:6-46
331.58 s
[really-safe-money-gen] @@ -99,6 +99,6 @@
331.58 s
[really-safe-money-gen] then Just (numerator rat)
331.58 s
[really-safe-money-gen] else Nothing
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] - if fac <= fromIntegral (maxBound :: Word32)
331.58 s
[really-safe-money-gen] + if False
331.58 s
[really-safe-money-gen] then Just (QuantisationFactor (fromIntegral fac))
331.58 s
[really-safe-money-gen] else Nothing
331.58 s
[really-safe-money-gen] Testing mutation Negate at src/Money/QuantisationFactor.hs:102:6-46
331.58 s
[really-safe-money-gen] @@ -99,6 +99,6 @@
331.58 s
[really-safe-money-gen] then Just (numerator rat)
331.58 s
[really-safe-money-gen] else Nothing
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] - if fac <= fromIntegral (maxBound :: Word32)
331.58 s
[really-safe-money-gen] + if not (fac <= fromIntegral (maxBound :: Word32))
331.58 s
[really-safe-money-gen] then Just (QuantisationFactor (fromIntegral fac))
331.58 s
[really-safe-money-gen] else Nothing
331.58 s
[really-safe-money-gen] Testing mutation Negate at src/Money/QuantisationFactor.hs:98:8-28
331.58 s
[really-safe-money-gen] @@ -95,7 +95,7 @@
331.58 s
[really-safe-money-gen] else Just r
331.58 s
[really-safe-money-gen]
331.58 s
[really-safe-money-gen] fac <-
331.59 s
[really-safe-money-gen] - if denominator rat == 1
331.59 s
[really-safe-money-gen] + if not (denominator rat == 1)
331.59 s
[really-safe-money-gen] then Just (numerator rat)
331.59 s
[really-safe-money-gen] else Nothing
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/QuantisationFactor.hs:67:67-68
331.59 s
[really-safe-money-gen] @@ -64,7 +64,7 @@
331.59 s
[really-safe-money-gen] -- Just (DecimalLiteral Nothing 1 0)
331.59 s
[really-safe-money-gen] toDecimalLiteral :: QuantisationFactor -> Maybe DecimalLiteral
331.59 s
[really-safe-money-gen] toDecimalLiteral (QuantisationFactor qfw) =
331.59 s
[really-safe-money-gen] - DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (1 % fromIntegral qfw)
331.59 s
[really-safe-money-gen] + DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (-1 % fromIntegral qfw)
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] -- | Parse a 'QuantisationFactor' from a 'DecimalLiteral' that represents the smallest unit
331.59 s
[really-safe-money-gen] -- TODO explain that it's the inverse.
331.59 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/QuantisationFactor.hs:40:62-63
331.59 s
[really-safe-money-gen] @@ -37,7 +37,7 @@
331.59 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
331.59 s
[really-safe-money-gen] mconcat
331.59 s
[really-safe-money-gen] [ genericValidate qf,
331.59 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
331.59 s
[really-safe-money-gen] + declare "The quantisation factor is not zero" $ w /= 1
331.59 s
[really-safe-money-gen] ]
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] instance NFData QuantisationFactor
331.59 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/QuantisationFactor.hs:40:57-63
331.59 s
[really-safe-money-gen] @@ -37,7 +37,7 @@
331.59 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
331.59 s
[really-safe-money-gen] mconcat
331.59 s
[really-safe-money-gen] [ genericValidate qf,
331.59 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
331.59 s
[really-safe-money-gen] + declare "The quantisation factor is not zero" $ False
331.59 s
[really-safe-money-gen] ]
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] instance NFData QuantisationFactor
331.59 s
[really-safe-money-gen] Testing mutation Negate at src/Money/QuantisationFactor.hs:40:57-63
331.59 s
[really-safe-money-gen] @@ -37,7 +37,7 @@
331.59 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
331.59 s
[really-safe-money-gen] mconcat
331.59 s
[really-safe-money-gen] [ genericValidate qf,
331.59 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
331.59 s
[really-safe-money-gen] + declare "The quantisation factor is not zero" $ not (w /= 0)
331.59 s
[really-safe-money-gen] ]
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] instance NFData QuantisationFactor
331.59 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/QuantisationFactor.hs:39:7-8
331.59 s
[really-safe-money-gen] @@ -36,9 +36,7 @@
331.59 s
[really-safe-money-gen] instance Validity QuantisationFactor where
331.59 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
331.59 s
[really-safe-money-gen] mconcat
331.59 s
[really-safe-money-gen] - [ genericValidate qf,
331.59 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
331.59 s
[really-safe-money-gen] - ]
331.59 s
[really-safe-money-gen] + []
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] instance NFData QuantisationFactor
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/QuantisationFactor.hs:39:7-8
331.59 s
[really-safe-money-gen] @@ -36,9 +36,9 @@
331.59 s
[really-safe-money-gen] instance Validity QuantisationFactor where
331.59 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
331.59 s
[really-safe-money-gen] mconcat
331.59 s
[really-safe-money-gen] - [ genericValidate qf,
331.59 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
331.59 s
[really-safe-money-gen] - ]
331.59 s
[really-safe-money-gen] + [ genericValidate qf,
331.59 s
[really-safe-money-gen] + declare "The quantisation factor is not zero" $ w /= 0
331.59 s
[really-safe-money-gen] + ]
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] instance NFData QuantisationFactor
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:553:7-39
331.59 s
[really-safe-money-gen] @@ -550,11 +550,11 @@
331.59 s
[really-safe-money-gen] let aa1 = abs a1
331.59 s
[really-safe-money-gen] aa2 = abs a2
331.59 s
[really-safe-money-gen] mr = Amount.rate qf1 aa1 qf2 aa2
331.59 s
[really-safe-money-gen] - in case (a1, a2) of
331.59 s
[really-safe-money-gen] - (Positive _, Positive _) -> mr
331.59 s
[really-safe-money-gen] - (Positive _, Negative _) -> Nothing
331.59 s
[really-safe-money-gen] - (Negative _, Positive _) -> Nothing
331.59 s
[really-safe-money-gen] - (Negative _, Negative _) -> mr
331.59 s
[really-safe-money-gen] + in case (a1, a2) of
331.59 s
[really-safe-money-gen] + (Positive _, Positive _) -> mr
331.59 s
[really-safe-money-gen] + (Positive _, Negative _) -> Nothing
331.59 s
[really-safe-money-gen] + (Negative _, Positive _) -> Nothing
331.59 s
[really-safe-money-gen] + (Negative _, Negative _) -> mr
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] -- | Convert an amount of money of one currency into an amount of money of
331.59 s
[really-safe-money-gen] -- another currency using a conversion rate.
331.59 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/QuantisationFactor.hs:67:67-68
331.59 s
[really-safe-money-gen] @@ -64,7 +64,7 @@
331.59 s
[really-safe-money-gen] -- Just (DecimalLiteral Nothing 1 0)
331.59 s
[really-safe-money-gen] toDecimalLiteral :: QuantisationFactor -> Maybe DecimalLiteral
331.59 s
[really-safe-money-gen] toDecimalLiteral (QuantisationFactor qfw) =
331.59 s
[really-safe-money-gen] - DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (1 % fromIntegral qfw)
331.59 s
[really-safe-money-gen] + DecimalLiteral.setSignOptional <$> DecimalLiteral.fromRational (0 % fromIntegral qfw)
331.59 s
[really-safe-money-gen]
331.59 s
[really-safe-money-gen] -- | Parse a 'QuantisationFactor' from a 'DecimalLiteral' that represents the smallest unit
331.59 s
[really-safe-money-gen] -- TODO explain that it's the inverse.
331.59 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:553:7-39
331.59 s
[really-safe-money-gen] @@ -550,11 +550,11 @@
331.59 s
[really-safe-money-gen] let aa1 = abs a1
331.59 s
[really-safe-money-gen] aa2 = abs a2
331.59 s
[really-safe-money-gen] mr = Amount.rate qf1 aa1 qf2 aa2
331.59 s
[really-safe-money-gen] - in case (a1, a2) of
331.59 s
[really-safe-money-gen] - (Positive _, Positive _) -> mr
331.59 s
[really-safe-money-gen] - (Positive _, Negative _) -> Nothing
331.59 s
[really-safe-money-gen] - (Negative _, Positive _) -> Nothing
331.59 s
[really-safe-money-gen] - (Negative _, Negative _) -> mr
331.59 s
[really-safe-money-gen] + in case (a1, a2) of
331.59 s
[really-safe-money-gen] + (Positive _, Positive _) -> mr
331.59 s
[really-safe-money-gen] + (Positive _, Negative _) -> Nothing
331.59 s
[really-safe-money-gen] + (Negative _, Positive _) -> Nothing
331.59 s
[really-safe-money-gen] + (Negative _, Negative _) -> mr
331.60 s
[really-safe-money-gen]
331.60 s
[really-safe-money-gen] -- | Convert an amount of money of one currency into an amount of money of
331.60 s
[really-safe-money-gen] -- another currency using a conversion rate.
331.60 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/QuantisationFactor.hs:40:57-63
331.60 s
[really-safe-money-gen] @@ -37,7 +37,7 @@
331.60 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
331.60 s
[really-safe-money-gen] mconcat
331.60 s
[really-safe-money-gen] [ genericValidate qf,
331.60 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
331.60 s
[really-safe-money-gen] + declare "The quantisation factor is not zero" $ True
331.60 s
[really-safe-money-gen] ]
331.60 s
[really-safe-money-gen]
331.60 s
[really-safe-money-gen] instance NFData QuantisationFactor
331.60 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:553:7-39
331.60 s
[really-safe-money-gen] @@ -550,11 +550,11 @@
331.60 s
[really-safe-money-gen] let aa1 = abs a1
331.60 s
[really-safe-money-gen] aa2 = abs a2
331.60 s
[really-safe-money-gen] mr = Amount.rate qf1 aa1 qf2 aa2
331.60 s
[really-safe-money-gen] - in case (a1, a2) of
331.60 s
[really-safe-money-gen] - (Positive _, Positive _) -> mr
331.60 s
[really-safe-money-gen] - (Positive _, Negative _) -> Nothing
331.60 s
[really-safe-money-gen] - (Negative _, Positive _) -> Nothing
331.60 s
[really-safe-money-gen] - (Negative _, Negative _) -> mr
331.60 s
[really-safe-money-gen] + in case (a1, a2) of
331.60 s
[really-safe-money-gen] + (Positive _, Positive _) -> mr
331.60 s
[really-safe-money-gen] + (Positive _, Negative _) -> Nothing
331.60 s
[really-safe-money-gen] + (Negative _, Positive _) -> Nothing
331.60 s
[really-safe-money-gen] + (Negative _, Negative _) -> mr
331.60 s
[really-safe-money-gen]
331.60 s
[really-safe-money-gen] -- | Convert an amount of money of one currency into an amount of money of
331.60 s
[really-safe-money-gen] -- another currency using a conversion rate.
332.38 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:591:7-44
332.38 s
[really-safe-money-gen] @@ -588,9 +588,9 @@
332.38 s
[really-safe-money-gen] (Maybe Account, Maybe ConversionRate)
332.38 s
[really-safe-money-gen] convert r qf1 a cr qf2 =
332.38 s
[really-safe-money-gen] let (ma, mr) = Amount.convert r qf1 (abs a) cr qf2
332.38 s
[really-safe-money-gen] - in case a of
332.38 s
[really-safe-money-gen] - Positive _ -> (Positive <$> ma, mr)
332.38 s
[really-safe-money-gen] - Negative _ -> (Negative <$> ma, mr)
332.38 s
[really-safe-money-gen] + in case a of
332.38 s
[really-safe-money-gen] + Positive _ -> (Positive <$> ma, mr)
332.39 s
[really-safe-money-gen] + Negative _ -> (Negative <$> ma, mr)
332.39 s
[really-safe-money-gen]
332.39 s
[really-safe-money-gen] -- | Format an account of money without a symbol.
332.39 s
[really-safe-money-gen] --
332.39 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:421:11-29
332.39 s
[really-safe-money-gen] @@ -418,13 +418,13 @@
332.39 s
[really-safe-money-gen] multiply :: Int32 -> Account -> Maybe Account
332.39 s
[really-safe-money-gen] multiply factor account =
332.39 s
[really-safe-money-gen] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
332.39 s
[really-safe-money-gen] - f = case (compare factor 0, compare account zero) of
332.39 s
[really-safe-money-gen] - (EQ, _) -> const zero
332.39 s
[really-safe-money-gen] - (_, EQ) -> const zero
332.39 s
[really-safe-money-gen] - (GT, GT) -> Positive
332.39 s
[really-safe-money-gen] - (GT, LT) -> Negative
332.39 s
[really-safe-money-gen] - (LT, GT) -> Negative
332.39 s
[really-safe-money-gen] - (LT, LT) -> Positive
332.39 s
[really-safe-money-gen] + f = case (compare factor 0, compare account zero) of
332.39 s
[really-safe-money-gen] + (EQ, _) -> const zero
332.39 s
[really-safe-money-gen] + (_, EQ) -> const zero
332.39 s
[really-safe-money-gen] + (GT, GT) -> Positive
332.39 s
[really-safe-money-gen] + (GT, LT) -> Negative
332.39 s
[really-safe-money-gen] + (LT, GT) -> Negative
332.39 s
[really-safe-money-gen] + (LT, LT) -> Positive
332.39 s
[really-safe-money-gen] in f <$> Amount.multiply af (abs account)
332.39 s
[really-safe-money-gen]
332.39 s
[really-safe-money-gen] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
332.39 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:421:11-29
332.39 s
[really-safe-money-gen] @@ -418,13 +418,13 @@
332.39 s
[really-safe-money-gen] multiply :: Int32 -> Account -> Maybe Account
332.39 s
[really-safe-money-gen] multiply factor account =
332.39 s
[really-safe-money-gen] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
332.39 s
[really-safe-money-gen] - f = case (compare factor 0, compare account zero) of
332.39 s
[really-safe-money-gen] - (EQ, _) -> const zero
332.39 s
[really-safe-money-gen] - (_, EQ) -> const zero
332.39 s
[really-safe-money-gen] - (GT, GT) -> Positive
332.39 s
[really-safe-money-gen] - (GT, LT) -> Negative
332.39 s
[really-safe-money-gen] - (LT, GT) -> Negative
332.39 s
[really-safe-money-gen] - (LT, LT) -> Positive
332.39 s
[really-safe-money-gen] + f = case (compare factor 0, compare account zero) of
332.39 s
[really-safe-money-gen] + (EQ, _) -> const zero
332.39 s
[really-safe-money-gen] + (_, EQ) -> const zero
332.39 s
[really-safe-money-gen] + (GT, GT) -> Positive
332.39 s
[really-safe-money-gen] + (GT, LT) -> Negative
332.39 s
[really-safe-money-gen] + (LT, GT) -> Negative
332.39 s
[really-safe-money-gen] + (LT, LT) -> Positive
332.39 s
[really-safe-money-gen] in f <$> Amount.multiply af (abs account)
332.39 s
[really-safe-money-gen]
332.39 s
[really-safe-money-gen] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
332.39 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:421:11-29
332.39 s
[really-safe-money-gen] @@ -418,13 +418,13 @@
332.39 s
[really-safe-money-gen] multiply :: Int32 -> Account -> Maybe Account
332.39 s
[really-safe-money-gen] multiply factor account =
332.39 s
[really-safe-money-gen] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
332.39 s
[really-safe-money-gen] - f = case (compare factor 0, compare account zero) of
332.40 s
[really-safe-money-gen] - (EQ, _) -> const zero
332.40 s
[really-safe-money-gen] - (_, EQ) -> const zero
332.40 s
[really-safe-money-gen] - (GT, GT) -> Positive
332.40 s
[really-safe-money-gen] - (GT, LT) -> Negative
332.40 s
[really-safe-money-gen] - (LT, GT) -> Negative
332.40 s
[really-safe-money-gen] - (LT, LT) -> Positive
332.40 s
[really-safe-money-gen] + f = case (compare factor 0, compare account zero) of
332.40 s
[really-safe-money-gen] + (EQ, _) -> const zero
332.40 s
[really-safe-money-gen] + (_, EQ) -> const zero
332.40 s
[really-safe-money-gen] + (GT, GT) -> Positive
332.40 s
[really-safe-money-gen] + (GT, LT) -> Negative
332.40 s
[really-safe-money-gen] + (LT, GT) -> Negative
332.40 s
[really-safe-money-gen] + (LT, LT) -> Positive
332.40 s
[really-safe-money-gen] in f <$> Amount.multiply af (abs account)
332.40 s
[really-safe-money-gen]
332.40 s
[really-safe-money-gen] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
332.40 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:421:11-29
332.40 s
[really-safe-money-gen] @@ -418,13 +418,13 @@
332.40 s
[really-safe-money-gen] multiply :: Int32 -> Account -> Maybe Account
332.40 s
[really-safe-money-gen] multiply factor account =
332.40 s
[really-safe-money-gen] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
332.40 s
[really-safe-money-gen] - f = case (compare factor 0, compare account zero) of
332.40 s
[really-safe-money-gen] - (EQ, _) -> const zero
332.40 s
[really-safe-money-gen] - (_, EQ) -> const zero
332.40 s
[really-safe-money-gen] - (GT, GT) -> Positive
332.40 s
[really-safe-money-gen] - (GT, LT) -> Negative
332.40 s
[really-safe-money-gen] - (LT, GT) -> Negative
332.40 s
[really-safe-money-gen] - (LT, LT) -> Positive
332.40 s
[really-safe-money-gen] + f = case (compare factor 0, compare account zero) of
332.40 s
[really-safe-money-gen] + (EQ, _) -> const zero
332.40 s
[really-safe-money-gen] + (_, EQ) -> const zero
332.40 s
[really-safe-money-gen] + (GT, GT) -> Positive
332.40 s
[really-safe-money-gen] + (GT, LT) -> Negative
332.40 s
[really-safe-money-gen] + (LT, GT) -> Negative
332.40 s
[really-safe-money-gen] + (LT, LT) -> Positive
332.40 s
[really-safe-money-gen] in f <$> Amount.multiply af (abs account)
332.40 s
[really-safe-money-gen]
332.40 s
[really-safe-money-gen] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
332.40 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:553:7-39
332.40 s
[really-safe-money-gen] @@ -550,11 +550,11 @@
332.40 s
[really-safe-money-gen] let aa1 = abs a1
332.40 s
[really-safe-money-gen] aa2 = abs a2
332.40 s
[really-safe-money-gen] mr = Amount.rate qf1 aa1 qf2 aa2
332.40 s
[really-safe-money-gen] - in case (a1, a2) of
332.40 s
[really-safe-money-gen] - (Positive _, Positive _) -> mr
332.40 s
[really-safe-money-gen] - (Positive _, Negative _) -> Nothing
332.40 s
[really-safe-money-gen] - (Negative _, Positive _) -> Nothing
332.40 s
[really-safe-money-gen] - (Negative _, Negative _) -> mr
332.40 s
[really-safe-money-gen] + in case (a1, a2) of
332.40 s
[really-safe-money-gen] + (Positive _, Positive _) -> mr
332.40 s
[really-safe-money-gen] + (Positive _, Negative _) -> Nothing
332.40 s
[really-safe-money-gen] + (Negative _, Positive _) -> Nothing
332.40 s
[really-safe-money-gen] + (Negative _, Negative _) -> mr
332.40 s
[really-safe-money-gen]
332.40 s
[really-safe-money-gen] -- | Convert an amount of money of one currency into an amount of money of
332.40 s
[really-safe-money-gen] -- another currency using a conversion rate.
332.40 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:451:14-23
332.40 s
[really-safe-money-gen] @@ -448,7 +448,7 @@
332.40 s
[really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
332.40 s
[really-safe-money-gen] DistributedZero -> DistributedZero
332.40 s
[really-safe-money-gen] DistributedIntoEqualChunks numberOfChunks chunk ->
332.40 s
[really-safe-money-gen] - if a >= zero
332.40 s
[really-safe-money-gen] + if True
332.40 s
[really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
332.40 s
[really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
332.40 s
[really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
332.40 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Account.hs:421:32-33
332.40 s
[really-safe-money-gen] @@ -418,7 +418,7 @@
332.40 s
[really-safe-money-gen] multiply :: Int32 -> Account -> Maybe Account
332.40 s
[really-safe-money-gen] multiply factor account =
332.41 s
[really-safe-money-gen] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
332.41 s
[really-safe-money-gen] - f = case (compare factor 0, compare account zero) of
332.41 s
[really-safe-money-gen] + f = case (compare factor 1, compare account zero) of
332.41 s
[really-safe-money-gen] (EQ, _) -> const zero
332.41 s
[really-safe-money-gen] (_, EQ) -> const zero
332.41 s
[really-safe-money-gen] (GT, GT) -> Positive
332.41 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:591:7-44
332.41 s
[really-safe-money-gen] @@ -588,9 +588,9 @@
332.41 s
[really-safe-money-gen] (Maybe Account, Maybe ConversionRate)
332.41 s
[really-safe-money-gen] convert r qf1 a cr qf2 =
332.41 s
[really-safe-money-gen] let (ma, mr) = Amount.convert r qf1 (abs a) cr qf2
332.41 s
[really-safe-money-gen] - in case a of
332.41 s
[really-safe-money-gen] - Positive _ -> (Positive <$> ma, mr)
332.41 s
[really-safe-money-gen] - Negative _ -> (Negative <$> ma, mr)
332.41 s
[really-safe-money-gen] + in case a of
332.41 s
[really-safe-money-gen] + Positive _ -> (Positive <$> ma, mr)
332.41 s
[really-safe-money-gen] + Negative _ -> (Negative <$> ma, mr)
332.41 s
[really-safe-money-gen]
332.41 s
[really-safe-money-gen] -- | Format an account of money without a symbol.
332.41 s
[really-safe-money-gen] --
332.41 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Account.hs:451:14-23
332.41 s
[really-safe-money-gen] @@ -448,7 +448,7 @@
332.41 s
[really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
332.41 s
[really-safe-money-gen] DistributedZero -> DistributedZero
332.41 s
[really-safe-money-gen] DistributedIntoEqualChunks numberOfChunks chunk ->
332.41 s
[really-safe-money-gen] - if a >= zero
332.41 s
[really-safe-money-gen] + if not (a >= zero)
332.41 s
[really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
332.41 s
[really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
332.41 s
[really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
332.41 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Account.hs:451:11-76
332.41 s
[really-safe-money-gen] @@ -448,9 +448,9 @@
332.41 s
[really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
332.41 s
[really-safe-money-gen] DistributedZero -> DistributedZero
332.41 s
[really-safe-money-gen] DistributedIntoEqualChunks numberOfChunks chunk ->
332.41 s
[really-safe-money-gen] - if a >= zero
332.41 s
[really-safe-money-gen] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
332.41 s
[really-safe-money-gen] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
332.41 s
[really-safe-money-gen] + if a >= zero
332.41 s
[really-safe-money-gen] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
332.41 s
[really-safe-money-gen] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
332.41 s
[really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
332.41 s
[really-safe-money-gen] if a >= zero
332.41 s
[really-safe-money-gen] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
332.41 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:455:14-23
332.41 s
[really-safe-money-gen] @@ -452,7 +452,7 @@
332.41 s
[really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
332.41 s
[really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
332.41 s
[really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
332.41 s
[really-safe-money-gen] - if a >= zero
332.41 s
[really-safe-money-gen] + if True
332.41 s
[really-safe-money-gen] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
332.41 s
[really-safe-money-gen] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
332.41 s
[really-safe-money-gen]
333.42 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:421:11-29
333.42 s
[really-safe-money-gen] @@ -418,13 +418,13 @@
333.42 s
[really-safe-money-gen] multiply :: Int32 -> Account -> Maybe Account
333.42 s
[really-safe-money-gen] multiply factor account =
333.42 s
[really-safe-money-gen] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
333.42 s
[really-safe-money-gen] - f = case (compare factor 0, compare account zero) of
333.42 s
[really-safe-money-gen] - (EQ, _) -> const zero
333.43 s
[really-safe-money-gen] - (_, EQ) -> const zero
333.43 s
[really-safe-money-gen] - (GT, GT) -> Positive
333.43 s
[really-safe-money-gen] - (GT, LT) -> Negative
333.43 s
[really-safe-money-gen] - (LT, GT) -> Negative
333.43 s
[really-safe-money-gen] - (LT, LT) -> Positive
333.43 s
[really-safe-money-gen] + f = case (compare factor 0, compare account zero) of
333.43 s
[really-safe-money-gen] + (EQ, _) -> const zero
333.43 s
[really-safe-money-gen] + (_, EQ) -> const zero
333.43 s
[really-safe-money-gen] + (GT, GT) -> Positive
333.43 s
[really-safe-money-gen] + (GT, LT) -> Negative
333.43 s
[really-safe-money-gen] + (LT, GT) -> Negative
333.43 s
[really-safe-money-gen] + (LT, LT) -> Positive
333.43 s
[really-safe-money-gen] in f <$> Amount.multiply af (abs account)
333.43 s
[really-safe-money-gen]
333.43 s
[really-safe-money-gen] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
333.43 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:455:14-23
333.43 s
[really-safe-money-gen] @@ -452,7 +452,7 @@
333.43 s
[really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
333.43 s
[really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
333.43 s
[really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
333.43 s
[really-safe-money-gen] - if a >= zero
333.43 s
[really-safe-money-gen] + if False
333.43 s
[really-safe-money-gen] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
333.43 s
[really-safe-money-gen] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
333.43 s
[really-safe-money-gen]
333.43 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Account.hs:455:14-23
333.43 s
[really-safe-money-gen] @@ -452,7 +452,7 @@
333.43 s
[really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
333.43 s
[really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
333.43 s
[really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
333.43 s
[really-safe-money-gen] - if a >= zero
333.43 s
[really-safe-money-gen] + if not (a >= zero)
333.43 s
[really-safe-money-gen] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
333.43 s
[really-safe-money-gen] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
333.43 s
[really-safe-money-gen]
333.43 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Account.hs:455:11-136
333.44 s
[really-safe-money-gen] @@ -452,9 +452,9 @@
333.44 s
[really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
333.44 s
[really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
333.44 s
[really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
333.44 s
[really-safe-money-gen] - if a >= zero
333.44 s
[really-safe-money-gen] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
333.44 s
[really-safe-money-gen] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
333.44 s
[really-safe-money-gen] + if a >= zero
333.44 s
[really-safe-money-gen] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
333.44 s
[really-safe-money-gen] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
333.44 s
[really-safe-money-gen]
333.44 s
[really-safe-money-gen] type AccountDistribution = Amount.Distribution Account
333.44 s
[really-safe-money-gen]
333.44 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:447:7-136
333.44 s
[really-safe-money-gen] @@ -444,17 +444,17 @@
333.44 s
[really-safe-money-gen] distribute a f =
333.44 s
[really-safe-money-gen] let aa = abs a
333.44 s
[really-safe-money-gen] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
333.44 s
[really-safe-money-gen] - in case Amount.distribute aa af of
333.44 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
333.44 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
333.44 s
[really-safe-money-gen] - DistributedIntoEqualChunks numberOfChunks chunk ->
333.44 s
[really-safe-money-gen] - if a >= zero
333.44 s
[really-safe-money-gen] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
333.44 s
[really-safe-money-gen] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
333.44 s
[really-safe-money-gen] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
333.44 s
[really-safe-money-gen] - if a >= zero
333.44 s
[really-safe-money-gen] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
333.44 s
[really-safe-money-gen] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
333.44 s
[really-safe-money-gen] + in case Amount.distribute aa af of
333.44 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
333.44 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
333.44 s
[really-safe-money-gen] + DistributedIntoEqualChunks numberOfChunks chunk ->
333.44 s
[really-safe-money-gen] + if a >= zero
333.44 s
[really-safe-money-gen] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
333.44 s
[really-safe-money-gen] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
333.44 s
[really-safe-money-gen] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
333.44 s
[really-safe-money-gen] + if a >= zero
333.44 s
[really-safe-money-gen] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
333.44 s
[really-safe-money-gen] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
333.44 s
[really-safe-money-gen]
333.44 s
[really-safe-money-gen] type AccountDistribution = Amount.Distribution Account
333.44 s
[really-safe-money-gen]
333.44 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:447:7-136
333.44 s
[really-safe-money-gen] @@ -444,17 +444,17 @@
333.44 s
[really-safe-money-gen] distribute a f =
333.44 s
[really-safe-money-gen] let aa = abs a
333.44 s
[really-safe-money-gen] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
333.44 s
[really-safe-money-gen] - in case Amount.distribute aa af of
333.44 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
333.44 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
333.44 s
[really-safe-money-gen] - DistributedIntoEqualChunks numberOfChunks chunk ->
333.44 s
[really-safe-money-gen] - if a >= zero
333.44 s
[really-safe-money-gen] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
333.45 s
[really-safe-money-gen] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
333.45 s
[really-safe-money-gen] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
333.45 s
[really-safe-money-gen] - if a >= zero
333.45 s
[really-safe-money-gen] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
333.45 s
[really-safe-money-gen] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
333.45 s
[really-safe-money-gen] + in case Amount.distribute aa af of
333.45 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
333.45 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
333.45 s
[really-safe-money-gen] + DistributedIntoEqualChunks numberOfChunks chunk ->
333.45 s
[really-safe-money-gen] + if a >= zero
333.45 s
[really-safe-money-gen] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
333.45 s
[really-safe-money-gen] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
333.45 s
[really-safe-money-gen] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
333.45 s
[really-safe-money-gen] + if a >= zero
333.45 s
[really-safe-money-gen] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
333.45 s
[really-safe-money-gen] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
333.45 s
[really-safe-money-gen]
333.45 s
[really-safe-money-gen] type AccountDistribution = Amount.Distribution Account
333.45 s
[really-safe-money-gen]
333.45 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:522:19-35
333.45 s
[really-safe-money-gen] @@ -519,10 +519,10 @@
333.45 s
[really-safe-money-gen] let aa = abs account
333.45 s
[really-safe-money-gen] (amount, actualFraction) = Amount.fraction ro aa af
333.45 s
[really-safe-money-gen] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
333.45 s
[really-safe-money-gen] - func ma r = case compare account zero of
333.45 s
[really-safe-money-gen] - EQ -> (Just zero, r)
333.45 s
[really-safe-money-gen] - GT -> (Positive <$> ma, r)
333.45 s
[really-safe-money-gen] - LT -> (Negative <$> ma, r)
333.45 s
[really-safe-money-gen] + func ma r = case compare account zero of
333.45 s
[really-safe-money-gen] + EQ -> (Just zero, r)
333.45 s
[really-safe-money-gen] + GT -> (Positive <$> ma, r)
333.45 s
[really-safe-money-gen] + LT -> (Negative <$> ma, r)
333.45 s
[really-safe-money-gen] in func amount actualFraction
333.45 s
[really-safe-money-gen]
333.45 s
[really-safe-money-gen] -- | Compute the currency conversion rate between two accounts of money of
333.45 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:447:7-136
333.45 s
[really-safe-money-gen] @@ -444,17 +444,17 @@
333.45 s
[really-safe-money-gen] distribute a f =
333.45 s
[really-safe-money-gen] let aa = abs a
333.45 s
[really-safe-money-gen] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
333.45 s
[really-safe-money-gen] - in case Amount.distribute aa af of
333.45 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
333.45 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
333.45 s
[really-safe-money-gen] - DistributedIntoEqualChunks numberOfChunks chunk ->
333.45 s
[really-safe-money-gen] - if a >= zero
333.45 s
[really-safe-money-gen] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
333.45 s
[really-safe-money-gen] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
333.45 s
[really-safe-money-gen] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
333.45 s
[really-safe-money-gen] - if a >= zero
334.31 s
[really-safe-money-gen] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
334.31 s
[really-safe-money-gen] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
334.31 s
[really-safe-money-gen] + in case Amount.distribute aa af of
334.31 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
334.31 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
334.31 s
[really-safe-money-gen] + DistributedIntoEqualChunks numberOfChunks chunk ->
334.31 s
[really-safe-money-gen] + if a >= zero
334.31 s
[really-safe-money-gen] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
334.31 s
[really-safe-money-gen] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
334.31 s
[really-safe-money-gen] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
334.31 s
[really-safe-money-gen] + if a >= zero
334.31 s
[really-safe-money-gen] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
334.31 s
[really-safe-money-gen] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
334.31 s
[really-safe-money-gen]
334.31 s
[really-safe-money-gen] type AccountDistribution = Amount.Distribution Account
334.31 s
[really-safe-money-gen]
334.31 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:522:19-35
334.31 s
[really-safe-money-gen] @@ -519,10 +519,10 @@
334.31 s
[really-safe-money-gen] let aa = abs account
334.31 s
[really-safe-money-gen] (amount, actualFraction) = Amount.fraction ro aa af
334.31 s
[really-safe-money-gen] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
334.31 s
[really-safe-money-gen] - func ma r = case compare account zero of
334.31 s
[really-safe-money-gen] - EQ -> (Just zero, r)
334.31 s
[really-safe-money-gen] - GT -> (Positive <$> ma, r)
334.31 s
[really-safe-money-gen] - LT -> (Negative <$> ma, r)
334.31 s
[really-safe-money-gen] + func ma r = case compare account zero of
334.31 s
[really-safe-money-gen] + EQ -> (Just zero, r)
334.31 s
[really-safe-money-gen] + GT -> (Positive <$> ma, r)
334.31 s
[really-safe-money-gen] + LT -> (Negative <$> ma, r)
334.31 s
[really-safe-money-gen] in func amount actualFraction
334.31 s
[really-safe-money-gen]
334.31 s
[really-safe-money-gen] -- | Compute the currency conversion rate between two accounts of money of
334.31 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Account.hs:495:17-18
334.31 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
334.31 s
[really-safe-money-gen] fraction rounding account f =
334.31 s
[really-safe-money-gen] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
334.31 s
[really-safe-money-gen] ro =
334.31 s
[really-safe-money-gen] - if f >= 0
334.31 s
[really-safe-money-gen] + if f >= 1
334.31 s
[really-safe-money-gen] then rounding
334.32 s
[really-safe-money-gen] else case rounding of
334.32 s
[really-safe-money-gen] RoundUp -> RoundDown
334.32 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:451:14-23
334.32 s
[really-safe-money-gen] @@ -448,7 +448,7 @@
334.32 s
[really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
334.32 s
[really-safe-money-gen] DistributedZero -> DistributedZero
334.32 s
[really-safe-money-gen] DistributedIntoEqualChunks numberOfChunks chunk ->
334.32 s
[really-safe-money-gen] - if a >= zero
334.32 s
[really-safe-money-gen] + if False
334.32 s
[really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
334.32 s
[really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
334.32 s
[really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
334.32 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:421:11-29
334.32 s
[really-safe-money-gen] @@ -418,13 +418,13 @@
334.32 s
[really-safe-money-gen] multiply :: Int32 -> Account -> Maybe Account
334.32 s
[really-safe-money-gen] multiply factor account =
334.32 s
[really-safe-money-gen] let af = (fromIntegral :: Int32 -> Word32) ((Prelude.abs :: Int32 -> Int32) factor)
334.32 s
[really-safe-money-gen] - f = case (compare factor 0, compare account zero) of
334.32 s
[really-safe-money-gen] - (EQ, _) -> const zero
334.32 s
[really-safe-money-gen] - (_, EQ) -> const zero
334.32 s
[really-safe-money-gen] - (GT, GT) -> Positive
334.32 s
[really-safe-money-gen] - (GT, LT) -> Negative
334.32 s
[really-safe-money-gen] - (LT, GT) -> Negative
334.32 s
[really-safe-money-gen] - (LT, LT) -> Positive
334.32 s
[really-safe-money-gen] + f = case (compare factor 0, compare account zero) of
334.32 s
[really-safe-money-gen] + (EQ, _) -> const zero
334.32 s
[really-safe-money-gen] + (_, EQ) -> const zero
334.32 s
[really-safe-money-gen] + (GT, GT) -> Positive
334.32 s
[really-safe-money-gen] + (GT, LT) -> Negative
334.32 s
[really-safe-money-gen] + (LT, GT) -> Negative
334.32 s
[really-safe-money-gen] + (LT, LT) -> Positive
334.32 s
[really-safe-money-gen] in f <$> Amount.multiply af (abs account)
334.32 s
[really-safe-money-gen]
334.32 s
[really-safe-money-gen] -- | Distribute an amount of money into chunks that are as evenly distributed as possible.
334.32 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:522:19-35
334.32 s
[really-safe-money-gen] @@ -519,10 +519,10 @@
334.32 s
[really-safe-money-gen] let aa = abs account
334.32 s
[really-safe-money-gen] (amount, actualFraction) = Amount.fraction ro aa af
334.32 s
[really-safe-money-gen] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
334.32 s
[really-safe-money-gen] - func ma r = case compare account zero of
334.32 s
[really-safe-money-gen] - EQ -> (Just zero, r)
334.32 s
[really-safe-money-gen] - GT -> (Positive <$> ma, r)
334.32 s
[really-safe-money-gen] - LT -> (Negative <$> ma, r)
334.32 s
[really-safe-money-gen] + func ma r = case compare account zero of
334.32 s
[really-safe-money-gen] + EQ -> (Just zero, r)
334.32 s
[really-safe-money-gen] + GT -> (Positive <$> ma, r)
334.32 s
[really-safe-money-gen] + LT -> (Negative <$> ma, r)
334.32 s
[really-safe-money-gen] in func amount actualFraction
334.32 s
[really-safe-money-gen]
334.32 s
[really-safe-money-gen] -- | Compute the currency conversion rate between two accounts of money of
334.32 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:495:12-18
334.32 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
334.32 s
[really-safe-money-gen] fraction rounding account f =
334.32 s
[really-safe-money-gen] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
334.32 s
[really-safe-money-gen] ro =
334.32 s
[really-safe-money-gen] - if f >= 0
334.32 s
[really-safe-money-gen] + if True
334.32 s
[really-safe-money-gen] then rounding
334.32 s
[really-safe-money-gen] else case rounding of
334.32 s
[really-safe-money-gen] RoundUp -> RoundDown
334.32 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:495:12-18
334.32 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
334.32 s
[really-safe-money-gen] fraction rounding account f =
334.32 s
[really-safe-money-gen] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
334.32 s
[really-safe-money-gen] ro =
334.32 s
[really-safe-money-gen] - if f >= 0
334.32 s
[really-safe-money-gen] + if False
334.32 s
[really-safe-money-gen] then rounding
334.32 s
[really-safe-money-gen] else case rounding of
334.32 s
[really-safe-money-gen] RoundUp -> RoundDown
334.32 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:497:16-41
334.32 s
[really-safe-money-gen] @@ -494,10 +494,10 @@
334.32 s
[really-safe-money-gen] ro =
334.32 s
[really-safe-money-gen] if f >= 0
334.32 s
[really-safe-money-gen] then rounding
334.32 s
[really-safe-money-gen] - else case rounding of
334.32 s
[really-safe-money-gen] - RoundUp -> RoundDown
334.33 s
[really-safe-money-gen] - RoundDown -> RoundUp
334.33 s
[really-safe-money-gen] - RoundNearest -> RoundNearest
334.33 s
[really-safe-money-gen] + else case rounding of
334.33 s
[really-safe-money-gen] + RoundUp -> RoundDown
334.33 s
[really-safe-money-gen] + RoundDown -> RoundUp
334.33 s
[really-safe-money-gen] + RoundNearest -> RoundNearest
334.33 s
[really-safe-money-gen] (ma, ar) = fractionRatio ro account af
334.33 s
[really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
334.33 s
[really-safe-money-gen] in if f >= 0
334.33 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:447:7-136
334.33 s
[really-safe-money-gen] @@ -444,17 +444,17 @@
334.33 s
[really-safe-money-gen] distribute a f =
334.33 s
[really-safe-money-gen] let aa = abs a
334.33 s
[really-safe-money-gen] af = (fromIntegral :: Word16 -> Word32) (Prelude.abs f)
334.33 s
[really-safe-money-gen] - in case Amount.distribute aa af of
334.33 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
334.33 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
334.33 s
[really-safe-money-gen] - DistributedIntoEqualChunks numberOfChunks chunk ->
334.33 s
[really-safe-money-gen] - if a >= zero
334.33 s
[really-safe-money-gen] - then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
334.33 s
[really-safe-money-gen] - else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
334.33 s
[really-safe-money-gen] - DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
334.33 s
[really-safe-money-gen] - if a >= zero
334.33 s
[really-safe-money-gen] - then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
334.33 s
[really-safe-money-gen] - else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
334.33 s
[really-safe-money-gen] + in case Amount.distribute aa af of
334.33 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
334.33 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
334.33 s
[really-safe-money-gen] + DistributedIntoEqualChunks numberOfChunks chunk ->
334.33 s
[really-safe-money-gen] + if a >= zero
334.33 s
[really-safe-money-gen] + then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
334.33 s
[really-safe-money-gen] + else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
334.33 s
[really-safe-money-gen] + DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
334.33 s
[really-safe-money-gen] + if a >= zero
334.33 s
[really-safe-money-gen] + then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
334.33 s
[really-safe-money-gen] + else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
334.33 s
[really-safe-money-gen]
334.33 s
[really-safe-money-gen] type AccountDistribution = Amount.Distribution Account
334.33 s
[really-safe-money-gen]
334.33 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:497:16-41
334.33 s
[really-safe-money-gen] @@ -494,10 +494,10 @@
334.33 s
[really-safe-money-gen] ro =
334.33 s
[really-safe-money-gen] if f >= 0
334.33 s
[really-safe-money-gen] then rounding
334.33 s
[really-safe-money-gen] - else case rounding of
334.33 s
[really-safe-money-gen] - RoundUp -> RoundDown
334.33 s
[really-safe-money-gen] - RoundDown -> RoundUp
334.33 s
[really-safe-money-gen] - RoundNearest -> RoundNearest
334.33 s
[really-safe-money-gen] + else case rounding of
334.33 s
[really-safe-money-gen] + RoundUp -> RoundDown
334.33 s
[really-safe-money-gen] + RoundDown -> RoundUp
334.33 s
[really-safe-money-gen] + RoundNearest -> RoundNearest
334.33 s
[really-safe-money-gen] (ma, ar) = fractionRatio ro account af
334.33 s
[really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
334.33 s
[really-safe-money-gen] in if f >= 0
334.33 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Account.hs:495:9-41
334.33 s
[really-safe-money-gen] @@ -492,12 +492,12 @@
334.33 s
[really-safe-money-gen] fraction rounding account f =
334.33 s
[really-safe-money-gen] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
334.33 s
[really-safe-money-gen] ro =
334.33 s
[really-safe-money-gen] - if f >= 0
334.33 s
[really-safe-money-gen] - then rounding
334.33 s
[really-safe-money-gen] - else case rounding of
334.33 s
[really-safe-money-gen] - RoundUp -> RoundDown
334.33 s
[really-safe-money-gen] - RoundDown -> RoundUp
336.54 s
[really-safe-money-gen] - RoundNearest -> RoundNearest
336.54 s
[really-safe-money-gen] + if f >= 0
336.54 s
[really-safe-money-gen] + then rounding
336.64 s
[really-safe-money-gen] + else case rounding of
336.64 s
[really-safe-money-gen] + RoundUp -> RoundDown
336.64 s
[really-safe-money-gen] + RoundDown -> RoundUp
336.64 s
[really-safe-money-gen] + RoundNearest -> RoundNearest
336.64 s
[really-safe-money-gen] (ma, ar) = fractionRatio ro account af
336.64 s
[really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
336.64 s
[really-safe-money-gen] in if f >= 0
336.64 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Account.hs:503:15-16
336.64 s
[really-safe-money-gen] @@ -500,7 +500,7 @@
336.64 s
[really-safe-money-gen] RoundNearest -> RoundNearest
336.64 s
[really-safe-money-gen] (ma, ar) = fractionRatio ro account af
336.64 s
[really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
336.64 s
[really-safe-money-gen] - in if f >= 0
336.64 s
[really-safe-money-gen] + in if f >= 1
336.64 s
[really-safe-money-gen] then (ma, r)
336.64 s
[really-safe-money-gen] else (negate <$> ma, -r)
336.64 s
[really-safe-money-gen]
336.65 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:503:10-16
336.65 s
[really-safe-money-gen] @@ -500,7 +500,7 @@
336.65 s
[really-safe-money-gen] RoundNearest -> RoundNearest
336.65 s
[really-safe-money-gen] (ma, ar) = fractionRatio ro account af
336.65 s
[really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
336.65 s
[really-safe-money-gen] - in if f >= 0
336.65 s
[really-safe-money-gen] + in if False
336.65 s
[really-safe-money-gen] then (ma, r)
336.65 s
[really-safe-money-gen] else (negate <$> ma, -r)
336.65 s
[really-safe-money-gen]
336.65 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Account.hs:503:10-16
336.65 s
[really-safe-money-gen] @@ -500,7 +500,7 @@
336.65 s
[really-safe-money-gen] RoundNearest -> RoundNearest
336.65 s
[really-safe-money-gen] (ma, ar) = fractionRatio ro account af
336.65 s
[really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
336.65 s
[really-safe-money-gen] - in if f >= 0
336.65 s
[really-safe-money-gen] + in if not (f >= 0)
336.65 s
[really-safe-money-gen] then (ma, r)
336.65 s
[really-safe-money-gen] else (negate <$> ma, -r)
336.65 s
[really-safe-money-gen]
336.65 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Account.hs:503:7-33
336.65 s
[really-safe-money-gen] @@ -500,9 +500,9 @@
336.65 s
[really-safe-money-gen] RoundNearest -> RoundNearest
336.65 s
[really-safe-money-gen] (ma, ar) = fractionRatio ro account af
336.65 s
[really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
336.65 s
[really-safe-money-gen] - in if f >= 0
336.65 s
[really-safe-money-gen] - then (ma, r)
336.65 s
[really-safe-money-gen] - else (negate <$> ma, -r)
336.65 s
[really-safe-money-gen] + in if f >= 0
336.65 s
[really-safe-money-gen] + then (ma, r)
336.65 s
[really-safe-money-gen] + else (negate <$> ma, -r)
336.65 s
[really-safe-money-gen]
336.65 s
[really-safe-money-gen] -- | Fractional multiplication with a positive fraction, see 'Amount.fraction' and 'Account.fraction'.
336.65 s
[really-safe-money-gen] --
336.65 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Account.hs:233:19-20
336.65 s
[really-safe-money-gen] @@ -230,7 +230,7 @@
336.65 s
[really-safe-money-gen] fromRational :: QuantisationFactor -> Rational -> Maybe Account
336.65 s
[really-safe-money-gen] fromRational quantisationFactor r =
336.65 s
[really-safe-money-gen] let r' = Prelude.abs r
336.65 s
[really-safe-money-gen] - f = if r >= 0 then Positive else Negative
336.65 s
[really-safe-money-gen] + f = if r >= 1 then Positive else Negative
336.65 s
[really-safe-money-gen] in f <$> Amount.fromRational quantisationFactor r'
336.65 s
[really-safe-money-gen]
336.65 s
[really-safe-money-gen] -- | Turn a 'Rational' into an amount of money.
336.65 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:233:14-20
336.65 s
[really-safe-money-gen] @@ -230,7 +230,7 @@
336.65 s
[really-safe-money-gen] fromRational :: QuantisationFactor -> Rational -> Maybe Account
336.65 s
[really-safe-money-gen] fromRational quantisationFactor r =
336.65 s
[really-safe-money-gen] let r' = Prelude.abs r
336.65 s
[really-safe-money-gen] - f = if r >= 0 then Positive else Negative
336.65 s
[really-safe-money-gen] + f = if True then Positive else Negative
336.65 s
[really-safe-money-gen] in f <$> Amount.fromRational quantisationFactor r'
336.65 s
[really-safe-money-gen]
336.65 s
[really-safe-money-gen] -- | Turn a 'Rational' into an amount of money.
336.65 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Account.hs:495:12-18
336.65 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
336.65 s
[really-safe-money-gen] fraction rounding account f =
336.65 s
[really-safe-money-gen] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
336.65 s
[really-safe-money-gen] ro =
336.66 s
[really-safe-money-gen] - if f >= 0
336.66 s
[really-safe-money-gen] + if not (f >= 0)
336.66 s
[really-safe-money-gen] then rounding
336.66 s
[really-safe-money-gen] else case rounding of
336.66 s
[really-safe-money-gen] RoundUp -> RoundDown
336.66 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Account.hs:233:14-20
336.66 s
[really-safe-money-gen] @@ -230,7 +230,7 @@
336.66 s
[really-safe-money-gen] fromRational :: QuantisationFactor -> Rational -> Maybe Account
336.66 s
[really-safe-money-gen] fromRational quantisationFactor r =
336.66 s
[really-safe-money-gen] let r' = Prelude.abs r
336.66 s
[really-safe-money-gen] - f = if r >= 0 then Positive else Negative
336.66 s
[really-safe-money-gen] + f = if not (r >= 0) then Positive else Negative
336.66 s
[really-safe-money-gen] in f <$> Amount.fromRational quantisationFactor r'
336.66 s
[really-safe-money-gen]
336.66 s
[really-safe-money-gen] -- | Turn a 'Rational' into an amount of money.
336.66 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:497:16-41
336.66 s
[really-safe-money-gen] @@ -494,10 +494,10 @@
336.66 s
[really-safe-money-gen] ro =
336.66 s
[really-safe-money-gen] if f >= 0
336.66 s
[really-safe-money-gen] then rounding
336.66 s
[really-safe-money-gen] - else case rounding of
336.66 s
[really-safe-money-gen] - RoundUp -> RoundDown
336.66 s
[really-safe-money-gen] - RoundDown -> RoundUp
336.66 s
[really-safe-money-gen] - RoundNearest -> RoundNearest
336.66 s
[really-safe-money-gen] + else case rounding of
336.66 s
[really-safe-money-gen] + RoundUp -> RoundDown
336.66 s
[really-safe-money-gen] + RoundDown -> RoundUp
336.66 s
[really-safe-money-gen] + RoundNearest -> RoundNearest
336.66 s
[really-safe-money-gen] (ma, ar) = fractionRatio ro account af
336.66 s
[really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
336.66 s
[really-safe-money-gen] in if f >= 0
336.66 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:211:11-37
336.66 s
[really-safe-money-gen] @@ -208,9 +208,9 @@
336.66 s
[really-safe-money-gen] -- (-3) % 20
336.66 s
[really-safe-money-gen] toRational :: QuantisationFactor -> Account -> Rational
336.66 s
[really-safe-money-gen] toRational quantisationFactor account =
336.66 s
[really-safe-money-gen] - let f = case account of
336.66 s
[really-safe-money-gen] - Positive _ -> id
336.66 s
[really-safe-money-gen] - Negative _ -> Prelude.negate
336.66 s
[really-safe-money-gen] + let f = case account of
336.66 s
[really-safe-money-gen] + Positive _ -> id
336.66 s
[really-safe-money-gen] + Negative _ -> Prelude.negate
336.66 s
[really-safe-money-gen] in f $ Amount.toRational quantisationFactor (abs account)
336.66 s
[really-safe-money-gen]
336.66 s
[really-safe-money-gen] -- | Turn a 'Rational' into an amount of money.
336.66 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Account.hs:197:19-20
336.66 s
[really-safe-money-gen] @@ -194,7 +194,7 @@
336.66 s
[really-safe-money-gen] fromDouble :: QuantisationFactor -> Double -> Maybe Account
336.66 s
[really-safe-money-gen] fromDouble quantisationFactor d =
336.66 s
[really-safe-money-gen] let d' = Prelude.abs d
336.66 s
[really-safe-money-gen] - f = if d >= 0 then Positive else Negative
336.66 s
[really-safe-money-gen] + f = if d >= 1 then Positive else Negative
336.66 s
[really-safe-money-gen] in f <$> Amount.fromDouble quantisationFactor d'
336.66 s
[really-safe-money-gen]
336.66 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Rational'.
336.66 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Account.hs:197:14-20
336.66 s
[really-safe-money-gen] @@ -194,7 +194,7 @@
336.66 s
[really-safe-money-gen] fromDouble :: QuantisationFactor -> Double -> Maybe Account
336.66 s
[really-safe-money-gen] fromDouble quantisationFactor d =
336.66 s
[really-safe-money-gen] let d' = Prelude.abs d
336.66 s
[really-safe-money-gen] - f = if d >= 0 then Positive else Negative
336.66 s
[really-safe-money-gen] + f = if not (d >= 0) then Positive else Negative
336.66 s
[really-safe-money-gen] in f <$> Amount.fromDouble quantisationFactor d'
336.66 s
[really-safe-money-gen]
336.66 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Rational'.
336.66 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:233:14-20
336.66 s
[really-safe-money-gen] @@ -230,7 +230,7 @@
336.66 s
[really-safe-money-gen] fromRational :: QuantisationFactor -> Rational -> Maybe Account
336.66 s
[really-safe-money-gen] fromRational quantisationFactor r =
336.66 s
[really-safe-money-gen] let r' = Prelude.abs r
336.66 s
[really-safe-money-gen] - f = if r >= 0 then Positive else Negative
336.66 s
[really-safe-money-gen] + f = if False then Positive else Negative
336.66 s
[really-safe-money-gen] in f <$> Amount.fromRational quantisationFactor r'
336.66 s
[really-safe-money-gen]
336.66 s
[really-safe-money-gen] -- | Turn a 'Rational' into an amount of money.
336.66 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:171:11-37
336.66 s
[really-safe-money-gen] @@ -168,9 +168,9 @@
336.66 s
[really-safe-money-gen] -- -0.25
336.66 s
[really-safe-money-gen] toDouble :: QuantisationFactor -> Account -> Double
336.66 s
[really-safe-money-gen] toDouble quantisationFactor account =
336.66 s
[really-safe-money-gen] - let f = case account of
336.66 s
[really-safe-money-gen] - Positive _ -> id
336.66 s
[really-safe-money-gen] - Negative _ -> Prelude.negate
336.66 s
[really-safe-money-gen] + let f = case account of
336.66 s
[really-safe-money-gen] + Positive _ -> id
336.66 s
[really-safe-money-gen] + Negative _ -> Prelude.negate
336.66 s
[really-safe-money-gen] in f $ Amount.toDouble quantisationFactor (abs account)
336.66 s
[really-safe-money-gen]
336.66 s
[really-safe-money-gen] -- | Turn a 'Double' into an amount of money.
336.66 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:155:11-37
336.66 s
[really-safe-money-gen] @@ -152,9 +152,9 @@
336.66 s
[really-safe-money-gen] -- We return 'Integer' because the result does not fit into a 'Word64'
336.66 s
[really-safe-money-gen] toMinimalQuantisations :: Account -> Integer
336.66 s
[really-safe-money-gen] toMinimalQuantisations account =
336.66 s
[really-safe-money-gen] - let f = case account of
336.66 s
[really-safe-money-gen] - Positive _ -> id
336.66 s
[really-safe-money-gen] - Negative _ -> Prelude.negate
336.66 s
[really-safe-money-gen] + let f = case account of
336.66 s
[really-safe-money-gen] + Positive _ -> id
336.66 s
[really-safe-money-gen] + Negative _ -> Prelude.negate
336.66 s
[really-safe-money-gen] in f $ (fromIntegral :: Word64 -> Integer) $ Amount.toMinimalQuantisations (abs account)
336.66 s
[really-safe-money-gen]
336.66 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Double'.
336.66 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:155:11-37
336.66 s
[really-safe-money-gen] @@ -152,9 +152,9 @@
336.66 s
[really-safe-money-gen] -- We return 'Integer' because the result does not fit into a 'Word64'
336.67 s
[really-safe-money-gen] toMinimalQuantisations :: Account -> Integer
336.67 s
[really-safe-money-gen] toMinimalQuantisations account =
336.67 s
[really-safe-money-gen] - let f = case account of
336.67 s
[really-safe-money-gen] - Positive _ -> id
336.67 s
[really-safe-money-gen] - Negative _ -> Prelude.negate
336.67 s
[really-safe-money-gen] + let f = case account of
336.67 s
[really-safe-money-gen] + Positive _ -> id
336.67 s
[really-safe-money-gen] + Negative _ -> Prelude.negate
336.67 s
[really-safe-money-gen] in f $ (fromIntegral :: Word64 -> Integer) $ Amount.toMinimalQuantisations (abs account)
336.67 s
[really-safe-money-gen]
336.67 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Double'.
336.67 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:171:11-37
336.67 s
[really-safe-money-gen] @@ -168,9 +168,9 @@
336.67 s
[really-safe-money-gen] -- -0.25
336.67 s
[really-safe-money-gen] toDouble :: QuantisationFactor -> Account -> Double
336.67 s
[really-safe-money-gen] toDouble quantisationFactor account =
336.67 s
[really-safe-money-gen] - let f = case account of
336.67 s
[really-safe-money-gen] - Positive _ -> id
336.67 s
[really-safe-money-gen] - Negative _ -> Prelude.negate
336.67 s
[really-safe-money-gen] + let f = case account of
336.67 s
[really-safe-money-gen] + Positive _ -> id
336.67 s
[really-safe-money-gen] + Negative _ -> Prelude.negate
336.67 s
[really-safe-money-gen] in f $ Amount.toDouble quantisationFactor (abs account)
336.67 s
[really-safe-money-gen]
336.67 s
[really-safe-money-gen] -- | Turn a 'Double' into an amount of money.
336.67 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:123:10-23
336.67 s
[really-safe-money-gen] @@ -120,7 +120,7 @@
336.67 s
[really-safe-money-gen] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
336.67 s
[really-safe-money-gen] a :: Integer
336.67 s
[really-safe-money-gen] a = (Prelude.abs :: Integer -> Integer) i
336.67 s
[really-safe-money-gen] - in if a > maxBoundI
336.67 s
[really-safe-money-gen] + in if True
336.67 s
[really-safe-money-gen] then Nothing
336.67 s
[really-safe-money-gen] else
336.67 s
[really-safe-money-gen] let w :: Word64
336.67 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:123:10-23
336.67 s
[really-safe-money-gen] @@ -120,7 +120,7 @@
336.67 s
[really-safe-money-gen] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
336.67 s
[really-safe-money-gen] a :: Integer
337.72 s
[really-safe-money-gen] a = (Prelude.abs :: Integer -> Integer) i
337.72 s
[really-safe-money-gen] - in if a > maxBoundI
337.72 s
[really-safe-money-gen] + in if False
337.72 s
[really-safe-money-gen] then Nothing
337.72 s
[really-safe-money-gen] else
337.72 s
[really-safe-money-gen] let w :: Word64
337.72 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Account.hs:197:11-48
337.72 s
[really-safe-money-gen] @@ -194,7 +194,7 @@
337.72 s
[really-safe-money-gen] fromDouble :: QuantisationFactor -> Double -> Maybe Account
337.72 s
[really-safe-money-gen] fromDouble quantisationFactor d =
337.72 s
[really-safe-money-gen] let d' = Prelude.abs d
337.72 s
[really-safe-money-gen] - f = if d >= 0 then Positive else Negative
337.72 s
[really-safe-money-gen] + f = if d >= 0 then Positive else Negative
337.72 s
[really-safe-money-gen] in f <$> Amount.fromDouble quantisationFactor d'
337.72 s
[really-safe-money-gen]
337.72 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Rational'.
337.72 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:197:14-20
337.72 s
[really-safe-money-gen] @@ -194,7 +194,7 @@
337.72 s
[really-safe-money-gen] fromDouble :: QuantisationFactor -> Double -> Maybe Account
337.72 s
[really-safe-money-gen] fromDouble quantisationFactor d =
337.72 s
[really-safe-money-gen] let d' = Prelude.abs d
337.72 s
[really-safe-money-gen] - f = if d >= 0 then Positive else Negative
337.72 s
[really-safe-money-gen] + f = if True then Positive else Negative
337.72 s
[really-safe-money-gen] in f <$> Amount.fromDouble quantisationFactor d'
337.72 s
[really-safe-money-gen]
337.72 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Rational'.
337.72 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Account.hs:123:10-23
337.72 s
[really-safe-money-gen] @@ -120,7 +120,7 @@
337.72 s
[really-safe-money-gen] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
337.72 s
[really-safe-money-gen] a :: Integer
337.72 s
[really-safe-money-gen] a = (Prelude.abs :: Integer -> Integer) i
337.72 s
[really-safe-money-gen] - in if a > maxBoundI
337.72 s
[really-safe-money-gen] + in if not (a > maxBoundI)
337.72 s
[really-safe-money-gen] then Nothing
337.72 s
[really-safe-money-gen] else
337.72 s
[really-safe-money-gen] let w :: Word64
337.72 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Account.hs:233:11-48
337.72 s
[really-safe-money-gen] @@ -230,7 +230,7 @@
337.72 s
[really-safe-money-gen] fromRational :: QuantisationFactor -> Rational -> Maybe Account
337.72 s
[really-safe-money-gen] fromRational quantisationFactor r =
337.72 s
[really-safe-money-gen] let r' = Prelude.abs r
337.72 s
[really-safe-money-gen] - f = if r >= 0 then Positive else Negative
337.72 s
[really-safe-money-gen] + f = if r >= 0 then Positive else Negative
337.72 s
[really-safe-money-gen] in f <$> Amount.fromRational quantisationFactor r'
337.72 s
[really-safe-money-gen]
337.72 s
[really-safe-money-gen] -- | Turn a 'Rational' into an amount of money.
337.72 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Account.hs:131:25-26
337.72 s
[really-safe-money-gen] @@ -128,7 +128,7 @@
337.72 s
[really-safe-money-gen] amount :: Amount
337.72 s
[really-safe-money-gen] amount = Amount.fromMinimalQuantisations w
337.72 s
[really-safe-money-gen] in Just $
337.72 s
[really-safe-money-gen] - if i >= 0
337.72 s
[really-safe-money-gen] + if i >= 1
337.72 s
[really-safe-money-gen] then Positive amount
337.73 s
[really-safe-money-gen] else Negative amount
337.73 s
[really-safe-money-gen]
337.73 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:197:14-20
337.73 s
[really-safe-money-gen] @@ -194,7 +194,7 @@
337.73 s
[really-safe-money-gen] fromDouble :: QuantisationFactor -> Double -> Maybe Account
337.73 s
[really-safe-money-gen] fromDouble quantisationFactor d =
337.73 s
[really-safe-money-gen] let d' = Prelude.abs d
337.73 s
[really-safe-money-gen] - f = if d >= 0 then Positive else Negative
337.73 s
[really-safe-money-gen] + f = if False then Positive else Negative
337.73 s
[really-safe-money-gen] in f <$> Amount.fromDouble quantisationFactor d'
337.73 s
[really-safe-money-gen]
337.73 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Rational'.
337.73 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:131:20-26
337.73 s
[really-safe-money-gen] @@ -128,7 +128,7 @@
337.73 s
[really-safe-money-gen] amount :: Amount
337.73 s
[really-safe-money-gen] amount = Amount.fromMinimalQuantisations w
337.73 s
[really-safe-money-gen] in Just $
337.73 s
[really-safe-money-gen] - if i >= 0
337.73 s
[really-safe-money-gen] + if True
337.73 s
[really-safe-money-gen] then Positive amount
337.73 s
[really-safe-money-gen] else Negative amount
337.73 s
[really-safe-money-gen]
337.73 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:131:20-26
337.73 s
[really-safe-money-gen] @@ -128,7 +128,7 @@
337.73 s
[really-safe-money-gen] amount :: Amount
337.73 s
[really-safe-money-gen] amount = Amount.fromMinimalQuantisations w
337.73 s
[really-safe-money-gen] in Just $
337.73 s
[really-safe-money-gen] - if i >= 0
337.73 s
[really-safe-money-gen] + if False
337.73 s
[really-safe-money-gen] then Positive amount
337.73 s
[really-safe-money-gen] else Negative amount
337.73 s
[really-safe-money-gen]
337.73 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Account.hs:131:20-26
337.73 s
[really-safe-money-gen] @@ -128,7 +128,7 @@
337.73 s
[really-safe-money-gen] amount :: Amount
337.73 s
[really-safe-money-gen] amount = Amount.fromMinimalQuantisations w
337.73 s
[really-safe-money-gen] in Just $
337.73 s
[really-safe-money-gen] - if i >= 0
337.73 s
[really-safe-money-gen] + if not (i >= 0)
337.73 s
[really-safe-money-gen] then Positive amount
337.73 s
[really-safe-money-gen] else Negative amount
337.73 s
[really-safe-money-gen]
337.73 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Account.hs:131:17-39
337.73 s
[really-safe-money-gen] @@ -128,9 +128,9 @@
337.73 s
[really-safe-money-gen] amount :: Amount
337.73 s
[really-safe-money-gen] amount = Amount.fromMinimalQuantisations w
337.73 s
[really-safe-money-gen] in Just $
337.73 s
[really-safe-money-gen] - if i >= 0
337.73 s
[really-safe-money-gen] - then Positive amount
337.73 s
[really-safe-money-gen] - else Negative amount
337.73 s
[really-safe-money-gen] + if i >= 0
337.73 s
[really-safe-money-gen] + then Positive amount
337.73 s
[really-safe-money-gen] + else Negative amount
337.73 s
[really-safe-money-gen]
337.73 s
[really-safe-money-gen] -- | Turn an amount into a positive account
337.73 s
[really-safe-money-gen] --
337.73 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account.hs:211:11-37
337.73 s
[really-safe-money-gen] @@ -208,9 +208,9 @@
337.73 s
[really-safe-money-gen] -- (-3) % 20
337.73 s
[really-safe-money-gen] toRational :: QuantisationFactor -> Account -> Rational
337.73 s
[really-safe-money-gen] toRational quantisationFactor account =
337.73 s
[really-safe-money-gen] - let f = case account of
337.73 s
[really-safe-money-gen] - Positive _ -> id
337.73 s
[really-safe-money-gen] - Negative _ -> Prelude.negate
337.73 s
[really-safe-money-gen] + let f = case account of
337.73 s
[really-safe-money-gen] + Positive _ -> id
337.73 s
[really-safe-money-gen] + Negative _ -> Prelude.negate
337.73 s
[really-safe-money-gen] in f $ Amount.toRational quantisationFactor (abs account)
337.73 s
[really-safe-money-gen]
337.73 s
[really-safe-money-gen] -- | Turn a 'Rational' into an amount of money.
337.73 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Account.hs:123:7-39
337.73 s
[really-safe-money-gen] @@ -120,17 +120,17 @@
337.73 s
[really-safe-money-gen] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
337.73 s
[really-safe-money-gen] a :: Integer
337.73 s
[really-safe-money-gen] a = (Prelude.abs :: Integer -> Integer) i
337.73 s
[really-safe-money-gen] - in if a > maxBoundI
337.73 s
[really-safe-money-gen] - then Nothing
337.73 s
[really-safe-money-gen] - else
337.73 s
[really-safe-money-gen] - let w :: Word64
337.73 s
[really-safe-money-gen] - w = (fromIntegral :: Integer -> Word64) a
337.73 s
[really-safe-money-gen] - amount :: Amount
337.73 s
[really-safe-money-gen] - amount = Amount.fromMinimalQuantisations w
337.73 s
[really-safe-money-gen] - in Just $
337.73 s
[really-safe-money-gen] - if i >= 0
337.73 s
[really-safe-money-gen] - then Positive amount
337.73 s
[really-safe-money-gen] - else Negative amount
337.73 s
[really-safe-money-gen] + in if a > maxBoundI
337.73 s
[really-safe-money-gen] + then Nothing
337.73 s
[really-safe-money-gen] + else
337.73 s
[really-safe-money-gen] + let w :: Word64
337.73 s
[really-safe-money-gen] + w = (fromIntegral :: Integer -> Word64) a
337.73 s
[really-safe-money-gen] + amount :: Amount
337.73 s
[really-safe-money-gen] + amount = Amount.fromMinimalQuantisations w
337.73 s
[really-safe-money-gen] + in Just $
337.73 s
[really-safe-money-gen] + if i >= 0
337.73 s
[really-safe-money-gen] + then Positive amount
337.73 s
[really-safe-money-gen] + else Negative amount
337.73 s
[really-safe-money-gen]
337.73 s
[really-safe-money-gen] -- | Turn an amount into a positive account
337.73 s
[really-safe-money-gen] --
337.73 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
337.73 s
[really-safe-money-gen] @@ -177,11 +177,11 @@
337.74 s
[really-safe-money-gen]
337.74 s
[really-safe-money-gen] -- | See 'Account.distribute'
337.74 s
[really-safe-money-gen] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
337.74 s
[really-safe-money-gen] -distribute (AccountOf a) w = case Account.distribute a w of
337.74 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
337.74 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
337.74 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
337.74 s
[really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
337.74 s
[really-safe-money-gen] +distribute (AccountOf a) w = case Account.distribute a w of
337.74 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
337.74 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
337.74 s
[really-safe-money-gen] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
337.74 s
[really-safe-money-gen] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
337.74 s
[really-safe-money-gen]
337.74 s
[really-safe-money-gen] -- | The result of 'distribute'
337.74 s
[really-safe-money-gen] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
337.74 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
337.74 s
[really-safe-money-gen] @@ -177,11 +177,11 @@
337.74 s
[really-safe-money-gen]
337.74 s
[really-safe-money-gen] -- | See 'Account.distribute'
337.74 s
[really-safe-money-gen] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
337.74 s
[really-safe-money-gen] -distribute (AccountOf a) w = case Account.distribute a w of
337.74 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
337.74 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
337.74 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
337.74 s
[really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
337.74 s
[really-safe-money-gen] +distribute (AccountOf a) w = case Account.distribute a w of
337.74 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
337.74 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
337.74 s
[really-safe-money-gen] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
337.74 s
[really-safe-money-gen] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
337.74 s
[really-safe-money-gen]
337.74 s
[really-safe-money-gen] -- | The result of 'distribute'
337.74 s
[really-safe-money-gen] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
337.74 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Account.hs:503:10-16
337.74 s
[really-safe-money-gen] @@ -500,7 +500,7 @@
337.74 s
[really-safe-money-gen] RoundNearest -> RoundNearest
337.74 s
[really-safe-money-gen] (ma, ar) = fractionRatio ro account af
337.74 s
[really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
337.74 s
[really-safe-money-gen] - in if f >= 0
337.74 s
[really-safe-money-gen] + in if True
337.74 s
[really-safe-money-gen] then (ma, r)
337.74 s
[really-safe-money-gen] else (negate <$> ma, -r)
337.74 s
[really-safe-money-gen]
337.74 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
337.74 s
[really-safe-money-gen] @@ -177,11 +177,11 @@
337.74 s
[really-safe-money-gen]
337.74 s
[really-safe-money-gen] -- | See 'Account.distribute'
337.74 s
[really-safe-money-gen] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
337.74 s
[really-safe-money-gen] -distribute (AccountOf a) w = case Account.distribute a w of
337.74 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
337.74 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
337.74 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
338.62 s
[really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
338.62 s
[really-safe-money-gen] +distribute (AccountOf a) w = case Account.distribute a w of
338.62 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.62 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
338.62 s
[really-safe-money-gen] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
338.62 s
[really-safe-money-gen] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
338.62 s
[really-safe-money-gen]
338.63 s
[really-safe-money-gen] -- | The result of 'distribute'
338.63 s
[really-safe-money-gen] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
338.63 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
338.63 s
[really-safe-money-gen] @@ -212,11 +212,11 @@
338.63 s
[really-safe-money-gen]
338.63 s
[really-safe-money-gen] -- | See 'Amount.distribute'
338.63 s
[really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
338.63 s
[really-safe-money-gen] -distribute (AmountOf a) f = case Amount.distribute a f of
338.63 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.63 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
338.63 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
338.63 s
[really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
338.63 s
[really-safe-money-gen] +distribute (AmountOf a) f = case Amount.distribute a f of
338.63 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.63 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
338.63 s
[really-safe-money-gen] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
338.63 s
[really-safe-money-gen] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
338.63 s
[really-safe-money-gen]
338.63 s
[really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
338.63 s
[really-safe-money-gen]
338.63 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AccountOf.hs:180:30-115
338.63 s
[really-safe-money-gen] @@ -177,11 +177,11 @@
338.63 s
[really-safe-money-gen]
338.63 s
[really-safe-money-gen] -- | See 'Account.distribute'
338.63 s
[really-safe-money-gen] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
338.63 s
[really-safe-money-gen] -distribute (AccountOf a) w = case Account.distribute a w of
338.63 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.63 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
338.63 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
338.63 s
[really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
338.63 s
[really-safe-money-gen] +distribute (AccountOf a) w = case Account.distribute a w of
338.63 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.63 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
338.63 s
[really-safe-money-gen] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
338.63 s
[really-safe-money-gen] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
338.63 s
[really-safe-money-gen]
338.63 s
[really-safe-money-gen] -- | The result of 'distribute'
338.63 s
[really-safe-money-gen] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
338.63 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
338.63 s
[really-safe-money-gen] @@ -212,11 +212,11 @@
338.63 s
[really-safe-money-gen]
338.63 s
[really-safe-money-gen] -- | See 'Amount.distribute'
338.63 s
[really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
338.63 s
[really-safe-money-gen] -distribute (AmountOf a) f = case Amount.distribute a f of
338.63 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.63 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
338.63 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
338.63 s
[really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
338.63 s
[really-safe-money-gen] +distribute (AmountOf a) f = case Amount.distribute a f of
338.64 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.64 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
338.64 s
[really-safe-money-gen] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
338.64 s
[really-safe-money-gen] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
338.64 s
[really-safe-money-gen]
338.64 s
[really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
338.64 s
[really-safe-money-gen]
338.64 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
338.64 s
[really-safe-money-gen] @@ -212,11 +212,11 @@
338.64 s
[really-safe-money-gen]
338.64 s
[really-safe-money-gen] -- | See 'Amount.distribute'
338.64 s
[really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
338.64 s
[really-safe-money-gen] -distribute (AmountOf a) f = case Amount.distribute a f of
338.64 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.64 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
338.64 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
338.64 s
[really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
338.64 s
[really-safe-money-gen] +distribute (AmountOf a) f = case Amount.distribute a f of
338.64 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.64 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
338.64 s
[really-safe-money-gen] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
338.64 s
[really-safe-money-gen] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
338.64 s
[really-safe-money-gen]
338.64 s
[really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
338.64 s
[really-safe-money-gen]
338.64 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
338.64 s
[really-safe-money-gen] @@ -212,11 +212,11 @@
338.64 s
[really-safe-money-gen]
338.64 s
[really-safe-money-gen] -- | See 'Amount.distribute'
338.64 s
[really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
338.64 s
[really-safe-money-gen] -distribute (AmountOf a) f = case Amount.distribute a f of
338.64 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.64 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
338.64 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
338.64 s
[really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
338.64 s
[really-safe-money-gen] +distribute (AmountOf a) f = case Amount.distribute a f of
338.64 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
338.64 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
338.64 s
[really-safe-money-gen] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
338.64 s
[really-safe-money-gen] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
338.64 s
[really-safe-money-gen]
338.64 s
[really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
338.64 s
[really-safe-money-gen]
338.64 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:47:33-75
338.64 s
[really-safe-money-gen] @@ -44,7 +44,7 @@
338.64 s
[really-safe-money-gen] where
338.64 s
[really-safe-money-gen] f :: String -> Either String Amount
338.64 s
[really-safe-money-gen] f s = case readMaybe s of
338.64 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.64 s
[really-safe-money-gen] + Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.64 s
[really-safe-money-gen] Just i ->
338.64 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
338.64 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.64 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:47:33-75
338.64 s
[really-safe-money-gen] @@ -44,7 +44,7 @@
338.64 s
[really-safe-money-gen] where
338.64 s
[really-safe-money-gen] f :: String -> Either String Amount
338.64 s
[really-safe-money-gen] f s = case readMaybe s of
338.64 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.64 s
[really-safe-money-gen] + Nothing -> Left $ unwords []
338.64 s
[really-safe-money-gen] Just i ->
338.64 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
338.64 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.64 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:49:12-59
338.64 s
[really-safe-money-gen] @@ -46,7 +46,7 @@
338.64 s
[really-safe-money-gen] f s = case readMaybe s of
338.64 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.64 s
[really-safe-money-gen] Just i ->
338.65 s
[really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
338.65 s
[really-safe-money-gen] + if True
338.65 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.65 s
[really-safe-money-gen] else
338.65 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
338.65 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:49:12-59
338.65 s
[really-safe-money-gen] @@ -46,7 +46,7 @@
338.65 s
[really-safe-money-gen] f s = case readMaybe s of
338.65 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.65 s
[really-safe-money-gen] Just i ->
338.65 s
[really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
338.65 s
[really-safe-money-gen] + if False
338.65 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.65 s
[really-safe-money-gen] else
338.65 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
338.65 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount/Codec.hs:49:12-59
338.65 s
[really-safe-money-gen] @@ -46,7 +46,7 @@
338.65 s
[really-safe-money-gen] f s = case readMaybe s of
338.65 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.65 s
[really-safe-money-gen] Just i ->
338.65 s
[really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
338.65 s
[really-safe-money-gen] + if not ((i :: Integer) < toInteger (minBound :: Word64))
338.65 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.65 s
[really-safe-money-gen] else
338.65 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
338.65 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:50:31-84
338.65 s
[really-safe-money-gen] @@ -47,7 +47,7 @@
338.65 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.65 s
[really-safe-money-gen] Just i ->
338.65 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
338.65 s
[really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.65 s
[really-safe-money-gen] + then Left $ unwords []
338.65 s
[really-safe-money-gen] else
338.65 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
338.65 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.65 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:50:31-84
338.65 s
[really-safe-money-gen] @@ -47,7 +47,7 @@
338.65 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.65 s
[really-safe-money-gen] Just i ->
338.65 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
338.65 s
[really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.65 s
[really-safe-money-gen] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.65 s
[really-safe-money-gen] else
338.65 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
338.65 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.65 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:52:16-63
338.65 s
[really-safe-money-gen] @@ -49,7 +49,7 @@
338.65 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
338.65 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.65 s
[really-safe-money-gen] else
338.65 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
338.65 s
[really-safe-money-gen] + if True
338.65 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.65 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.65 s
[really-safe-money-gen] g :: Amount -> String
338.65 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:52:16-63
338.65 s
[really-safe-money-gen] @@ -49,7 +49,7 @@
338.65 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
338.65 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.65 s
[really-safe-money-gen] else
338.65 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
338.65 s
[really-safe-money-gen] + if False
338.65 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.65 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.65 s
[really-safe-money-gen] g :: Amount -> String
338.65 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount/Codec.hs:52:16-63
338.65 s
[really-safe-money-gen] @@ -49,7 +49,7 @@
338.65 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
338.65 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.65 s
[really-safe-money-gen] else
338.65 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
338.65 s
[really-safe-money-gen] + if not ((i :: Integer) > toInteger (maxBound :: Word64))
338.65 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.65 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.65 s
[really-safe-money-gen] g :: Amount -> String
338.65 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:53:35-90
338.65 s
[really-safe-money-gen] @@ -50,7 +50,7 @@
338.65 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.65 s
[really-safe-money-gen] else
338.65 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
338.65 s
[really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.65 s
[really-safe-money-gen] + then Left $ unwords []
338.65 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.66 s
[really-safe-money-gen] g :: Amount -> String
338.66 s
[really-safe-money-gen] g = show . Amount.toMinimalQuantisations
338.66 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:53:35-90
338.66 s
[really-safe-money-gen] @@ -50,7 +50,7 @@
338.66 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.66 s
[really-safe-money-gen] else
338.66 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
338.66 s
[really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.66 s
[really-safe-money-gen] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.66 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.66 s
[really-safe-money-gen] g :: Amount -> String
338.66 s
[really-safe-money-gen] g = show . Amount.toMinimalQuantisations
338.66 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount/Codec.hs:52:13-86
338.66 s
[really-safe-money-gen] @@ -49,9 +49,9 @@
338.66 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
338.66 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.66 s
[really-safe-money-gen] else
338.66 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
338.66 s
[really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.66 s
[really-safe-money-gen] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.66 s
[really-safe-money-gen] + if (i :: Integer) > toInteger (maxBound :: Word64)
338.66 s
[really-safe-money-gen] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.66 s
[really-safe-money-gen] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.66 s
[really-safe-money-gen] g :: Amount -> String
338.66 s
[really-safe-money-gen] g = show . Amount.toMinimalQuantisations
338.66 s
[really-safe-money-gen]
338.66 s
[really-safe-money-gen] Testing mutation CondFlip at src/Money/Amount/Codec.hs:49:9-86
338.66 s
[really-safe-money-gen] @@ -46,12 +46,12 @@
338.66 s
[really-safe-money-gen] f s = case readMaybe s of
338.66 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.66 s
[really-safe-money-gen] Just i ->
338.66 s
[really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
338.66 s
[really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.66 s
[really-safe-money-gen] - else
338.66 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
338.66 s
[really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.66 s
[really-safe-money-gen] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.66 s
[really-safe-money-gen] + if (i :: Integer) < toInteger (minBound :: Word64)
338.66 s
[really-safe-money-gen] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.66 s
[really-safe-money-gen] + else
338.66 s
[really-safe-money-gen] + if (i :: Integer) > toInteger (maxBound :: Word64)
338.66 s
[really-safe-money-gen] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.66 s
[really-safe-money-gen] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.66 s
[really-safe-money-gen] g :: Amount -> String
338.66 s
[really-safe-money-gen] g = show . Amount.toMinimalQuantisations
338.66 s
[really-safe-money-gen]
338.66 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount/Codec.hs:46:11-86
338.66 s
[really-safe-money-gen] @@ -43,15 +43,15 @@
338.66 s
[really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Amount"
338.66 s
[really-safe-money-gen] where
338.66 s
[really-safe-money-gen] f :: String -> Either String Amount
338.66 s
[really-safe-money-gen] - f s = case readMaybe s of
338.66 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.66 s
[really-safe-money-gen] - Just i ->
338.66 s
[really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
338.66 s
[really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.66 s
[really-safe-money-gen] - else
338.66 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
338.66 s
[really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.66 s
[really-safe-money-gen] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.66 s
[really-safe-money-gen] + f s = case readMaybe s of
338.66 s
[really-safe-money-gen] + Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.66 s
[really-safe-money-gen] + Just i ->
338.66 s
[really-safe-money-gen] + if (i :: Integer) < toInteger (minBound :: Word64)
338.66 s
[really-safe-money-gen] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.66 s
[really-safe-money-gen] + else
338.66 s
[really-safe-money-gen] + if (i :: Integer) > toInteger (maxBound :: Word64)
338.66 s
[really-safe-money-gen] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.66 s
[really-safe-money-gen] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.66 s
[really-safe-money-gen] g :: Amount -> String
338.66 s
[really-safe-money-gen] g = show . Amount.toMinimalQuantisations
338.66 s
[really-safe-money-gen]
338.66 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount/Codec.hs:46:11-86
338.66 s
[really-safe-money-gen] @@ -43,15 +43,15 @@
338.66 s
[really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Amount"
338.66 s
[really-safe-money-gen] where
338.66 s
[really-safe-money-gen] f :: String -> Either String Amount
338.66 s
[really-safe-money-gen] - f s = case readMaybe s of
338.66 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.66 s
[really-safe-money-gen] - Just i ->
338.66 s
[really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
338.66 s
[really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.66 s
[really-safe-money-gen] - else
338.66 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
338.66 s
[really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.66 s
[really-safe-money-gen] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.66 s
[really-safe-money-gen] + f s = case readMaybe s of
338.66 s
[really-safe-money-gen] + Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
338.66 s
[really-safe-money-gen] + Just i ->
338.66 s
[really-safe-money-gen] + if (i :: Integer) < toInteger (minBound :: Word64)
338.66 s
[really-safe-money-gen] + then Left $ unwords ["Negative number of minimal quantisations:", show i]
338.66 s
[really-safe-money-gen] + else
338.66 s
[really-safe-money-gen] + if (i :: Integer) > toInteger (maxBound :: Word64)
338.66 s
[really-safe-money-gen] + then Left $ unwords ["Number of minimal quantisations is too big:", show i]
338.66 s
[really-safe-money-gen] + else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
338.66 s
[really-safe-money-gen] g :: Amount -> String
338.66 s
[really-safe-money-gen] g = show . Amount.toMinimalQuantisations
338.66 s
[really-safe-money-gen]
338.66 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/QuantisationFactor/Codec.hs:41:11-26
338.66 s
[really-safe-money-gen] @@ -38,6 +38,6 @@
338.66 s
[really-safe-money-gen] codec
338.67 s
[really-safe-money-gen] <?> "QuantisationFactor"
393.83 s
[really-safe-money-gen] Killed: 301
393.83 s
[really-safe-money-gen] Survived: 38
393.83 s
[really-safe-money-gen] Uncovered: 33
393.83 s
[really-safe-money-gen]
393.85 s
[really-safe-money-gen] Surviving mutations:
393.85 s
[really-safe-money-gen]
393.85 s
[really-safe-money-gen] RemoveCase at src/Money/AccountOf.hs:180:30-115
393.85 s
[really-safe-money-gen] @@ -177,11 +177,11 @@
393.85 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] -- | See 'Account.distribute'
393.86 s
[really-safe-money-gen] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
393.86 s
[really-safe-money-gen] -distribute (AccountOf a) w = case Account.distribute a w of
393.86 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
393.86 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
393.86 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
393.86 s
[really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
393.86 s
[really-safe-money-gen] +distribute (AccountOf a) w = case Account.distribute a w of
393.86 s
[really-safe-money-gen] + DistributedIntoZeroChunks -> DistributedIntoZeroChunks
393.86 s
[really-safe-money-gen] + DistributedZero -> DistributedZero
393.86 s
[really-safe-money-gen] + DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
393.86 s
[really-safe-money-gen] + DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] -- | The result of 'distribute'
393.86 s
[really-safe-money-gen] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] IntLit at src/Money/Account.hs:131:25-26
393.86 s
[really-safe-money-gen] @@ -128,7 +128,7 @@
393.86 s
[really-safe-money-gen] amount :: Amount
393.86 s
[really-safe-money-gen] amount = Amount.fromMinimalQuantisations w
393.86 s
[really-safe-money-gen] in Just $
393.86 s
[really-safe-money-gen] - if i >= 0
393.86 s
[really-safe-money-gen] + if i >= 1
393.86 s
[really-safe-money-gen] then Positive amount
393.86 s
[really-safe-money-gen] else Negative amount
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ConstBool at src/Money/Account.hs:123:10-23
393.86 s
[really-safe-money-gen] @@ -120,7 +120,7 @@
393.86 s
[really-safe-money-gen] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
393.86 s
[really-safe-money-gen] a :: Integer
393.86 s
[really-safe-money-gen] a = (Prelude.abs :: Integer -> Integer) i
393.86 s
[really-safe-money-gen] - in if a > maxBoundI
393.86 s
[really-safe-money-gen] + in if False
393.86 s
[really-safe-money-gen] then Nothing
393.86 s
[really-safe-money-gen] else
393.86 s
[really-safe-money-gen] let w :: Word64
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ListLit at src/Money/QuantisationFactor.hs:39:7-8
393.86 s
[really-safe-money-gen] @@ -36,9 +36,9 @@
393.86 s
[really-safe-money-gen] instance Validity QuantisationFactor where
393.86 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
393.86 s
[really-safe-money-gen] mconcat
393.86 s
[really-safe-money-gen] - [ genericValidate qf,
393.86 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
393.86 s
[really-safe-money-gen] - ]
393.86 s
[really-safe-money-gen] + [ genericValidate qf,
393.86 s
[really-safe-money-gen] + declare "The quantisation factor is not zero" $ w /= 0
393.86 s
[really-safe-money-gen] + ]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] instance NFData QuantisationFactor
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ListLit at src/Money/QuantisationFactor.hs:39:7-8
393.86 s
[really-safe-money-gen] @@ -36,9 +36,7 @@
393.86 s
[really-safe-money-gen] instance Validity QuantisationFactor where
393.86 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
393.86 s
[really-safe-money-gen] mconcat
393.86 s
[really-safe-money-gen] - [ genericValidate qf,
393.86 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
393.86 s
[really-safe-money-gen] - ]
393.86 s
[really-safe-money-gen] + []
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] instance NFData QuantisationFactor
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ConstBool at src/Money/QuantisationFactor.hs:40:57-63
393.86 s
[really-safe-money-gen] @@ -37,7 +37,7 @@
393.86 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
393.86 s
[really-safe-money-gen] mconcat
393.86 s
[really-safe-money-gen] [ genericValidate qf,
393.86 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
393.86 s
[really-safe-money-gen] + declare "The quantisation factor is not zero" $ True
393.86 s
[really-safe-money-gen] ]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] instance NFData QuantisationFactor
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] IntLit at src/Money/QuantisationFactor.hs:93:16-17
393.86 s
[really-safe-money-gen] @@ -90,7 +90,7 @@
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] rat <-
393.86 s
[really-safe-money-gen] let r = 1 / irat
393.86 s
[really-safe-money-gen] - in if r < 0
393.86 s
[really-safe-money-gen] + in if r < 1
393.86 s
[really-safe-money-gen] then Nothing
393.86 s
[really-safe-money-gen] else Just r
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ListLit at src/Money/Amount.hs:603:7-8
393.86 s
[really-safe-money-gen] @@ -600,13 +600,13 @@
393.86 s
[really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
393.86 s
[really-safe-money-gen] validate ad =
393.86 s
[really-safe-money-gen] mconcat
393.86 s
[really-safe-money-gen] - [ genericValidate ad,
393.86 s
[really-safe-money-gen] - case ad of
393.86 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
393.86 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
393.86 s
[really-safe-money-gen] - a1 > a2
393.86 s
[really-safe-money-gen] - _ -> valid
393.86 s
[really-safe-money-gen] - ]
393.86 s
[really-safe-money-gen] + [ genericValidate ad,
393.86 s
[really-safe-money-gen] + case ad of
393.86 s
[really-safe-money-gen] + DistributedIntoUnequalChunks _ a1 _ a2 ->
393.86 s
[really-safe-money-gen] + declare "The larger chunks are larger" $
393.86 s
[really-safe-money-gen] + a1 > a2
393.86 s
[really-safe-money-gen] + _ -> valid
393.86 s
[really-safe-money-gen] + ]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ListLit at src/Money/Amount.hs:603:7-8
393.86 s
[really-safe-money-gen] @@ -600,13 +600,7 @@
393.86 s
[really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
393.86 s
[really-safe-money-gen] validate ad =
393.86 s
[really-safe-money-gen] mconcat
393.86 s
[really-safe-money-gen] - [ genericValidate ad,
393.86 s
[really-safe-money-gen] - case ad of
393.86 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
393.86 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
393.86 s
[really-safe-money-gen] - a1 > a2
393.86 s
[really-safe-money-gen] - _ -> valid
393.86 s
[really-safe-money-gen] - ]
393.86 s
[really-safe-money-gen] + []
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] RemoveCase at src/Money/Amount.hs:604:9-21
393.86 s
[really-safe-money-gen] @@ -601,11 +601,11 @@
393.86 s
[really-safe-money-gen] validate ad =
393.86 s
[really-safe-money-gen] mconcat
393.86 s
[really-safe-money-gen] [ genericValidate ad,
393.86 s
[really-safe-money-gen] - case ad of
393.86 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
393.86 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
393.86 s
[really-safe-money-gen] - a1 > a2
393.86 s
[really-safe-money-gen] - _ -> valid
393.86 s
[really-safe-money-gen] + case ad of
393.86 s
[really-safe-money-gen] + DistributedIntoUnequalChunks _ a1 _ a2 ->
393.86 s
[really-safe-money-gen] + declare "The larger chunks are larger" $
393.86 s
[really-safe-money-gen] + a1 > a2
393.86 s
[really-safe-money-gen] + _ -> valid
393.86 s
[really-safe-money-gen] ]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ConstBool at src/Money/Amount.hs:607:15-22
393.86 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
393.86 s
[really-safe-money-gen] case ad of
393.86 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
393.86 s
[really-safe-money-gen] declare "The larger chunks are larger" $
393.86 s
[really-safe-money-gen] - a1 > a2
393.86 s
[really-safe-money-gen] + True
393.86 s
[really-safe-money-gen] _ -> valid
393.86 s
[really-safe-money-gen] ]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ConstBool at src/Money/Amount.hs:332:14-40
393.86 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
393.86 s
[really-safe-money-gen] | otherwise =
393.86 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
393.86 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
393.86 s
[really-safe-money-gen] - if exponent resultDouble > 65
393.86 s
[really-safe-money-gen] + if False
393.86 s
[really-safe-money-gen] then Nothing
393.86 s
[really-safe-money-gen] else
393.86 s
[really-safe-money-gen] let ceiled :: Natural
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ConstBool at src/Money/Amount.hs:518:10-15
393.86 s
[really-safe-money-gen] @@ -515,7 +515,7 @@
393.86 s
[really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
393.86 s
[really-safe-money-gen] r :: Integer
393.86 s
[really-safe-money-gen] r = i1 - i2
393.86 s
[really-safe-money-gen] - in if r < 0
393.86 s
[really-safe-money-gen] + in if True
393.86 s
[really-safe-money-gen] then Nothing
393.86 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] IntLit at src/Money/Amount.hs:518:14-15
393.86 s
[really-safe-money-gen] @@ -515,7 +515,7 @@
393.86 s
[really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
393.86 s
[really-safe-money-gen] r :: Integer
393.86 s
[really-safe-money-gen] r = i1 - i2
393.86 s
[really-safe-money-gen] - in if r < 0
393.86 s
[really-safe-money-gen] + in if r < 1
393.86 s
[really-safe-money-gen] then Nothing
393.86 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] RemoveCase at src/Numeric/DecimalLiteral.hs:112:17-21
393.86 s
[really-safe-money-gen] @@ -109,9 +109,9 @@
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] -- | Like 'fromString' but in a 'MonadFail'
393.86 s
[really-safe-money-gen] fromStringM :: (MonadFail m) => String -> m DecimalLiteral
393.86 s
[really-safe-money-gen] -fromStringM s = case Numeric.DecimalLiteral.fromString s of
393.86 s
[really-safe-money-gen] - Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
393.86 s
[really-safe-money-gen] - Just dl -> pure dl
393.86 s
[really-safe-money-gen] +fromStringM s = case Numeric.DecimalLiteral.fromString s of
393.86 s
[really-safe-money-gen] + Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
393.86 s
[really-safe-money-gen] + Just dl -> pure dl
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
393.86 s
[really-safe-money-gen] decimalLiteralP = do
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] IntLit at src/Numeric/DecimalLiteral.hs:208:9-10
393.86 s
[really-safe-money-gen] @@ -205,7 +205,7 @@
393.86 s
[really-safe-money-gen] -- Nothing
393.86 s
[really-safe-money-gen] fromRational :: Rational -> Maybe DecimalLiteral
393.86 s
[really-safe-money-gen] fromRational (n :% d)
393.86 s
[really-safe-money-gen] - | n < 0 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
393.86 s
[really-safe-money-gen] + | n < 1 = (\(DecimalLiteral _ m e) -> DecimalLiteral (Just False) m e) <$> fromRatio (fromIntegral (abs n) % fromIntegral d)
393.86 s
[really-safe-money-gen] | otherwise = fromRatio (fromIntegral n % fromIntegral d)
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] -- | Turn a 'DecimalLiteral' into a 'Rational'
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] RemoveCase at src/Numeric/DecimalLiteral.hs:287:38-40
393.86 s
[really-safe-money-gen] @@ -284,9 +284,9 @@
393.86 s
[really-safe-money-gen] -- >>> toRatio (DecimalLiteral (Just False) 3 1)
393.86 s
[really-safe-money-gen] -- Nothing
393.86 s
[really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
393.86 s
[really-safe-money-gen] -toRatio (DecimalLiteral mSign m e) = case mSign of
393.86 s
[really-safe-money-gen] - Just False -> Nothing
393.86 s
[really-safe-money-gen] - _ -> Just $ fromIntegral m / (10 ^ e)
393.86 s
[really-safe-money-gen] +toRatio (DecimalLiteral mSign m e) = case mSign of
393.86 s
[really-safe-money-gen] + Just False -> Nothing
393.86 s
[really-safe-money-gen] + _ -> Just $ fromIntegral m / (10 ^ e)
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
393.86 s
[really-safe-money-gen] fromWord :: Word -> DecimalLiteral
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
393.86 s
[really-safe-money-gen] @@ -286,7 +286,7 @@
393.86 s
[really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
393.86 s
[really-safe-money-gen] toRatio (DecimalLiteral mSign m e) = case mSign of
393.86 s
[really-safe-money-gen] Just False -> Nothing
393.86 s
[really-safe-money-gen] - _ -> Just $ fromIntegral m / (10 ^ e)
393.86 s
[really-safe-money-gen] + _ -> Just $ fromIntegral m / (1 ^ e)
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
393.86 s
[really-safe-money-gen] fromWord :: Word -> DecimalLiteral
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ConstBool at src/Numeric/DecimalLiteral.hs:299:11-47
393.86 s
[really-safe-money-gen] @@ -296,7 +296,7 @@
393.86 s
[really-safe-money-gen] toWord :: DecimalLiteral -> Maybe Word
393.86 s
[really-safe-money-gen] toWord dl = do
393.86 s
[really-safe-money-gen] n <- toNatural dl
393.86 s
[really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Word)
393.86 s
[really-safe-money-gen] + guard $ True
393.86 s
[really-safe-money-gen] pure $ fromIntegral n
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Natural'
393.86 s
[really-safe-money-gen]
393.86 s
[really-safe-money-gen] ConstBool at src/Numeric/DecimalLiteral.hs:333:11-46
393.86 s
[really-safe-money-gen] @@ -330,7 +330,7 @@
393.86 s
[really-safe-money-gen] toInt dl = do
393.86 s
[really-safe-money-gen] n <- toInteger dl
393.86 s
[really-safe-money-gen] guard $ n <= fromIntegral (maxBound :: Int)
393.86 s
[really-safe-money-gen] - guard $where
393.86 s
[really-safe-money-gen] - f w = case QuantisationFactor.fromWord32 w of
393.86 s
[really-safe-money-gen] - Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
393.87 s
[really-safe-money-gen] - Just qf -> Right qf
393.87 s
[really-safe-money-gen] + f w = case QuantisationFactor.fromWord32 w of
393.87 s
[really-safe-money-gen] + Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
393.87 s
[really-safe-money-gen] + Just qf -> Right qf
393.87 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/QuantisationFactor/Codec.hs:41:11-26
393.87 s
[really-safe-money-gen] @@ -38,6 +38,6 @@
393.87 s
[really-safe-money-gen] codec
393.87 s
[really-safe-money-gen] <?> "QuantisationFactor"
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] - f w = case QuantisationFactor.fromWord32 w of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
393.87 s
[really-safe-money-gen] - Just qf -> Right qf
393.87 s
[really-safe-money-gen] + f w = case QuantisationFactor.fromWord32 w of
393.87 s
[really-safe-money-gen] + Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
393.87 s
[really-safe-money-gen] + Just qf -> Right qf
393.87 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:79:11-24
393.87 s
[really-safe-money-gen] @@ -76,6 +76,6 @@
393.87 s
[really-safe-money-gen] <?> "Account"
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] f :: Integer -> Either String Account
393.87 s
[really-safe-money-gen] - f i = case Account.fromMinimalQuantisations i of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ "Number did not fit into an account value: " <> show i
393.87 s
[really-safe-money-gen] - Just a -> Right a
393.87 s
[really-safe-money-gen] + f i = case Account.fromMinimalQuantisations i of
393.87 s
[really-safe-money-gen] + Nothing -> Left $ "Number did not fit into an account value: " <> show i
393.87 s
[really-safe-money-gen] + Just a -> Right a
393.87 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:79:11-24
393.87 s
[really-safe-money-gen] @@ -76,6 +76,6 @@
393.87 s
[really-safe-money-gen] <?> "Account"
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] f :: Integer -> Either String Account
393.87 s
[really-safe-money-gen] - f i = case Account.fromMinimalQuantisations i of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ "Number did not fit into an account value: " <> show i
393.87 s
[really-safe-money-gen] - Just a -> Right a
393.87 s
[really-safe-money-gen] + f i = case Account.fromMinimalQuantisations i of
393.87 s
[really-safe-money-gen] + Nothing -> Left $ "Number did not fit into an account value: " <> show i
393.87 s
[really-safe-money-gen] + Just a -> Right a
393.87 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Account/Codec.hs:51:33-76
393.87 s
[really-safe-money-gen] @@ -48,7 +48,7 @@
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] f :: String -> Either String Account
393.87 s
[really-safe-money-gen] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
393.87 s
[really-safe-money-gen] + Nothing -> Left $ unwords []
393.87 s
[really-safe-money-gen] Just a -> Right a
393.87 s
[really-safe-money-gen] g :: Account -> String
393.87 s
[really-safe-money-gen] g = show . Account.toMinimalQuantisations
393.87 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:50:11-24
393.87 s
[really-safe-money-gen] @@ -47,9 +47,9 @@
393.87 s
[really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Account"
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] f :: String -> Either String Account
393.87 s
[really-safe-money-gen] - f s = case readMaybe s >>= Account.fromMinimalQuantisations of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
393.87 s
[really-safe-money-gen] - Just a -> Right a
393.87 s
[really-safe-money-gen] + f s = case readMaybe s >>= Account.fromMinimalQuantisations of
393.87 s
[really-safe-money-gen] + Nothing -> Left $ unwords ["Could not read string as an Account:", s]
393.87 s
[really-safe-money-gen] + Just a -> Right a
393.87 s
[really-safe-money-gen] g :: Account -> String
393.87 s
[really-safe-money-gen] g = show . Account.toMinimalQuantisations
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Account/Codec.hs:51:33-76
393.87 s
[really-safe-money-gen] @@ -48,7 +48,7 @@
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] f :: String -> Either String Account
393.87 s
[really-safe-money-gen] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
393.87 s
[really-safe-money-gen] + Nothing -> Left $ unwords ["Could not read string as an Account:", s]
393.87 s
[really-safe-money-gen] Just a -> Right a
393.87 s
[really-safe-money-gen] g :: Account -> String
393.87 s
[really-safe-money-gen] g = show . Account.toMinimalQuantisations
393.87 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:50:11-24
393.87 s
[really-safe-money-gen] @@ -47,9 +47,9 @@
393.87 s
[really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Account"
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] f :: String -> Either String Account
393.87 s
[really-safe-money-gen] - f s = case readMaybe s >>= Account.fromMinimalQuantisations of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
393.87 s
[really-safe-money-gen] - Just a -> Right a
393.87 s
[really-safe-money-gen] + f s = case readMaybe s >>= Account.fromMinimalQuantisations of
393.87 s
[really-safe-money-gen] + Nothing -> Left $ unwords ["Could not read string as an Account:", s]
393.87 s
[really-safe-money-gen] + Just a -> Right a
393.87 s
[really-safe-money-gen] g :: Account -> String
393.87 s
[really-safe-money-gen] g = show . Account.toMinimalQuantisations
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] Testing mutation ListLit at src/Numeric/DecimalLiteral/Codec.hs:40:33-82
393.87 s
[really-safe-money-gen] @@ -37,5 +37,5 @@
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] f :: String -> Either String DecimalLiteral
393.87 s
[really-safe-money-gen] f s = case DecimalLiteral.fromString s of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
393.87 s
[really-safe-money-gen] + Nothing -> Left $ unwords []
393.87 s
[really-safe-money-gen] Just a -> Right a
393.87 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral/Codec.hs:39:11-24
393.87 s
[really-safe-money-gen] @@ -36,6 +36,6 @@
393.87 s
[really-safe-money-gen] codecViaString = bimapCodec f DecimalLiteral.toString stringCodec <?> "DecimalLiteral"
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] f :: String -> Either String DecimalLiteral
393.87 s
[really-safe-money-gen] - f s = case DecimalLiteral.fromString s of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
393.87 s
[really-safe-money-gen] - Just a -> Right a
393.87 s
[really-safe-money-gen] + f s = case DecimalLiteral.fromString s of
393.87 s
[really-safe-money-gen] + Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
393.87 s
[really-safe-money-gen] + Just a -> Right a
393.87 s
[really-safe-money-gen] Testing mutation ListLit at src/Numeric/DecimalLiteral/Codec.hs:40:33-82
393.87 s
[really-safe-money-gen] @@ -37,5 +37,5 @@
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] f :: String -> Either String DecimalLiteral
393.87 s
[really-safe-money-gen] f s = case DecimalLiteral.fromString s of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
393.87 s
[really-safe-money-gen] + Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
393.87 s
[really-safe-money-gen] Just a -> Right a
393.87 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral/Codec.hs:39:11-24
393.87 s
[really-safe-money-gen] @@ -36,6 +36,6 @@
393.87 s
[really-safe-money-gen] codecViaString = bimapCodec f DecimalLiteral.toString stringCodec <?> "DecimalLiteral"
393.87 s
[really-safe-money-gen] where
393.87 s
[really-safe-money-gen] f :: String -> Either String DecimalLiteral
393.87 s
[really-safe-money-gen] - f s = case DecimalLiteral.fromString s of
393.87 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
393.87 s
[really-safe-money-gen] - Just a -> Right a
393.87 s
[really-safe-money-gen] + f s = case DecimalLiteral.fromString s of
393.87 s
[really-safe-money-gen] + Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
393.87 s
[really-safe-money-gen] + Just a -> Right a
393.87 s
[really-safe-money-gen] n >= fromIntegral (minBound :: Int)
393.87 s
[really-safe-money-gen] + guard $ True
393.87 s
[really-safe-money-gen] pure $ fromIntegral n
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] ConstBool at src/Numeric/DecimalLiteral.hs:332:11-46
393.87 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
393.87 s
[really-safe-money-gen] toInt :: DecimalLiteral -> Maybe Int
393.87 s
[really-safe-money-gen] toInt dl = do
393.87 s
[really-safe-money-gen] n <- toInteger dl
393.87 s
[really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Int)
393.87 s
[really-safe-money-gen] + guard $ True
393.87 s
[really-safe-money-gen] guard $ n >= fromIntegral (minBound :: Int)
393.87 s
[really-safe-money-gen] pure $ fromIntegral n
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] IntLit at src/Numeric/DecimalLiteral.hs:337:21-22
393.87 s
[really-safe-money-gen] @@ -334,7 +334,7 @@
393.87 s
[really-safe-money-gen] pure $ fromIntegral n
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
393.87 s
[really-safe-money-gen] -numSign a = if a >= 0 then Nothing else Just False
393.87 s
[really-safe-money-gen] +numSign a = if a >= 1 then Nothing else Just False
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
393.87 s
[really-safe-money-gen] signSignum = \case
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] ListLit at src/Money/MultiAmount.hs:63:7-8
393.87 s
[really-safe-money-gen] @@ -60,11 +60,11 @@
393.87 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
393.87 s
[really-safe-money-gen] validate ma@(MultiAmount m) =
393.87 s
[really-safe-money-gen] mconcat
393.87 s
[really-safe-money-gen] - [ genericValidate ma,
393.87 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
393.87 s
[really-safe-money-gen] - declare "The amount is not zero" $
393.87 s
[really-safe-money-gen] - a /= Amount.zero
393.87 s
[really-safe-money-gen] - ]
393.87 s
[really-safe-money-gen] + [ genericValidate ma,
393.87 s
[really-safe-money-gen] + decorateMap m $ \_ a ->
393.87 s
[really-safe-money-gen] + declare "The amount is not zero" $
393.87 s
[really-safe-money-gen] + a /= Amount.zero
393.87 s
[really-safe-money-gen] + ]
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] ListLit at src/Money/MultiAmount.hs:63:7-8
393.87 s
[really-safe-money-gen] @@ -60,11 +60,7 @@
393.87 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
393.87 s
[really-safe-money-gen] validate ma@(MultiAmount m) =
393.87 s
[really-safe-money-gen] mconcat
393.87 s
[really-safe-money-gen] - [ genericValidate ma,
393.87 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
393.87 s
[really-safe-money-gen] - declare "The amount is not zero" $
393.87 s
[really-safe-money-gen] - a /= Amount.zero
393.87 s
[really-safe-money-gen] - ]
393.87 s
[really-safe-money-gen] + []
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:66:13-29
393.87 s
[really-safe-money-gen] @@ -63,7 +63,7 @@
393.87 s
[really-safe-money-gen] [ genericValidate ma,
393.87 s
[really-safe-money-gen] decorateMap m $ \_ a ->
393.87 s
[really-safe-money-gen] declare "The amount is not zero" $
393.87 s
[really-safe-money-gen] - a /= Amount.zero
393.87 s
[really-safe-money-gen] + True
393.87 s
[really-safe-money-gen] ]
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:106:12-28
393.87 s
[really-safe-money-gen] @@ -103,7 +103,7 @@
393.87 s
[really-safe-money-gen] Just a -> do
393.87 s
[really-safe-money-gen] r <- Amount.add a amount
393.87 s
[really-safe-money-gen] Just $
393.87 s
[really-safe-money-gen] - if r == Amount.zero
393.87 s
[really-safe-money-gen] + if False
393.87 s
[really-safe-money-gen] then M.delete currency m
393.87 s
[really-safe-money-gen] else M.insert currency r m
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] CondFlip at src/Money/MultiAmount.hs:119:9-37
393.87 s
[really-safe-money-gen] @@ -116,9 +116,9 @@
393.87 s
[really-safe-money-gen] Just a -> do
393.87 s
[really-safe-money-gen] r <- Amount.subtract a amount
393.87 s
[really-safe-money-gen] Just $
393.87 s
[really-safe-money-gen] - if r == Amount.zero
393.87 s
[really-safe-money-gen] - then M.delete currency m
393.87 s
[really-safe-money-gen] - else M.insert currency r m
393.87 s
[really-safe-money-gen] + if r == Amount.zero
393.87 s
[really-safe-money-gen] + then M.delete currency m
393.87 s
[really-safe-money-gen] + else M.insert currency r m
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] -- | Try to convert every amount to one currency.
393.87 s
[really-safe-money-gen] --
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] Negate at src/Money/MultiAmount.hs:119:12-28
393.87 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
393.87 s
[really-safe-money-gen] Just a -> do
393.87 s
[really-safe-money-gen] r <- Amount.subtract a amount
393.87 s
[really-safe-money-gen] Just $
393.87 s
[really-safe-money-gen] - if r == Amount.zero
393.87 s
[really-safe-money-gen] + if not (r == Amount.zero)
393.87 s
[really-safe-money-gen] then M.delete currency m
393.87 s
[really-safe-money-gen] else M.insert currency r m
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen]
393.87 s
[really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:119:12-28
393.87 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
393.87 s
[really-safe-money-gen] Just a -> do
393.87 s
[really-safe-money-gen] r <- Amount.subtract a amount
393.87 s
[really-safe-money-gen] Just $
393.87 s
[really-safe-money-gen] - if r == Amount.zero
393.87 s
[really-safe-money-gen] + if False
393.87 s
[really-safe-money-gen] then M.delete currency m
393.88 s
[really-safe-money-gen] else M.insert currency r m
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:119:12-28
393.88 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
393.88 s
[really-safe-money-gen] Just a -> do
393.88 s
[really-safe-money-gen] r <- Amount.subtract a amount
393.88 s
[really-safe-money-gen] Just $
393.88 s
[really-safe-money-gen] - if r == Amount.zero
393.88 s
[really-safe-money-gen] + if True
393.88 s
[really-safe-money-gen] then M.delete currency m
393.88 s
[really-safe-money-gen] else M.insert currency r m
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] ListLit at src/Money/ConversionRate.hs:37:7-8
393.88 s
[really-safe-money-gen] @@ -34,9 +34,9 @@
393.88 s
[really-safe-money-gen] instance Validity ConversionRate where
393.88 s
[really-safe-money-gen] validate cr@(ConversionRate r) =
393.88 s
[really-safe-money-gen] mconcat
393.88 s
[really-safe-money-gen] - [ genericValidate cr,
393.88 s
[really-safe-money-gen] - declare "The rate is nonzero" $ numerator r /= 0
393.88 s
[really-safe-money-gen] - ]
393.88 s
[really-safe-money-gen] + [ genericValidate cr,
393.88 s
[really-safe-money-gen] + declare "The rate is nonzero" $ numerator r /= 0
393.88 s
[really-safe-money-gen] + ]
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] instance NFData ConversionRate
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] ListLit at src/Money/ConversionRate.hs:37:7-8
393.88 s
[really-safe-money-gen] @@ -34,9 +34,7 @@
393.88 s
[really-safe-money-gen] instance Validity ConversionRate where
393.88 s
[really-safe-money-gen] validate cr@(ConversionRate r) =
393.88 s
[really-safe-money-gen] mconcat
393.88 s
[really-safe-money-gen] - [ genericValidate cr,
393.88 s
[really-safe-money-gen] - declare "The rate is nonzero" $ numerator r /= 0
393.88 s
[really-safe-money-gen] - ]
393.88 s
[really-safe-money-gen] + []
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] instance NFData ConversionRate
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] ConstBool at src/Money/ConversionRate.hs:38:41-57
393.88 s
[really-safe-money-gen] @@ -35,7 +35,7 @@
393.88 s
[really-safe-money-gen] validate cr@(ConversionRate r) =
393.88 s
[really-safe-money-gen] mconcat
393.88 s
[really-safe-money-gen] [ genericValidate cr,
393.88 s
[really-safe-money-gen] - declare "The rate is nonzero" $ numerator r /= 0
393.88 s
[really-safe-money-gen] + declare "The rate is nonzero" $ True
393.88 s
[really-safe-money-gen] ]
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] instance NFData ConversionRate
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] IntLit at src/Money/ConversionRate.hs:109:27-28
393.88 s
[really-safe-money-gen] @@ -106,7 +106,7 @@
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] -- | One-to-one conversion rate
393.88 s
[really-safe-money-gen] oneToOne :: ConversionRate
393.88 s
[really-safe-money-gen] -oneToOne = ConversionRate 1
393.88 s
[really-safe-money-gen] +oneToOne = ConversionRate 0
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] -- | Invert a 'ConversionRate', to convert in the other direction.
393.88 s
[really-safe-money-gen] --
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] ListLit at src/Money/MultiAccount.hs:66:7-8
393.88 s
[really-safe-money-gen] @@ -63,11 +63,11 @@
393.88 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
393.88 s
[really-safe-money-gen] validate ma@(MultiAccount m) =
393.88 s
[really-safe-money-gen] mconcat
393.88 s
[really-safe-money-gen] - [ genericValidate ma,
393.88 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
393.88 s
[really-safe-money-gen] - declare "The account is not zero" $
393.88 s
[really-safe-money-gen] - a /= Account.zero
393.88 s
[really-safe-money-gen] - ]
393.88 s
[really-safe-money-gen] + [ genericValidate ma,
393.88 s
[really-safe-money-gen] + decorateMap m $ \_ a ->
393.88 s
[really-safe-money-gen] + declare "The account is not zero" $
393.88 s
[really-safe-money-gen] + a /= Account.zero
393.88 s
[really-safe-money-gen] + ]
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] -- TODO no empty currencies
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] ListLit at src/Money/MultiAccount.hs:66:7-8
393.88 s
[really-safe-money-gen] @@ -63,11 +63,7 @@
393.88 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
393.88 s
[really-safe-money-gen] validate ma@(MultiAccount m) =
393.88 s
[really-safe-money-gen] mconcat
393.88 s
[really-safe-money-gen] - [ genericValidate ma,
393.88 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
393.88 s
[really-safe-money-gen] - declare "The account is not zero" $
393.88 s
[really-safe-money-gen] - a /= Account.zero
393.88 s
[really-safe-money-gen] - ]
393.88 s
[really-safe-money-gen] + []
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] -- TODO no empty currencies
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] ConstBool at src/Money/MultiAccount.hs:69:13-30
393.88 s
[really-safe-money-gen] @@ -66,7 +66,7 @@
393.88 s
[really-safe-money-gen] [ genericValidate ma,
393.88 s
[really-safe-money-gen] decorateMap m $ \_ a ->
393.88 s
[really-safe-money-gen] declare "The account is not zero" $
393.88 s
[really-safe-money-gen] - a /= Account.zero
393.88 s
[really-safe-money-gen] + True
393.88 s
[really-safe-money-gen] ]
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] -- TODO no empty currencies
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] ConstBool at src/Money/MultiAccount.hs:78:6-28
393.88 s
[really-safe-money-gen] @@ -75,7 +75,7 @@
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
393.88 s
[really-safe-money-gen] fromAccount currency amount =
393.88 s
[really-safe-money-gen] - if amount == Account.zero
393.88 s
[really-safe-money-gen] + if True
393.88 s
[really-safe-money-gen] then zero
393.88 s
[really-safe-money-gen] else MultiAccount $ M.singleton currency amount
393.88 s
[really-safe-money-gen]
393.88 s
[really-safe-money-gen] checkPhase completed in 5 minutes 20 seconds
393.88 s
[really-safe-money-gen] Phase: haddockPhase
394.00 s
[really-safe-money-gen] Preprocessing library for really-safe-money-gen-0.0.0.0...
394.01 s
[really-safe-money-gen] Running Haddock on library for really-safe-money-gen-0.0.0.0...
394.01 s
[really-safe-money-gen] Warning: The documentation for the following packages are not installed. No
394.01 s
[really-safe-money-gen] links will be generated to these packages: really-safe-money-0.0.0.0
394.20 s
[really-safe-money-gen] [ 1 of 13] Compiling Money.Amount.Gen ( src/Money/Amount/Gen.hs, nothing )
394.35 s
[really-safe-money-gen] [ 2 of 13] Compiling Money.Account.Gen ( src/Money/Account/Gen.hs, nothing )
394.35 s
[really-safe-money-gen] [ 3 of 13] Compiling Money.AccountOf.Gen ( src/Money/AccountOf/Gen.hs, nothing )
394.36 s
[really-safe-money-gen] [ 4 of 13] Compiling Money.AmountOf.Gen ( src/Money/AmountOf/Gen.hs, nothing )
394.37 s
[really-safe-money-gen] [ 5 of 13] Compiling Money.ConversionRate.Gen ( src/Money/ConversionRate/Gen.hs, nothing )
394.39 s
[really-safe-money-gen] [ 6 of 13] Compiling Money.ConversionRateOf.Gen ( src/Money/ConversionRateOf/Gen.hs, nothing )
394.40 s
[really-safe-money-gen] [ 7 of 13] Compiling Money.QuantisationFactor.Gen ( src/Money/QuantisationFactor/Gen.hs, nothing )
394.40 s
[really-safe-money-gen] [ 8 of 13] Compiling Money.Currency.Gen ( src/Money/Currency/Gen.hs, nothing )
394.41 s
[really-safe-money-gen] [ 9 of 13] Compiling Money.MultiAmount.Gen ( src/Money/MultiAmount/Gen.hs, nothing )
394.44 s
[really-safe-money-gen] [10 of 13] Compiling Money.MultiAccount.Gen ( src/Money/MultiAccount/Gen.hs, nothing )
394.46 s
[really-safe-money-gen] [11 of 13] Compiling Money.Gen ( src/Money/Gen.hs, nothing )
394.46 s
[really-safe-money-gen] [12 of 13] Compiling Numeric.DecimalLiteral.Gen ( src/Numeric/DecimalLiteral/Gen.hs, nothing )
394.48 s
[really-safe-money-gen] [13 of 13] Compiling Paths_really_safe_money_gen ( dist/build/autogen/Paths_really_safe_money_gen.hs, nothing )
394.52 s
[really-safe-money-gen] Haddock coverage:
394.52 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.Amount.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.Account.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.AccountOf.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.AmountOf.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.ConversionRate.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.ConversionRateOf.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.QuantisationFactor.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.Currency.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.MultiAmount.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.MultiAccount.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] Warning: Money.Gen: Could not find documentation for exported module: Money.Gen
394.52 s
[really-safe-money-gen] 90% ( 10 / 11) in 'Money.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] 0% ( 0 / 2) in 'Numeric.DecimalLiteral.Gen'
394.52 s
[really-safe-money-gen] Missing documentation for:
394.52 s
[really-safe-money-gen] Module header
394.52 s
[really-safe-money-gen] shrinkSign (src/Numeric/DecimalLiteral/Gen.hs:16)
394.72 s
[really-safe-money-gen] Warning: Money.Amount.Gen: could not find link destinations for:
394.72 s
[really-safe-money-gen] - Money.Amount.Amount
394.72 s
[really-safe-money-gen] - Money.Amount.Distribution
394.72 s
[really-safe-money-gen] - Money.Amount.Rounding
394.72 s
[really-safe-money-gen] Warning: Money.Account.Gen: could not find link destinations for:
394.72 s
[really-safe-money-gen] - Money.Account.Account
394.73 s
[really-safe-money-gen] Warning: Money.AccountOf.Gen: could not find link destinations for:
394.73 s
[really-safe-money-gen] - Money.AccountOf.AccountOf
394.73 s
[really-safe-money-gen] Warning: Money.AmountOf.Gen: could not find link destinations for:
394.73 s
[really-safe-money-gen] - Money.AmountOf.AmountOf
394.73 s
[really-safe-money-gen] Warning: Money.ConversionRate.Gen: could not find link destinations for:
394.73 s
[really-safe-money-gen] - Money.ConversionRate.ConversionRate
394.73 s
[really-safe-money-gen] Warning: Money.ConversionRateOf.Gen: could not find link destinations for:
394.73 s
[really-safe-money-gen] - Money.ConversionRateOf.ConversionRateOf
394.73 s
[really-safe-money-gen] Warning: Money.QuantisationFactor.Gen: could not find link destinations for:
394.73 s
[really-safe-money-gen] - Money.QuantisationFactor.QuantisationFactor
394.73 s
[really-safe-money-gen] Warning: Money.Currency.Gen: could not find link destinations for:
394.73 s
[really-safe-money-gen] - Money.Currency.Currency
394.73 s
[really-safe-money-gen] Warning: Money.MultiAmount.Gen: could not find link destinations for:
394.73 s
[really-safe-money-gen] - Money.MultiAmount.MultiAmount
394.73 s
[really-safe-money-gen] Warning: Money.MultiAccount.Gen: could not find link destinations for:
394.73 s
[really-safe-money-gen] - Money.MultiAccount.MultiAccount
394.73 s
[really-safe-money-gen] Warning: Numeric.DecimalLiteral.Gen: could not find link destinations for:
394.73 s
[really-safe-money-gen] - Numeric.DecimalLiteral.DecimalLiteral
399.93 s
[really-safe-money-gen] Documentation created: dist/doc/html/really-safe-money-gen/,
399.93 s
[really-safe-money-gen] dist/doc/html/really-safe-money-gen/really-safe-money-gen.txt
400.01 s
[really-safe-money-gen] Preprocessing test suite 'really-safe-money-test' for really-safe-money-gen-0.0.0.0...
400.02 s
[really-safe-money-gen] Phase: installPhase
400.19 s
[really-safe-money-gen] Installing library in /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/really-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h
400.66 s
[really-safe-money-gen] Phase: fixupPhase
400.69 s
[really-safe-money-gen] shrinking RPATHs of ELF executables and libraries in /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0
400.69 s
[really-safe-money-gen] shrinking /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-05f6/libHSreally-safe-money-gen-0.0.0.0-9DfdU4DcgbWHMkem9yRL5h-ghc9.10.3.so
400.71 s
[really-safe-money-gen] checking for references to /build/ in /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0...
400.74 s
[really-safe-money-gen] patching script interpreter paths in /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0
400.74 s
[really-safe-money-gen] stripping (with command strip and flags -S -p) in /nix/store/mhwmglada4f12f0lxq3m2lsy34vzgsir-really-safe-money-gen-0.0.0.0/lib
400.81 s
[really-safe-money-gen] shrinking RPATHs of ELF executables and libraries in /nix/store/26j8gawyiiv96f6syfhs8kk4k2hh32k5-really-safe-money-gen-0.0.0.0-doc
400.82 s
[really-safe-money-gen] checking for references to /build/ in /nix/store/26j8gawyiiv96f6syfhs8kk4k2hh32k5-really-safe-money-gen-0.0.0.0-doc...
400.85 s
[really-safe-money-gen] patching script interpreter paths in /nix/store/26j8gawyiiv96f6syfhs8kk4k2hh32k5-really-safe-money-gen-0.0.0.0-doc
400.85 s
[really-safe-money-gen] shrinking RPATHs of ELF executables and libraries in /nix/store/g0ds0q19cyy7asvxia86b512vzfdbl5r-really-safe-money-gen-0.0.0.0-report
400.87 s
[really-safe-money-gen] checking for references to /build/ in /nix/store/g0ds0q19cyy7asvxia86b512vzfdbl5r-really-safe-money-gen-0.0.0.0-report...
400.90 s
[really-safe-money-gen] patching script interpreter paths in /nix/store/g0ds0q19cyy7asvxia86b512vzfdbl5r-really-safe-money-gen-0.0.0.0-report
401.05 s
Progress: 5 of 6 built