build checks.x86_64-linux.mutation-really-safe-money
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