build checks.x86_64-linux.mutation-really-safe-money
1071.45 s
[really-safe-money-gen] else
1071.45 s
[really-safe-money-gen] let ceiled :: Natural
1071.45 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:328:9-21
1071.45 s
[really-safe-money-gen] @@ -325,7 +325,7 @@
1071.45 s
[really-safe-money-gen] where
1071.45 s
[really-safe-money-gen] go resultDouble
1071.45 s
[really-safe-money-gen] | isNaN d = Nothing
1071.45 s
[really-safe-money-gen] - | i s In fin i t e d = Nothing
1071.45 s
[really-safe-money-gen] + | T ru e = Nothing
1071.45 s
[really-safe-money-gen] | otherwise =
1071.45 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
1071.45 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
1071.45 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:320:5-10
1071.45 s
[really-safe-money-gen] @@ -317,7 +317,7 @@
1071.45 s
[really-safe-money-gen] Double ->
1071.45 s
[really-safe-money-gen] Maybe Amount
1071.45 s
[really-safe-money-gen] fromDouble (QuantisationFactor qf) d
1071.45 s
[really-safe-money-gen] - | d < 0 = Nothing
1071.45 s
[really-safe-money-gen] + | T r u e = Nothing
1071.45 s
[really-safe-money-gen] | otherwise =
1076.97 s
[really-safe-money-gen] let resultDouble :: Double
1076.97 s
[really-safe-money-gen] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
1077.00 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:320:5-10
1077.00 s
[really-safe-money-gen] @@ -317,7 +317,7 @@
1077.00 s
[really-safe-money-gen] Double ->
1077.00 s
[really-safe-money-gen] Maybe Amount
1077.00 s
[really-safe-money-gen] fromDouble (QuantisationFactor qf) d
1077.00 s
[really-safe-money-gen] - | d < 0 = Nothing
1077.00 s
[really-safe-money-gen] + | d > = 0 = Nothing
1077.00 s
[really-safe-money-gen] | otherwise =
1077.00 s
[really-safe-money-gen] let resultDouble :: Double
1077.00 s
[really-safe-money-gen] resultDouble = d * (fromIntegral :: Word32 -> Double) qf
1077.00 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:399:18-83
1077.00 s
[really-safe-money-gen] @@ -396,7 +396,7 @@
1077.00 s
[really-safe-money-gen] floored = (floor :: Rational -> Natural) resultRational
1077.00 s
[really-safe-money-gen] in if ceiled == floored
1077.00 s
[really-safe-money-gen] then
1077.00 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1077.01 s
[really-safe-money-gen] + if n o t ( ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64) )
1077.01 s
[really-safe-money-gen] then Nothing
1077.01 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
1077.01 s
[really-safe-money-gen] else Nothing
1077.01 s
[really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:323:26-67
1077.01 s
[really-safe-money-gen] @@ -320,7 +320,7 @@
1077.01 s
[really-safe-money-gen] | d < 0 = Nothing
1077.01 s
[really-safe-money-gen] | otherwise =
1077.01 s
[really-safe-money-gen] let resultDouble :: Double
1077.01 s
[really-safe-money-gen] - resultDouble = d * (fromIntegral :: Word32 -> Double) qf
1077.01 s
[really-safe-money-gen] + resultDouble = d - (fromIntegral :: Word32 -> Double) qf
1077.01 s
[really-safe-money-gen] in go resultDouble
1077.01 s
[really-safe-money-gen] where
1077.01 s
[really-safe-money-gen] go resultDouble
1077.01 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:332:14-40
1077.01 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
1077.01 s
[really-safe-money-gen] | otherwise =
1077.01 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
1077.01 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
1077.01 s
[really-safe-money-gen] - if e x pon ent r e s ult Do u b l e > 65
1077.01 s
[really-safe-money-gen] + if T r u e
1077.01 s
[really-safe-money-gen] then Nothing
1077.01 s
[really-safe-money-gen] else
1077.01 s
[really-safe-money-gen] let ceiled :: Natural
1077.01 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:332:14-40
1077.01 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
1077.01 s
[really-safe-money-gen] | otherwise =
1077.01 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
1077.01 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
1077.01 s
[really-safe-money-gen] - if exponent resultDouble > 65
1077.01 s
[really-safe-money-gen] + if n o t ( exponent resultDouble > 65 )
1077.01 s
[really-safe-money-gen] then Nothing
1077.01 s
[really-safe-money-gen] else
1077.01 s
[really-safe-money-gen] let ceiled :: Natural
1077.01 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:339:22-39
1077.01 s
[really-safe-money-gen] @@ -336,7 +336,7 @@
1077.01 s
[really-safe-money-gen] ceiled = (ceiling :: Double -> Natural) resultDouble
1077.01 s
[really-safe-money-gen] floored :: Natural
1077.01 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
1077.01 s
[really-safe-money-gen] - in if c e il ed = = fl oo r e d
1077.01 s
[really-safe-money-gen] + in if T r u e
1077.02 s
[really-safe-money-gen] then
1077.02 s
[really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1077.02 s
[really-safe-money-gen] then Nothing
1077.02 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:332:14-40
1077.02 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
1077.02 s
[really-safe-money-gen] | otherwise =
1077.02 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
1077.02 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
1077.02 s
[really-safe-money-gen] - if e xp one nt r e s ultDoub l e > 65
1077.02 s
[really-safe-money-gen] + if Fa l s e
1077.02 s
[really-safe-money-gen] then Nothing
1077.02 s
[really-safe-money-gen] else
1077.02 s
[really-safe-money-gen] let ceiled :: Natural
1077.02 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:339:22-39
1077.02 s
[really-safe-money-gen] @@ -336,7 +336,7 @@
1077.02 s
[really-safe-money-gen] ceiled = (ceiling :: Double -> Natural) resultDouble
1077.02 s
[really-safe-money-gen] floored :: Natural
1077.02 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
1077.02 s
[really-safe-money-gen] - in if c e il ed = = f l oo r e d
1077.02 s
[really-safe-money-gen] + in if F a l s e
1077.02 s
[really-safe-money-gen] then
1077.02 s
[really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1077.02 s
[really-safe-money-gen] then Nothing
1077.02 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:341:26-91
1077.02 s
[really-safe-money-gen] @@ -338,7 +338,7 @@
1077.02 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
1077.02 s
[really-safe-money-gen] in if ceiled == floored
1077.02 s
[really-safe-money-gen] then
1077.02 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1077.02 s
[really-safe-money-gen] + if ceiled < = (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1077.02 s
[really-safe-money-gen] then Nothing
1077.02 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
1077.02 s
[really-safe-money-gen] else Nothing
1077.02 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:339:22-39
1077.02 s
[really-safe-money-gen] @@ -336,7 +336,7 @@
1077.02 s
[really-safe-money-gen] ceiled = (ceiling :: Double -> Natural) resultDouble
1077.02 s
[really-safe-money-gen] floored :: Natural
1077.02 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
1077.02 s
[really-safe-money-gen] - in if ceiled == floored
1077.02 s
[really-safe-money-gen] + in if n o t ( ceiled == floored )
1077.02 s
[really-safe-money-gen] then
1077.02 s
[really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1077.02 s
[really-safe-money-gen] then Nothing
1077.02 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:494:96-97
1077.02 s
[really-safe-money-gen] @@ -491,7 +491,7 @@
1077.02 s
[really-safe-money-gen] let maxBoundI :: Integer
1077.02 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
1077.02 s
[really-safe-money-gen] r :: Integer
1077.03 s
[really-safe-money-gen] - r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1077.03 s
[really-safe-money-gen] + r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 1 l
1077.03 s
[really-safe-money-gen] in if r > maxBoundI
1077.03 s
[really-safe-money-gen] then Nothing
1077.03 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1077.03 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:495:10-23
1077.03 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
1077.03 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
1077.03 s
[really-safe-money-gen] r :: Integer
1077.03 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1077.03 s
[really-safe-money-gen] - in if r > maxBoundI
1077.03 s
[really-safe-money-gen] + in if r < maxBoundI
1077.03 s
[really-safe-money-gen] then Nothing
1077.03 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1077.03 s
[really-safe-money-gen]
1077.03 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:495:10-23
1077.03 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
1077.03 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
1077.03 s
[really-safe-money-gen] r :: Integer
1077.03 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1077.03 s
[really-safe-money-gen] - in if r > maxBoundI
1077.03 s
[really-safe-money-gen] + in if r < = maxBoundI
1077.03 s
[really-safe-money-gen] then Nothing
1077.03 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1077.03 s
[really-safe-money-gen]
1077.03 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:495:10-23
1077.03 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
1077.03 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
1077.03 s
[really-safe-money-gen] r :: Integer
1077.03 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1077.03 s
[really-safe-money-gen] - in if r > maxBoundI
1077.03 s
[really-safe-money-gen] + in if r > = maxBoundI
1077.03 s
[really-safe-money-gen] then Nothing
1077.03 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1077.03 s
[really-safe-money-gen]
1077.03 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:495:10-23
1077.03 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
1077.03 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
1077.03 s
[really-safe-money-gen] r :: Integer
1077.03 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1077.03 s
[really-safe-money-gen] - in if r > max Bo u n d I
1077.03 s
[really-safe-money-gen] + in if T r u e
1077.03 s
[really-safe-money-gen] then Nothing
1081.49 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1081.49 s
[really-safe-money-gen]
1081.49 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:341:26-91
1081.49 s
[really-safe-money-gen] @@ -338,7 +338,7 @@
1081.50 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
1081.50 s
[really-safe-money-gen] in if ceiled == floored
1081.50 s
[really-safe-money-gen] then
1081.50 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1081.50 s
[really-safe-money-gen] + if ceiled > = (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1081.50 s
[really-safe-money-gen] then Nothing
1081.50 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
1081.50 s
[really-safe-money-gen] else Nothing
1081.50 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:495:10-23
1081.50 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
1081.50 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
1081.50 s
[really-safe-money-gen] r :: Integer
1081.50 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1081.50 s
[really-safe-money-gen] - in if r > maxBoundI
1081.50 s
[really-safe-money-gen] + in if n o t ( r > maxBoundI )
1081.50 s
[really-safe-money-gen] then Nothing
1081.50 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1081.50 s
[really-safe-money-gen]
1081.50 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:495:10-23
1081.50 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
1081.50 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
1081.50 s
[really-safe-money-gen] r :: Integer
1081.50 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1081.50 s
[really-safe-money-gen] - in if r > m a xB ound I
1081.50 s
[really-safe-money-gen] + in if F a l se
1081.50 s
[really-safe-money-gen] then Nothing
1081.50 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1081.50 s
[really-safe-money-gen]
1081.50 s
[really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:494:29-94
1081.50 s
[really-safe-money-gen] @@ -491,7 +491,7 @@
1081.50 s
[really-safe-money-gen] let maxBoundI :: Integer
1081.50 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
1081.50 s
[really-safe-money-gen] r :: Integer
1081.50 s
[really-safe-money-gen] - r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1081.50 s
[really-safe-money-gen] + r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) * acc) 0 l
1081.50 s
[really-safe-money-gen] in if r > maxBoundI
1081.50 s
[really-safe-money-gen] then Nothing
1081.51 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1081.51 s
[really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:494:29-94
1081.51 s
[really-safe-money-gen] @@ -491,7 +491,7 @@
1081.51 s
[really-safe-money-gen] let maxBoundI :: Integer
1081.51 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
1081.51 s
[really-safe-money-gen] r :: Integer
1081.51 s
[really-safe-money-gen] - r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1081.51 s
[really-safe-money-gen] + r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) - acc) 0 l
1081.51 s
[really-safe-money-gen] in if r > maxBoundI
1081.51 s
[really-safe-money-gen] then Nothing
1081.51 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1081.51 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:290:79-80
1081.51 s
[really-safe-money-gen] @@ -287,7 +287,7 @@
1081.51 s
[really-safe-money-gen] -- >>> toRatio (QuantisationFactor 100) (Amount 1)
1081.51 s
[really-safe-money-gen] -- 1 % 100
1081.51 s
[really-safe-money-gen] toRatio :: QuantisationFactor -> Amount -> Ratio Natural
1081.51 s
[really-safe-money-gen] - toRatio (QuantisationFactor 0) a = fromIntegral (toMinimalQuantisations a) :% 0
1081.51 s
[really-safe-money-gen] + toRatio (QuantisationFactor 0) a = fromIntegral (toMinimalQuantisations a) :% 1
1081.51 s
[really-safe-money-gen] toRatio (QuantisationFactor quantisationFactor) a =
1081.51 s
[really-safe-money-gen] (fromIntegral :: Word64 -> Natural) (toMinimalQuantisations a)
1081.51 s
[really-safe-money-gen] % (fromIntegral :: Word32 -> Natural) quantisationFactor
1081.51 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:341:26-91
1081.51 s
[really-safe-money-gen] @@ -338,7 +338,7 @@
1081.51 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
1081.51 s
[really-safe-money-gen] in if ceiled == floored
1081.51 s
[really-safe-money-gen] then
1081.51 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1081.51 s
[really-safe-money-gen] + if n o t ( ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64) )
1081.51 s
[really-safe-money-gen] then Nothing
1081.51 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
1081.51 s
[really-safe-money-gen] else Nothing
1081.51 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/Amount.hs:660:28-37
1081.51 s
[really-safe-money-gen] @@ -657,7 +657,7 @@
1081.51 s
[really-safe-money-gen] Ratio Natural ->
1081.51 s
[really-safe-money-gen] -- | The amount and the real rate that was used, considering the 'Rounding'
1081.51 s
[really-safe-money-gen] (Maybe Amount, Ratio Natural)
1081.51 s
[really-safe-money-gen] - fraction _ (Amount 0) f = ( J u st ze r o , f)
1081.51 s
[really-safe-money-gen] + fraction _ (Amount 0) f = ( N o th in g , f)
1081.52 s
[really-safe-money-gen] fraction _ _ 0 = (Just zero, 0)
1081.52 s
[really-safe-money-gen] fraction r (Amount a) f =
1081.52 s
[really-safe-money-gen] let amountAsRatio :: Ratio Natural
1081.52 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/Amount.hs:661:19-28
1081.52 s
[really-safe-money-gen] @@ -658,7 +658,7 @@
1081.52 s
[really-safe-money-gen] -- | The amount and the real rate that was used, considering the 'Rounding'
1081.52 s
[really-safe-money-gen] (Maybe Amount, Ratio Natural)
1081.52 s
[really-safe-money-gen] fraction _ (Amount 0) f = (Just zero, f)
1081.52 s
[really-safe-money-gen] - fraction _ _ 0 = ( J u st ze r o , 0)
1081.52 s
[really-safe-money-gen] + fraction _ _ 0 = ( N o th in g , 0)
1081.52 s
[really-safe-money-gen] fraction r (Amount a) f =
1081.52 s
[really-safe-money-gen] let amountAsRatio :: Ratio Natural
1081.52 s
[really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
1081.52 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:661:30-31
1081.52 s
[really-safe-money-gen] @@ -658,7 +658,7 @@
1081.52 s
[really-safe-money-gen] -- | The amount and the real rate that was used, considering the 'Rounding'
1081.52 s
[really-safe-money-gen] (Maybe Amount, Ratio Natural)
1081.52 s
[really-safe-money-gen] fraction _ (Amount 0) f = (Just zero, f)
1081.52 s
[really-safe-money-gen] - fraction _ _ 0 = (Just zero, 0 )
1081.52 s
[really-safe-money-gen] + fraction _ _ 0 = (Just zero, 1 )
1081.52 s
[really-safe-money-gen] fraction r (Amount a) f =
1081.52 s
[really-safe-money-gen] let amountAsRatio :: Ratio Natural
1081.52 s
[really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
1081.52 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/Amount.hs:497:14-66
1081.52 s
[really-safe-money-gen] @@ -494,7 +494,7 @@
1081.52 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1081.52 s
[really-safe-money-gen] in if r > maxBoundI
1081.52 s
[really-safe-money-gen] then Nothing
1081.52 s
[really-safe-money-gen] - else J u s t ( Am o u n t ( (f rom I n t e g er :: Integer -> Word64) r))
1081.52 s
[really-safe-money-gen] + else N o t hi n g
1081.52 s
[really-safe-money-gen]
1081.52 s
[really-safe-money-gen] -- | Add two amounts of money.
1081.52 s
[really-safe-money-gen] --
1081.52 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:668:17-30
1081.52 s
[really-safe-money-gen] @@ -665,10 +665,9 @@
1081.52 s
[really-safe-money-gen] theoreticalResult :: Ratio Natural
1081.52 s
[really-safe-money-gen] theoreticalResult = amountAsRatio * f
1081.52 s
[really-safe-money-gen] rounder :: Ratio Natural -> Natural
1081.53 s
[really-safe-money-gen] rounder = case r of
1081.53 s
[really-safe-money-gen] RoundUp -> ceiling
1081.53 s
[really-safe-money-gen] - RoundDown -> floor
1081.53 s
[really-safe-money-gen] RoundNearest -> round
1081.53 s
[really-safe-money-gen] roundedResult :: Natural
1081.53 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1081.53 s
[really-safe-money-gen] actualRate :: Ratio Natural
1081.53 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:668:17-30
1081.53 s
[really-safe-money-gen] @@ -665,10 +665,9 @@
1081.53 s
[really-safe-money-gen] theoreticalResult :: Ratio Natural
1081.53 s
[really-safe-money-gen] theoreticalResult = amountAsRatio * f
1081.53 s
[really-safe-money-gen] rounder :: Ratio Natural -> Natural
1081.53 s
[really-safe-money-gen] rounder = case r of
1081.53 s
[really-safe-money-gen] - RoundUp -> ceiling
1081.53 s
[really-safe-money-gen] RoundDown -> floor
1081.53 s
[really-safe-money-gen] RoundNearest -> round
1081.53 s
[really-safe-money-gen] roundedResult :: Natural
1081.53 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1081.53 s
[really-safe-money-gen] actualRate :: Ratio Natural
1081.53 s
[really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:250:15-16
1081.53 s
[really-safe-money-gen] @@ -247,7 +247,7 @@
1081.53 s
[really-safe-money-gen] -- >>> zero
1081.53 s
[really-safe-money-gen] -- Amount 0
1081.53 s
[really-safe-money-gen] zero :: Amount
1081.53 s
[really-safe-money-gen] - zero = Amount 0
1081.53 s
[really-safe-money-gen] + zero = Amount 1
1081.53 s
[really-safe-money-gen]
1081.53 s
[really-safe-money-gen] -- | Turn an amount into a number of minimal quantisations.
1081.53 s
[really-safe-money-gen] --
1081.53 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:341:26-91
1081.53 s
[really-safe-money-gen] @@ -338,7 +338,7 @@
1081.53 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
1081.53 s
[really-safe-money-gen] in if ceiled == floored
1081.53 s
[really-safe-money-gen] then
1081.53 s
[really-safe-money-gen] - if c e il ed > (fromIn tegral :: Word64 - > N a tura l ) (m ax Bound :: Word64)
1081.53 s
[really-safe-money-gen] + if F a l se
1081.53 s
[really-safe-money-gen] then Nothing
1081.53 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
1081.53 s
[really-safe-money-gen] else Nothing
1081.53 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:341:26-91
1087.01 s
[really-safe-money-gen] @@ -338,7 +338,7 @@
1087.04 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
1087.04 s
[really-safe-money-gen] in if ceiled == floored
1087.04 s
[really-safe-money-gen] then
1087.04 s
[really-safe-money-gen] - if c e il ed > ( f r o mI n t e g ra l :: Word64 -> Natural) (maxBound :: Word64)
1087.04 s
[really-safe-money-gen] + if T r u e
1087.04 s
[really-safe-money-gen] then Nothing
1087.04 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
1087.04 s
[really-safe-money-gen] else Nothing
1087.04 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:341:26-91
1087.04 s
[really-safe-money-gen] @@ -338,7 +338,7 @@
1087.04 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
1087.04 s
[really-safe-money-gen] in if ceiled == floored
1087.04 s
[really-safe-money-gen] then
1087.04 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1087.04 s
[really-safe-money-gen] + if ceiled < (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1087.04 s
[really-safe-money-gen] then Nothing
1087.04 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
1087.04 s
[really-safe-money-gen] else Nothing
1087.04 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:668:17-30
1087.04 s
[really-safe-money-gen] @@ -665,10 +665,9 @@
1087.04 s
[really-safe-money-gen] theoreticalResult :: Ratio Natural
1087.04 s
[really-safe-money-gen] theoreticalResult = amountAsRatio * f
1087.04 s
[really-safe-money-gen] rounder :: Ratio Natural -> Natural
1087.04 s
[really-safe-money-gen] rounder = case r of
1087.04 s
[really-safe-money-gen] RoundUp -> ceiling
1087.04 s
[really-safe-money-gen] RoundDown -> floor
1087.04 s
[really-safe-money-gen] - RoundNearest -> round
1087.04 s
[really-safe-money-gen] roundedResult :: Natural
1087.04 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1087.04 s
[really-safe-money-gen] actualRate :: Ratio Natural
1087.04 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:681:12-37
1087.04 s
[really-safe-money-gen] @@ -678,7 +678,7 @@
1087.04 s
[really-safe-money-gen] maxBoundN :: Natural
1087.04 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1087.04 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
1087.04 s
[really-safe-money-gen] - in ( if roundedResult > maxBoundN
1087.05 s
[really-safe-money-gen] + in ( if roundedResult > = maxBoundN
1087.05 s
[really-safe-money-gen] then Nothing
1087.05 s
[really-safe-money-gen] else Just result,
1087.05 s
[really-safe-money-gen] actualRate
1087.05 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:681:12-37
1087.05 s
[really-safe-money-gen] @@ -678,7 +678,7 @@
1087.05 s
[really-safe-money-gen] maxBoundN :: Natural
1087.05 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1087.05 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
1087.05 s
[really-safe-money-gen] - in ( if roundedResult > maxBoundN
1087.05 s
[really-safe-money-gen] + in ( if n o t ( roundedResult > maxBoundN )
1087.05 s
[really-safe-money-gen] then Nothing
1087.05 s
[really-safe-money-gen] else Just result,
1087.05 s
[really-safe-money-gen] actualRate
1087.05 s
[really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:762:40-49
1087.05 s
[really-safe-money-gen] @@ -759,7 +759,7 @@
1087.05 s
[really-safe-money-gen] let qf1r = Prelude.fromIntegral (QuantisationFactor.unQuantisationFactor qf1)
1087.05 s
[really-safe-money-gen] qf2r = Prelude.fromIntegral (QuantisationFactor.unQuantisationFactor qf2)
1087.05 s
[really-safe-money-gen] (ma, ar) = fraction rounding a (ConversionRate.conversionFactor qf1 cr qf2)
1087.05 s
[really-safe-money-gen] - in (ma, ConversionRate.fromRatio (ar * qf1r / qf2r))
1087.05 s
[really-safe-money-gen] + in (ma, ConversionRate.fromRatio (ar - qf1r / qf2r))
1087.05 s
[really-safe-money-gen]
1087.05 s
[really-safe-money-gen] -- | Format an amount of money without a symbol.
1087.05 s
[really-safe-money-gen] --
1087.05 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:806:79-92
1087.05 s
[really-safe-money-gen] @@ -803,4 +803,4 @@
1087.05 s
[really-safe-money-gen]
1087.05 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
1087.05 s
[really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
1087.05 s
[really-safe-money-gen] - validateStrictlyPositive amount = declare "The Amount is strictly positive" $ a m o u n t > z e r o
1087.05 s
[really-safe-money-gen] + validateStrictlyPositive amount = declare "The Amount is strictly positive" $ Tr u e
1087.05 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:806:79-92
1087.05 s
[really-safe-money-gen] @@ -803,4 +803,4 @@
1087.05 s
[really-safe-money-gen]
1087.05 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
1087.05 s
[really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
1087.06 s
[really-safe-money-gen] - validateStrictlyPositive amount = declare "The Amount is strictly positive" $ a m ou nt > z e r o
1087.06 s
[really-safe-money-gen] + validateStrictlyPositive amount = declare "The Amount is strictly positive" $ F a ls e
1087.06 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:806:79-92
1087.06 s
[really-safe-money-gen] @@ -803,4 +803,4 @@
1087.06 s
[really-safe-money-gen]
1087.06 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
1087.06 s
[really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
1087.06 s
[really-safe-money-gen] - validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
1087.06 s
[really-safe-money-gen] + validateStrictlyPositive amount = declare "The Amount is strictly positive" $ n o t ( amount > zero )
1087.06 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:607:15-22
1087.06 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
1087.06 s
[really-safe-money-gen] case ad of
1087.06 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1087.06 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1087.06 s
[really-safe-money-gen] - a1 > a2
1087.06 s
[really-safe-money-gen] + a1 < = a2
1087.06 s
[really-safe-money-gen] _ -> valid
1087.06 s
[really-safe-money-gen] ]
1087.06 s
[really-safe-money-gen]
1087.06 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:607:15-22
1087.06 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
1087.06 s
[really-safe-money-gen] case ad of
1087.06 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1087.06 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1087.06 s
[really-safe-money-gen] - a1 > a2
1087.06 s
[really-safe-money-gen] + a1 < a2
1087.06 s
[really-safe-money-gen] _ -> valid
1087.06 s
[really-safe-money-gen] ]
1087.06 s
[really-safe-money-gen]
1087.06 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:681:12-37
1087.06 s
[really-safe-money-gen] @@ -678,7 +678,7 @@
1087.06 s
[really-safe-money-gen] maxBoundN :: Natural
1087.06 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1087.06 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
1087.06 s
[really-safe-money-gen] - in ( if roundedResult > maxBoundN
1087.06 s
[really-safe-money-gen] + in ( if roundedResult < maxBoundN
1087.06 s
[really-safe-money-gen] then Nothing
1087.06 s
[really-safe-money-gen] else Just result,
1087.06 s
[really-safe-money-gen] actualRate
1087.06 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:607:15-22
1087.06 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
1087.06 s
[really-safe-money-gen] case ad of
1087.06 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1087.06 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1087.06 s
[really-safe-money-gen] - a1 > a2
1087.06 s
[really-safe-money-gen] + a1 > = a2
1087.06 s
[really-safe-money-gen] _ -> valid
1087.06 s
[really-safe-money-gen] ]
1087.06 s
[really-safe-money-gen]
1087.07 s
[really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:666:27-44
1087.07 s
[really-safe-money-gen] @@ -663,7 +663,7 @@
1087.07 s
[really-safe-money-gen] let amountAsRatio :: Ratio Natural
1087.07 s
[really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
1087.07 s
[really-safe-money-gen] theoreticalResult :: Ratio Natural
1087.07 s
[really-safe-money-gen] - theoreticalResult = amountAsRatio * f
1087.07 s
[really-safe-money-gen] + theoreticalResult = amountAsRatio + f
1087.07 s
[really-safe-money-gen] rounder :: Ratio Natural -> Natural
1087.07 s
[really-safe-money-gen] rounder = case r of
1087.07 s
[really-safe-money-gen] RoundUp -> ceiling
1087.07 s
[really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:666:27-44
1087.07 s
[really-safe-money-gen] @@ -663,7 +663,7 @@
1087.07 s
[really-safe-money-gen] let amountAsRatio :: Ratio Natural
1087.07 s
[really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
1087.07 s
[really-safe-money-gen] theoreticalResult :: Ratio Natural
1087.07 s
[really-safe-money-gen] - theoreticalResult = amountAsRatio * f
1087.07 s
[really-safe-money-gen] + theoreticalResult = amountAsRatio - f
1087.07 s
[really-safe-money-gen] rounder :: Ratio Natural -> Natural
1087.07 s
[really-safe-money-gen] rounder = case r of
1087.07 s
[really-safe-money-gen] RoundUp -> ceiling
1087.07 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount.hs:603:7-8
1087.07 s
[really-safe-money-gen] @@ -600,13 +600,12 @@
1087.07 s
[really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
1087.07 s
[really-safe-money-gen] validate ad =
1087.07 s
[really-safe-money-gen] mconcat
1087.07 s
[really-safe-money-gen] - [ genericValidate ad,
1087.07 s
[really-safe-money-gen] case ad of
1087.07 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1087.07 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1087.07 s
[really-safe-money-gen] a1 > a2
1087.07 s
[really-safe-money-gen] _ -> valid
1087.07 s
[really-safe-money-gen] ]
1087.07 s
[really-safe-money-gen]
1087.07 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
1087.07 s
[really-safe-money-gen]
1087.07 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:681:12-37
1087.07 s
[really-safe-money-gen] @@ -678,7 +678,7 @@
1087.07 s
[really-safe-money-gen] maxBoundN :: Natural
1087.07 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1087.07 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
1087.07 s
[really-safe-money-gen] - in ( if roundedResult > maxBoundN
1087.07 s
[really-safe-money-gen] + in ( if roundedResult < = maxBoundN
1087.07 s
[really-safe-money-gen] then Nothing
1087.07 s
[really-safe-money-gen] else Just result,
1087.07 s
[really-safe-money-gen] actualRate
1091.79 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/MultiAmount.hs:168:20-45
1091.79 s
[really-safe-money-gen] @@ -165,7 +165,7 @@
1091.79 s
[really-safe-money-gen] maxBoundN :: Natural
1091.79 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1091.79 s
[really-safe-money-gen] actualResult =
1091.79 s
[really-safe-money-gen] - if roundedResult > maxBoundN
1091.79 s
[really-safe-money-gen] + if roundedResult > = maxBoundN
1091.79 s
[really-safe-money-gen] then Nothing
1091.79 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
1091.79 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1091.79 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:168:20-45
1091.79 s
[really-safe-money-gen] @@ -165,7 +165,7 @@
1091.79 s
[really-safe-money-gen] maxBoundN :: Natural
1091.79 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1091.79 s
[really-safe-money-gen] actualResult =
1091.79 s
[really-safe-money-gen] - if r o u n ded R e s u lt > maxBoundN
1091.80 s
[really-safe-money-gen] + if T r u e
1091.80 s
[really-safe-money-gen] then Nothing
1091.80 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
1091.80 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1091.80 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:168:20-45
1091.80 s
[really-safe-money-gen] @@ -165,7 +165,7 @@
1091.80 s
[really-safe-money-gen] maxBoundN :: Natural
1091.80 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1091.80 s
[really-safe-money-gen] actualResult =
1091.80 s
[really-safe-money-gen] - if r ou nde dResult > m a xBo u ndN
1091.80 s
[really-safe-money-gen] + if F a l se
1091.80 s
[really-safe-money-gen] then Nothing
1091.80 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
1091.80 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1091.80 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/MultiAmount.hs:168:20-45
1091.80 s
[really-safe-money-gen] @@ -165,7 +165,7 @@
1091.80 s
[really-safe-money-gen] maxBoundN :: Natural
1091.80 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1091.80 s
[really-safe-money-gen] actualResult =
1091.80 s
[really-safe-money-gen] - if roundedResult > maxBoundN
1091.80 s
[really-safe-money-gen] + if roundedResult < maxBoundN
1091.80 s
[really-safe-money-gen] then Nothing
1091.80 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
1091.80 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1091.80 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:168:20-45
1091.80 s
[really-safe-money-gen] @@ -165,7 +165,7 @@
1091.80 s
[really-safe-money-gen] maxBoundN :: Natural
1091.80 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1091.80 s
[really-safe-money-gen] actualResult =
1091.80 s
[really-safe-money-gen] - if roundedResult > maxBoundN
1091.80 s
[really-safe-money-gen] + if n o t ( roundedResult > maxBoundN )
1091.80 s
[really-safe-money-gen] then Nothing
1091.81 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
1091.81 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1091.81 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
1091.81 s
[really-safe-money-gen] @@ -156,10 +156,9 @@
1091.81 s
[really-safe-money-gen] fmap
1091.81 s
[really-safe-money-gen] ( ( \theoreticalResult ->
1091.81 s
[really-safe-money-gen] let rounder :: Ratio Natural -> Natural
1091.81 s
[really-safe-money-gen] rounder = case r of
1091.81 s
[really-safe-money-gen] RoundUp -> ceiling
1091.81 s
[really-safe-money-gen] - RoundDown -> floor
1091.81 s
[really-safe-money-gen] RoundNearest -> round
1091.81 s
[really-safe-money-gen] roundedResult :: Natural
1091.81 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1091.81 s
[really-safe-money-gen] maxBoundN :: Natural
1091.81 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAmount.hs:170:24-57
1091.81 s
[really-safe-money-gen] @@ -167,7 +167,7 @@
1091.81 s
[really-safe-money-gen] actualResult =
1091.81 s
[really-safe-money-gen] if roundedResult > maxBoundN
1091.81 s
[really-safe-money-gen] then Nothing
1091.81 s
[really-safe-money-gen] - else J u st (fr o mI n t e gral ro u n d e dResult)
1091.81 s
[really-safe-money-gen] + else N o t hi n g
1091.81 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1091.81 s
[really-safe-money-gen] LT -> RoundedDown
1091.81 s
[really-safe-money-gen] EQ -> DidNotRound
1091.81 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
1091.81 s
[really-safe-money-gen] @@ -168,10 +168,9 @@
1091.81 s
[really-safe-money-gen] if roundedResult > maxBoundN
1091.81 s
[really-safe-money-gen] then Nothing
1091.81 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
1091.81 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1091.81 s
[really-safe-money-gen] - LT -> RoundedDown
1091.81 s
[really-safe-money-gen] EQ -> DidNotRound
1091.81 s
[really-safe-money-gen] GT -> RoundedUp
1091.81 s
[really-safe-money-gen] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
1091.81 s
[really-safe-money-gen] )
1091.81 s
[really-safe-money-gen] . Prelude.sum
1091.81 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
1091.81 s
[really-safe-money-gen] @@ -168,10 +168,9 @@
1091.81 s
[really-safe-money-gen] if roundedResult > maxBoundN
1091.81 s
[really-safe-money-gen] then Nothing
1091.81 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
1091.81 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1091.81 s
[really-safe-money-gen] LT -> RoundedDown
1091.81 s
[really-safe-money-gen] - EQ -> DidNotRound
1091.81 s
[really-safe-money-gen] GT -> RoundedUp
1091.81 s
[really-safe-money-gen] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
1091.81 s
[really-safe-money-gen] )
1091.81 s
[really-safe-money-gen] . Prelude.sum
1091.81 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/MultiAmount.hs:168:20-45
1091.81 s
[really-safe-money-gen] @@ -165,7 +165,7 @@
1091.81 s
[really-safe-money-gen] maxBoundN :: Natural
1091.81 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1091.81 s
[really-safe-money-gen] actualResult =
1091.81 s
[really-safe-money-gen] - if roundedResult > maxBoundN
1091.81 s
[really-safe-money-gen] + if roundedResult < = maxBoundN
1091.81 s
[really-safe-money-gen] then Nothing
1091.81 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
1091.81 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1091.81 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:607:15-22
1091.81 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
1091.81 s
[really-safe-money-gen] case ad of
1091.81 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1091.81 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1091.82 s
[really-safe-money-gen] - a1 > a2
1091.82 s
[really-safe-money-gen] + n o t ( a1 > a2 )
1091.82 s
[really-safe-money-gen] _ -> valid
1091.82 s
[really-safe-money-gen] ]
1091.82 s
[really-safe-money-gen]
1091.82 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:604:9-21
1091.82 s
[really-safe-money-gen] @@ -601,11 +601,8 @@
1091.82 s
[really-safe-money-gen] validate ad =
1091.82 s
[really-safe-money-gen] mconcat
1091.82 s
[really-safe-money-gen] [ genericValidate ad,
1091.82 s
[really-safe-money-gen] case ad of
1091.82 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
1091.82 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
1091.82 s
[really-safe-money-gen] - a1 > a2
1091.82 s
[really-safe-money-gen] _ -> valid
1091.82 s
[really-safe-money-gen] ]
1091.82 s
[really-safe-money-gen]
1091.82 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
1091.82 s
[really-safe-money-gen] Testing mutation Arith at src/Money/MultiAmount.hs:182:15-106
1091.82 s
[really-safe-money-gen] @@ -179,7 +179,7 @@
1091.82 s
[really-safe-money-gen] . traverse
1091.82 s
[really-safe-money-gen] ( \(currency, a) ->
1091.82 s
[really-safe-money-gen] ( \(cr, qf2) ->
1091.82 s
[really-safe-money-gen] - fromIntegral (Amount.toMinimalQuantisations a) * ConversionRate.conversionFactor qf2 cr qf1
1091.82 s
[really-safe-money-gen] + fromIntegral (Amount.toMinimalQuantisations a) + ConversionRate.conversionFactor qf2 cr qf1
1091.82 s
[really-safe-money-gen] )
1091.82 s
[really-safe-money-gen] <$> func currency
1091.82 s
[really-safe-money-gen] )
1091.82 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
1091.82 s
[really-safe-money-gen] @@ -168,10 +168,9 @@
1091.82 s
[really-safe-money-gen] if roundedResult > maxBoundN
1091.82 s
[really-safe-money-gen] then Nothing
1091.82 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
1091.82 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1091.82 s
[really-safe-money-gen] LT -> RoundedDown
1091.82 s
[really-safe-money-gen] EQ -> DidNotRound
1091.82 s
[really-safe-money-gen] - GT -> RoundedUp
1091.82 s
[really-safe-money-gen] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
1091.82 s
[really-safe-money-gen] )
1091.82 s
[really-safe-money-gen] . Prelude.sum
1091.82 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount.hs:603:7-8
1091.82 s
[really-safe-money-gen] @@ -600,13 +600,7 @@
1091.82 s
[really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
1091.82 s
[really-safe-money-gen] validate ad =
1091.82 s
[really-safe-money-gen] mconcat
1091.82 s
[really-safe-money-gen] - [ genericValidate ad,
1091.83 s
[really-safe-money-gen] - case ad of
1091.83 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
1091.83 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
1091.83 s
[really-safe-money-gen] - a1 > a2
1091.83 s
[really-safe-money-gen] - _ -> valid
1091.83 s
[really-safe-money-gen] ]
1091.83 s
[really-safe-money-gen]
1091.83 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
1091.83 s
[really-safe-money-gen]
1091.83 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:607:15-22
1091.83 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
1091.83 s
[really-safe-money-gen] case ad of
1095.15 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1095.15 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1095.22 s
[really-safe-money-gen] - a 1 > a 2
1095.22 s
[really-safe-money-gen] + F a l s e
1095.22 s
[really-safe-money-gen] _ -> valid
1095.22 s
[really-safe-money-gen] ]
1095.22 s
[really-safe-money-gen]
1095.22 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
1095.22 s
[really-safe-money-gen] @@ -156,10 +156,9 @@
1095.23 s
[really-safe-money-gen] fmap
1095.23 s
[really-safe-money-gen] ( ( \theoreticalResult ->
1095.23 s
[really-safe-money-gen] let rounder :: Ratio Natural -> Natural
1095.23 s
[really-safe-money-gen] rounder = case r of
1095.23 s
[really-safe-money-gen] RoundUp -> ceiling
1095.23 s
[really-safe-money-gen] RoundDown -> floor
1095.23 s
[really-safe-money-gen] - RoundNearest -> round
1095.23 s
[really-safe-money-gen] roundedResult :: Natural
1095.23 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1095.23 s
[really-safe-money-gen] maxBoundN :: Natural
1095.23 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:607:15-22
1095.23 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
1095.23 s
[really-safe-money-gen] case ad of
1095.23 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1095.23 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1095.23 s
[really-safe-money-gen] - a 1 > a2
1095.23 s
[really-safe-money-gen] + T rue
1095.23 s
[really-safe-money-gen] _ -> valid
1095.23 s
[really-safe-money-gen] ]
1095.23 s
[really-safe-money-gen]
1095.23 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:114:22-37
1095.23 s
[really-safe-money-gen] @@ -111,14 +111,13 @@
1095.23 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
1095.23 s
[really-safe-money-gen] subtractAmount m _ (Amount 0) = Just m
1095.23 s
[really-safe-money-gen] subtractAmount (MultiAmount m) currency amount =
1095.23 s
[really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
1095.23 s
[really-safe-money-gen] - Nothing -> Nothing -- Can't go below zero
1095.23 s
[really-safe-money-gen] Just a -> do
1095.23 s
[really-safe-money-gen] r <- Amount.subtract a amount
1095.23 s
[really-safe-money-gen] Just $
1095.23 s
[really-safe-money-gen] if r == Amount.zero
1095.23 s
[really-safe-money-gen] then M.delete currency m
1095.23 s
[really-safe-money-gen] else M.insert currency r m
1095.23 s
[really-safe-money-gen]
1095.23 s
[really-safe-money-gen] -- | Try to convert every amount to one currency.
1095.23 s
[really-safe-money-gen] --
1095.23 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:119:12-28
1095.23 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
1095.23 s
[really-safe-money-gen] Just a -> do
1095.23 s
[really-safe-money-gen] r <- Amount.subtract a amount
1095.23 s
[really-safe-money-gen] Just $
1095.23 s
[really-safe-money-gen] - if r == Amount.zero
1095.23 s
[really-safe-money-gen] + if n o t ( r == Amount.zero )
1095.23 s
[really-safe-money-gen] then M.delete currency m
1095.23 s
[really-safe-money-gen] else M.insert currency r m
1095.23 s
[really-safe-money-gen]
1095.24 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:119:12-28
1095.24 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
1095.24 s
[really-safe-money-gen] Just a -> do
1095.24 s
[really-safe-money-gen] r <- Amount.subtract a amount
1095.24 s
[really-safe-money-gen] Just $
1095.24 s
[really-safe-money-gen] - if r == A mount .z e ro
1095.24 s
[really-safe-money-gen] + if Fal s e
1095.24 s
[really-safe-money-gen] then M.delete currency m
1095.24 s
[really-safe-money-gen] else M.insert currency r m
1095.24 s
[really-safe-money-gen]
1095.24 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:119:12-28
1095.24 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
1095.24 s
[really-safe-money-gen] Just a -> do
1095.24 s
[really-safe-money-gen] r <- Amount.subtract a amount
1095.24 s
[really-safe-money-gen] Just $
1095.24 s
[really-safe-money-gen] - if r == Am o u n t. z e r o
1095.24 s
[really-safe-money-gen] + if T r u e
1095.24 s
[really-safe-money-gen] then M.delete currency m
1095.24 s
[really-safe-money-gen] else M.insert currency r m
1095.24 s
[really-safe-money-gen]
1095.24 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAmount.hs:112:33-39
1095.24 s
[really-safe-money-gen] @@ -109,7 +109,7 @@
1095.24 s
[really-safe-money-gen]
1095.24 s
[really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
1095.24 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
1095.24 s
[really-safe-money-gen] - subtractAmount m _ (Amount 0) = J u s t m
1095.24 s
[really-safe-money-gen] + subtractAmount m _ (Amount 0) = No t h ing
1095.24 s
[really-safe-money-gen] subtractAmount (MultiAmount m) currency amount =
1095.24 s
[really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
1095.24 s
[really-safe-money-gen] Nothing -> Nothing -- Can't go below zero
1095.24 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:114:22-37
1095.24 s
[really-safe-money-gen] @@ -111,14 +111,8 @@
1095.24 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
1095.24 s
[really-safe-money-gen] subtractAmount m _ (Amount 0) = Just m
1095.24 s
[really-safe-money-gen] subtractAmount (MultiAmount m) currency amount =
1095.24 s
[really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
1095.24 s
[really-safe-money-gen] Nothing -> Nothing -- Can't go below zero
1095.24 s
[really-safe-money-gen] - Just a -> do
1095.24 s
[really-safe-money-gen] - r <- Amount.subtract a amount
1095.24 s
[really-safe-money-gen] - Just $
1095.24 s
[really-safe-money-gen] - if r == Amount.zero
1095.24 s
[really-safe-money-gen] - then M.delete currency m
1095.24 s
[really-safe-money-gen] - else M.insert currency r m
1095.24 s
[really-safe-money-gen]
1095.24 s
[really-safe-money-gen] -- | Try to convert every amount to one currency.
1095.24 s
[really-safe-money-gen] --
1095.24 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAmount.hs:99:28-34
1095.24 s
[really-safe-money-gen] @@ -96,7 +96,7 @@
1095.24 s
[really-safe-money-gen]
1095.24 s
[really-safe-money-gen] -- | Add an 'Amount' to a 'MultiAmount'
1095.24 s
[really-safe-money-gen] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
1095.24 s
[really-safe-money-gen] - addAmount m _ (Amount 0) = J u s t m
1095.24 s
[really-safe-money-gen] + addAmount m _ (Amount 0) = No t h ing
1095.24 s
[really-safe-money-gen] addAmount (MultiAmount m) currency amount =
1095.24 s
[really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
1095.24 s
[really-safe-money-gen] Nothing -> Just $ M.insert currency amount m
1095.25 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:106:12-28
1095.25 s
[really-safe-money-gen] @@ -103,7 +103,7 @@
1095.25 s
[really-safe-money-gen] Just a -> do
1095.25 s
[really-safe-money-gen] r <- Amount.add a amount
1095.25 s
[really-safe-money-gen] Just $
1095.25 s
[really-safe-money-gen] - if r == Am o u n t. z e r o
1095.25 s
[really-safe-money-gen] + if T r u e
1095.25 s
[really-safe-money-gen] then M.delete currency m
1095.25 s
[really-safe-money-gen] else M.insert currency r m
1095.25 s
[really-safe-money-gen]
1095.25 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:106:12-28
1095.25 s
[really-safe-money-gen] @@ -103,7 +103,7 @@
1095.25 s
[really-safe-money-gen] Just a -> do
1095.25 s
[really-safe-money-gen] r <- Amount.add a amount
1095.25 s
[really-safe-money-gen] Just $
1095.25 s
[really-safe-money-gen] - if r == A mount .z e ro
1095.25 s
[really-safe-money-gen] + if Fal s e
1095.25 s
[really-safe-money-gen] then M.delete currency m
1095.25 s
[really-safe-money-gen] else M.insert currency r m
1095.25 s
[really-safe-money-gen]
1095.25 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:106:12-28
1095.25 s
[really-safe-money-gen] @@ -103,7 +103,7 @@
1095.25 s
[really-safe-money-gen] Just a -> do
1095.25 s
[really-safe-money-gen] r <- Amount.add a amount
1095.25 s
[really-safe-money-gen] Just $
1095.25 s
[really-safe-money-gen] - if r == Amount.zero
1095.25 s
[really-safe-money-gen] + if n o t ( r == Amount.zero )
1095.25 s
[really-safe-money-gen] then M.delete currency m
1095.25 s
[really-safe-money-gen] else M.insert currency r m
1095.25 s
[really-safe-money-gen]
1095.25 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:101:22-37
1095.25 s
[really-safe-money-gen] @@ -98,14 +98,13 @@
1095.25 s
[really-safe-money-gen] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
1095.25 s
[really-safe-money-gen] addAmount m _ (Amount 0) = Just m
1095.25 s
[really-safe-money-gen] addAmount (MultiAmount m) currency amount =
1095.25 s
[really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
1095.25 s
[really-safe-money-gen] - Nothing -> Just $ M.insert currency amount m
1095.25 s
[really-safe-money-gen] Just a -> do
1095.25 s
[really-safe-money-gen] r <- Amount.add a amount
1095.25 s
[really-safe-money-gen] Just $
1095.25 s
[really-safe-money-gen] if r == Amount.zero
1095.25 s
[really-safe-money-gen] then M.delete currency m
1095.25 s
[really-safe-money-gen] else M.insert currency r m
1095.25 s
[really-safe-money-gen]
1095.25 s
[really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
1095.25 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
1095.25 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:101:22-37
1095.25 s
[really-safe-money-gen] @@ -98,14 +98,8 @@
1095.25 s
[really-safe-money-gen] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
1095.26 s
[really-safe-money-gen] addAmount m _ (Amount 0) = Just m
1095.26 s
[really-safe-money-gen] addAmount (MultiAmount m) currency amount =
1095.26 s
[really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
1095.26 s
[really-safe-money-gen] Nothing -> Just $ M.insert currency amount m
1095.26 s
[really-safe-money-gen] - Just a -> do
1095.26 s
[really-safe-money-gen] - r <- Amount.add a amount
1095.26 s
[really-safe-money-gen] - Just $
1095.26 s
[really-safe-money-gen] - if r == Amount.zero
1095.26 s
[really-safe-money-gen] - then M.delete currency m
1095.26 s
[really-safe-money-gen] - else M.insert currency r m
1095.26 s
[really-safe-money-gen]
1095.26 s
[really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
1095.26 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
1095.26 s
[really-safe-money-gen] Testing mutation Arith at src/Money/MultiAmount.hs:182:15-106
1095.26 s
[really-safe-money-gen] @@ -179,7 +179,7 @@
1095.26 s
[really-safe-money-gen] . traverse
1095.26 s
[really-safe-money-gen] ( \(currency, a) ->
1095.26 s
[really-safe-money-gen] ( \(cr, qf2) ->
1095.26 s
[really-safe-money-gen] - fromIntegral (Amount.toMinimalQuantisations a) * ConversionRate.conversionFactor qf2 cr qf1
1095.26 s
[really-safe-money-gen] + fromIntegral (Amount.toMinimalQuantisations a) - ConversionRate.conversionFactor qf2 cr qf1
1095.26 s
[really-safe-money-gen] )
1095.26 s
[really-safe-money-gen] <$> func currency
1095.26 s
[really-safe-money-gen] )
1095.27 s
[really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:762:40-49
1099.57 s
[really-safe-money-gen] @@ -759,7 +759,7 @@
1099.57 s
[really-safe-money-gen] let qf1r = Prelude.fromIntegral (QuantisationFactor.unQuantisationFactor qf1)
1099.57 s
[really-safe-money-gen] qf2r = Prelude.fromIntegral (QuantisationFactor.unQuantisationFactor qf2)
1099.57 s
[really-safe-money-gen] (ma, ar) = fraction rounding a (ConversionRate.conversionFactor qf1 cr qf2)
1099.57 s
[really-safe-money-gen] - in (ma, ConversionRate.fromRatio (ar * qf1r / qf2r))
1099.57 s
[really-safe-money-gen] + in (ma, ConversionRate.fromRatio (ar + qf1r / qf2r))
1099.57 s
[really-safe-money-gen]
1099.57 s
[really-safe-money-gen] -- | Format an amount of money without a symbol.
1099.57 s
[really-safe-money-gen] --
1099.57 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:806:79-92
1099.58 s
[really-safe-money-gen] @@ -803,4 +803,4 @@
1099.58 s
[really-safe-money-gen]
1099.58 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
1099.58 s
[really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
1099.58 s
[really-safe-money-gen] - validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
1099.58 s
[really-safe-money-gen] + validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount < = zero
1099.58 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
1099.58 s
[really-safe-money-gen] @@ -156,10 +156,9 @@
1099.58 s
[really-safe-money-gen] fmap
1099.58 s
[really-safe-money-gen] ( ( \theoreticalResult ->
1099.58 s
[really-safe-money-gen] let rounder :: Ratio Natural -> Natural
1099.58 s
[really-safe-money-gen] rounder = case r of
1099.58 s
[really-safe-money-gen] - RoundUp -> ceiling
1099.58 s
[really-safe-money-gen] RoundDown -> floor
1099.58 s
[really-safe-money-gen] RoundNearest -> round
1099.58 s
[really-safe-money-gen] roundedResult :: Natural
1099.58 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1099.58 s
[really-safe-money-gen] maxBoundN :: Natural
1099.58 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/Amount.hs:683:16-27
1099.58 s
[really-safe-money-gen] @@ -680,7 +680,7 @@
1099.58 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
1099.58 s
[really-safe-money-gen] in ( if roundedResult > maxBoundN
1099.58 s
[really-safe-money-gen] then Nothing
1099.58 s
[really-safe-money-gen] - else J us t r es ul t ,
1099.58 s
[really-safe-money-gen] + else No t hi n g ,
1099.58 s
[really-safe-money-gen] actualRate
1099.58 s
[really-safe-money-gen] )
1099.58 s
[really-safe-money-gen]
1099.58 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:681:12-37
1099.58 s
[really-safe-money-gen] @@ -678,7 +678,7 @@
1099.58 s
[really-safe-money-gen] maxBoundN :: Natural
1099.58 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1099.58 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
1099.58 s
[really-safe-money-gen] - in ( if r o u n ded R e s u lt > maxBoundN
1099.58 s
[really-safe-money-gen] + in ( if T r u e
1099.58 s
[really-safe-money-gen] then Nothing
1099.58 s
[really-safe-money-gen] else Just result,
1099.58 s
[really-safe-money-gen] actualRate
1099.58 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:806:79-92
1099.58 s
[really-safe-money-gen] @@ -803,4 +803,4 @@
1099.58 s
[really-safe-money-gen]
1099.59 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
1099.59 s
[really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
1099.59 s
[really-safe-money-gen] - validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
1099.59 s
[really-safe-money-gen] + validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > = zero
1099.59 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:806:79-92
1099.59 s
[really-safe-money-gen] @@ -803,4 +803,4 @@
1099.59 s
[really-safe-money-gen]
1099.59 s
[really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
1099.59 s
[really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
1099.59 s
[really-safe-money-gen] - validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
1099.59 s
[really-safe-money-gen] + validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount < zero
1099.59 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:681:12-37
1099.59 s
[really-safe-money-gen] @@ -678,7 +678,7 @@
1099.59 s
[really-safe-money-gen] maxBoundN :: Natural
1099.59 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1099.59 s
[really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
1099.59 s
[really-safe-money-gen] - in ( if r ou nde dResult > m a xBo u ndN
1099.59 s
[really-safe-money-gen] + in ( if F a l se
1099.59 s
[really-safe-money-gen] then Nothing
1099.59 s
[really-safe-money-gen] else Just result,
1099.59 s
[really-safe-money-gen] actualRate
1099.59 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:604:9-21
1099.59 s
[really-safe-money-gen] @@ -601,11 +601,10 @@
1099.59 s
[really-safe-money-gen] validate ad =
1099.59 s
[really-safe-money-gen] mconcat
1099.59 s
[really-safe-money-gen] [ genericValidate ad,
1099.59 s
[really-safe-money-gen] case ad of
1099.59 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1099.59 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1099.59 s
[really-safe-money-gen] a1 > a2
1099.59 s
[really-safe-money-gen] - _ -> valid
1099.59 s
[really-safe-money-gen] ]
1099.59 s
[really-safe-money-gen]
1099.59 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
1099.59 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
1099.59 s
[really-safe-money-gen] @@ -212,11 +212,10 @@
1099.59 s
[really-safe-money-gen]
1099.59 s
[really-safe-money-gen] -- | See 'Amount.distribute'
1099.59 s
[really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
1099.59 s
[really-safe-money-gen] distribute (AmountOf a) f = case Amount.distribute a f of
1099.59 s
[really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
1099.59 s
[really-safe-money-gen] - DistributedZero -> DistributedZero
1099.59 s
[really-safe-money-gen] DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
1099.59 s
[really-safe-money-gen] DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
1099.59 s
[really-safe-money-gen]
1099.59 s
[really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
1099.59 s
[really-safe-money-gen]
1099.59 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAmount.hs:63:7-8
1099.59 s
[really-safe-money-gen] @@ -60,11 +60,7 @@
1099.60 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
1099.60 s
[really-safe-money-gen] validate ma@(MultiAmount m) =
1099.60 s
[really-safe-money-gen] mconcat
1099.60 s
[really-safe-money-gen] - [ genericValidate ma,
1099.60 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
1099.60 s
[really-safe-money-gen] - declare "The amount is not zero" $
1099.60 s
[really-safe-money-gen] - a /= Amount.zero
1099.60 s
[really-safe-money-gen] ]
1099.60 s
[really-safe-money-gen]
1099.60 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
1099.60 s
[really-safe-money-gen]
1099.60 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
1099.60 s
[really-safe-money-gen] @@ -171,10 +171,9 @@
1099.60 s
[really-safe-money-gen] fmap
1099.60 s
[really-safe-money-gen] ( ( \theoreticalResult ->
1099.60 s
[really-safe-money-gen] let rounder :: Rational -> Integer
1099.60 s
[really-safe-money-gen] rounder = case r of
1099.60 s
[really-safe-money-gen] RoundUp -> ceiling
1099.60 s
[really-safe-money-gen] - RoundDown -> floor
1099.60 s
[really-safe-money-gen] RoundNearest -> round
1099.60 s
[really-safe-money-gen] roundedResult :: Integer
1099.60 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1099.60 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1099.60 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
1099.60 s
[really-safe-money-gen] @@ -171,10 +171,9 @@
1099.60 s
[really-safe-money-gen] fmap
1099.60 s
[really-safe-money-gen] ( ( \theoreticalResult ->
1099.60 s
[really-safe-money-gen] let rounder :: Rational -> Integer
1099.60 s
[really-safe-money-gen] rounder = case r of
1099.60 s
[really-safe-money-gen] RoundUp -> ceiling
1099.60 s
[really-safe-money-gen] RoundDown -> floor
1099.60 s
[really-safe-money-gen] - RoundNearest -> round
1099.60 s
[really-safe-money-gen] roundedResult :: Integer
1099.60 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1099.60 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1099.60 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
1099.60 s
[really-safe-money-gen] @@ -177,10 +177,9 @@
1099.60 s
[really-safe-money-gen] RoundNearest -> round
1099.60 s
[really-safe-money-gen] roundedResult :: Integer
1099.60 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1099.60 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1099.60 s
[really-safe-money-gen] LT -> RoundedDown
1099.60 s
[really-safe-money-gen] - EQ -> DidNotRound
1099.60 s
[really-safe-money-gen] GT -> RoundedUp
1099.60 s
[really-safe-money-gen] in (Account.fromMinimalQuantisations roundedResult, rounded)
1099.60 s
[really-safe-money-gen] )
1099.60 s
[really-safe-money-gen] . Prelude.sum
1099.60 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
1099.60 s
[really-safe-money-gen] @@ -177,10 +177,9 @@
1099.60 s
[really-safe-money-gen] RoundNearest -> round
1099.60 s
[really-safe-money-gen] roundedResult :: Integer
1099.60 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1099.60 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1099.60 s
[really-safe-money-gen] LT -> RoundedDown
1099.60 s
[really-safe-money-gen] EQ -> DidNotRound
1099.60 s
[really-safe-money-gen] - GT -> RoundedUp
1099.60 s
[really-safe-money-gen] in (Account.fromMinimalQuantisations roundedResult, rounded)
1099.60 s
[really-safe-money-gen] )
1099.60 s
[really-safe-money-gen] . Prelude.sum
1099.60 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
1099.60 s
[really-safe-money-gen] @@ -177,10 +177,9 @@
1099.60 s
[really-safe-money-gen] RoundNearest -> round
1099.60 s
[really-safe-money-gen] roundedResult :: Integer
1099.60 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1099.60 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1099.60 s
[really-safe-money-gen] - LT -> RoundedDown
1099.60 s
[really-safe-money-gen] EQ -> DidNotRound
1099.60 s
[really-safe-money-gen] GT -> RoundedUp
1099.60 s
[really-safe-money-gen] in (Account.fromMinimalQuantisations roundedResult, rounded)
1099.61 s
[really-safe-money-gen] )
1099.61 s
[really-safe-money-gen] . Prelude.sum
1099.61 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
1099.61 s
[really-safe-money-gen] @@ -171,10 +171,9 @@
1099.61 s
[really-safe-money-gen] fmap
1099.61 s
[really-safe-money-gen] ( ( \theoreticalResult ->
1104.71 s
[really-safe-money-gen] let rounder :: Rational -> Integer
1104.73 s
[really-safe-money-gen] rounder = case r of
1104.73 s
[really-safe-money-gen] - RoundUp -> ceiling
1104.73 s
[really-safe-money-gen] RoundDown -> floor
1104.73 s
[really-safe-money-gen] RoundNearest -> round
1104.73 s
[really-safe-money-gen] roundedResult :: Integer
1104.73 s
[really-safe-money-gen] roundedResult = rounder theoreticalResult
1104.73 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1104.73 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAccount.hs:126:45-51
1104.73 s
[really-safe-money-gen] @@ -123,7 +123,7 @@
1104.73 s
[really-safe-money-gen]
1104.73 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
1104.74 s
[really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
1104.74 s
[really-safe-money-gen] - subtractAccount m _ (Positive (Amount 0)) = J u s t m
1104.74 s
[really-safe-money-gen] + subtractAccount m _ (Positive (Amount 0)) = No t h ing
1104.74 s
[really-safe-money-gen] subtractAccount m _ (Negative (Amount 0)) = Just m
1104.74 s
[really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
1104.74 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1104.74 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
1104.74 s
[really-safe-money-gen] @@ -212,11 +212,10 @@
1104.74 s
[really-safe-money-gen]
1104.74 s
[really-safe-money-gen] -- | See 'Amount.distribute'
1104.74 s
[really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
1104.74 s
[really-safe-money-gen] distribute (AmountOf a) f = case Amount.distribute a f of
1104.74 s
[really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
1104.74 s
[really-safe-money-gen] DistributedZero -> DistributedZero
1104.74 s
[really-safe-money-gen] DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
1104.74 s
[really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
1104.74 s
[really-safe-money-gen]
1104.74 s
[really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
1104.74 s
[really-safe-money-gen]
1104.74 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:66:13-29
1104.74 s
[really-safe-money-gen] @@ -63,7 +63,7 @@
1104.74 s
[really-safe-money-gen] [ genericValidate ma,
1104.74 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1104.74 s
[really-safe-money-gen] declare "The amount is not zero" $
1104.74 s
[really-safe-money-gen] - a / = Am ount .z e ro
1104.74 s
[really-safe-money-gen] + F a l s e
1104.74 s
[really-safe-money-gen] ]
1104.74 s
[really-safe-money-gen]
1104.74 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
1104.74 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
1104.74 s
[really-safe-money-gen] @@ -212,11 +212,10 @@
1104.74 s
[really-safe-money-gen]
1104.74 s
[really-safe-money-gen] -- | See 'Amount.distribute'
1104.74 s
[really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
1104.75 s
[really-safe-money-gen] distribute (AmountOf a) f = case Amount.distribute a f of
1104.75 s
[really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
1104.75 s
[really-safe-money-gen] DistributedZero -> DistributedZero
1104.75 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
1104.75 s
[really-safe-money-gen] DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
1104.75 s
[really-safe-money-gen]
1104.75 s
[really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
1104.75 s
[really-safe-money-gen]
1104.75 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:73:6-27
1104.75 s
[really-safe-money-gen] @@ -70,7 +70,7 @@
1104.75 s
[really-safe-money-gen]
1104.75 s
[really-safe-money-gen] fromAmount :: currency -> Amount -> MultiAmount currency
1104.75 s
[really-safe-money-gen] fromAmount currency amount =
1104.75 s
[really-safe-money-gen] - if a m o unt == A mou n t.z e ro
1104.75 s
[really-safe-money-gen] + if F a ls e
1104.75 s
[really-safe-money-gen] then zero
1104.75 s
[really-safe-money-gen] else MultiAmount $ M.singleton currency amount
1104.75 s
[really-safe-money-gen]
1104.75 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:73:6-27
1104.75 s
[really-safe-money-gen] @@ -70,7 +70,7 @@
1104.75 s
[really-safe-money-gen]
1104.75 s
[really-safe-money-gen] fromAmount :: currency -> Amount -> MultiAmount currency
1104.75 s
[really-safe-money-gen] fromAmount currency amount =
1104.75 s
[really-safe-money-gen] - if a m o u n t == Amoun t.z e ro
1104.75 s
[really-safe-money-gen] + if Tr u e
1104.75 s
[really-safe-money-gen] then zero
1104.75 s
[really-safe-money-gen] else MultiAmount $ M.singleton currency amount
1104.75 s
[really-safe-money-gen]
1104.75 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAccount.hs:127:45-51
1104.75 s
[really-safe-money-gen] @@ -124,7 +124,7 @@
1104.75 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
1104.75 s
[really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
1104.75 s
[really-safe-money-gen] subtractAccount m _ (Positive (Amount 0)) = Just m
1104.75 s
[really-safe-money-gen] - subtractAccount m _ (Negative (Amount 0)) = J u s t m
1104.75 s
[really-safe-money-gen] + subtractAccount m _ (Negative (Amount 0)) = No t h ing
1104.75 s
[really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
1104.75 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1104.75 s
[really-safe-money-gen] Nothing -> Just $ M.insert currency (Account.negate account) m
1104.75 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:134:12-29
1104.75 s
[really-safe-money-gen] @@ -131,7 +131,7 @@
1104.76 s
[really-safe-money-gen] Just a -> do
1104.76 s
[really-safe-money-gen] r <- Account.subtract a account
1104.76 s
[really-safe-money-gen] Just $
1104.76 s
[really-safe-money-gen] - if r == Accou n t .z e ro
1104.76 s
[really-safe-money-gen] + if F als e
1104.76 s
[really-safe-money-gen] then M.delete currency m
1104.76 s
[really-safe-money-gen] else M.insert currency r m
1104.76 s
[really-safe-money-gen]
1104.76 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:134:12-29
1104.76 s
[really-safe-money-gen] @@ -131,7 +131,7 @@
1104.76 s
[really-safe-money-gen] Just a -> do
1104.76 s
[really-safe-money-gen] r <- Account.subtract a account
1104.76 s
[really-safe-money-gen] Just $
1104.76 s
[really-safe-money-gen] - if r == Account.zero
1104.76 s
[really-safe-money-gen] + if n o t ( r == Account.zero )
1104.76 s
[really-safe-money-gen] then M.delete currency m
1104.76 s
[really-safe-money-gen] else M.insert currency r m
1104.76 s
[really-safe-money-gen]
1104.76 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:129:23-37
1104.76 s
[really-safe-money-gen] @@ -126,14 +126,8 @@
1104.76 s
[really-safe-money-gen] subtractAccount m _ (Positive (Amount 0)) = Just m
1104.76 s
[really-safe-money-gen] subtractAccount m _ (Negative (Amount 0)) = Just m
1104.76 s
[really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
1104.76 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1104.76 s
[really-safe-money-gen] Nothing -> Just $ M.insert currency (Account.negate account) m
1104.76 s
[really-safe-money-gen] - Just a -> do
1104.76 s
[really-safe-money-gen] - r <- Account.subtract a account
1104.76 s
[really-safe-money-gen] - Just $
1104.76 s
[really-safe-money-gen] - if r == Account.zero
1104.76 s
[really-safe-money-gen] - then M.delete currency m
1104.76 s
[really-safe-money-gen] - else M.insert currency r m
1104.76 s
[really-safe-money-gen]
1104.76 s
[really-safe-money-gen] -- | Try to convert every account to one currency.
1104.76 s
[really-safe-money-gen] --
1104.76 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:134:12-29
1104.76 s
[really-safe-money-gen] @@ -131,7 +131,7 @@
1104.76 s
[really-safe-money-gen] Just a -> do
1104.76 s
[really-safe-money-gen] r <- Account.subtract a account
1104.76 s
[really-safe-money-gen] Just $
1104.76 s
[really-safe-money-gen] - if r == Acc o u n t. z e r o
1104.76 s
[really-safe-money-gen] + if T r u e
1104.76 s
[really-safe-money-gen] then M.delete currency m
1104.76 s
[really-safe-money-gen] else M.insert currency r m
1104.76 s
[really-safe-money-gen]
1104.76 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAccount.hs:113:40-46
1104.76 s
[really-safe-money-gen] @@ -110,7 +110,7 @@
1104.76 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
1104.76 s
[really-safe-money-gen] addAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
1104.76 s
[really-safe-money-gen] addAccount m _ (Positive (Amount 0)) = Just m
1104.76 s
[really-safe-money-gen] - addAccount m _ (Negative (Amount 0)) = J u s t m
1104.76 s
[really-safe-money-gen] + addAccount m _ (Negative (Amount 0)) = No t h ing
1104.76 s
[really-safe-money-gen] addAccount (MultiAccount m) currency account =
1104.76 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1104.76 s
[really-safe-money-gen] Nothing -> Just $ M.insert currency account m
1104.76 s
[really-safe-money-gen] Testing mutation Arith at src/Money/MultiAccount.hs:192:19-51
1104.76 s
[really-safe-money-gen] @@ -189,8 +189,8 @@
1104.76 s
[really-safe-money-gen] ( \(currency, a) ->
1104.76 s
[really-safe-money-gen] ( \(cr, qf2) ->
1104.76 s
[really-safe-money-gen] let factor = ConversionRate.conversionFactor qf2 cr qf1
1104.76 s
[really-safe-money-gen] in Account.toMinimalQuantisations a
1104.76 s
[really-safe-money-gen] - * toInteger (numerator factor)
1104.77 s
[really-safe-money-gen] + + toInteger (numerator factor)
1104.77 s
[really-safe-money-gen] % toInteger (denominator factor)
1104.77 s
[really-safe-money-gen] )
1104.77 s
[really-safe-money-gen] <$> func currency
1104.77 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:129:23-37
1104.77 s
[really-safe-money-gen] @@ -126,14 +126,13 @@
1104.77 s
[really-safe-money-gen] subtractAccount m _ (Positive (Amount 0)) = Just m
1104.77 s
[really-safe-money-gen] subtractAccount m _ (Negative (Amount 0)) = Just m
1104.77 s
[really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
1104.77 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1104.77 s
[really-safe-money-gen] - Nothing -> Just $ M.insert currency (Account.negate account) m
1104.77 s
[really-safe-money-gen] Just a -> do
1104.77 s
[really-safe-money-gen] r <- Account.subtract a account
1104.77 s
[really-safe-money-gen] Just $
1104.77 s
[really-safe-money-gen] if r == Account.zero
1104.77 s
[really-safe-money-gen] then M.delete currency m
1104.77 s
[really-safe-money-gen] else M.insert currency r m
1104.77 s
[really-safe-money-gen]
1104.77 s
[really-safe-money-gen] -- | Try to convert every account to one currency.
1104.77 s
[really-safe-money-gen] --
1104.77 s
[really-safe-money-gen] Testing mutation Arith at src/Money/MultiAccount.hs:192:19-51
1104.77 s
[really-safe-money-gen] @@ -189,8 +189,8 @@
1104.77 s
[really-safe-money-gen] ( \(currency, a) ->
1104.77 s
[really-safe-money-gen] ( \(cr, qf2) ->
1107.98 s
[really-safe-money-gen] let factor = ConversionRate.conversionFactor qf2 cr qf1
1107.98 s
[really-safe-money-gen] in Account.toMinimalQuantisations a
1107.98 s
[really-safe-money-gen] - * toInteger (numerator factor)
1107.98 s
[really-safe-money-gen] + - toInteger (numerator factor)
1107.98 s
[really-safe-money-gen] % toInteger (denominator factor)
1107.98 s
[really-safe-money-gen] )
1107.98 s
[really-safe-money-gen] <$> func currency
1107.99 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:78:6-28
1107.99 s
[really-safe-money-gen] @@ -75,7 +75,7 @@
1107.99 s
[really-safe-money-gen]
1107.99 s
[really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
1107.99 s
[really-safe-money-gen] fromAccount currency amount =
1107.99 s
[really-safe-money-gen] - if a m o unt == A cco u n t.z e ro
1107.99 s
[really-safe-money-gen] + if Tr u e
1107.99 s
[really-safe-money-gen] then zero
1107.99 s
[really-safe-money-gen] else MultiAccount $ M.singleton currency amount
1107.99 s
[really-safe-money-gen]
1107.99 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:78:6-28
1107.99 s
[really-safe-money-gen] @@ -75,7 +75,7 @@
1107.99 s
[really-safe-money-gen]
1107.99 s
[really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
1107.99 s
[really-safe-money-gen] fromAccount currency amount =
1107.99 s
[really-safe-money-gen] - if a m o unt == Accoun t.z e ro
1107.99 s
[really-safe-money-gen] + if F a ls e
1107.99 s
[really-safe-money-gen] then zero
1107.99 s
[really-safe-money-gen] else MultiAccount $ M.singleton currency amount
1107.99 s
[really-safe-money-gen]
1107.99 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:69:13-30
1107.99 s
[really-safe-money-gen] @@ -66,7 +66,7 @@
1107.99 s
[really-safe-money-gen] [ genericValidate ma,
1107.99 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1107.99 s
[really-safe-money-gen] declare "The account is not zero" $
1107.99 s
[really-safe-money-gen] - a / = Ac co u nt .z e ro
1107.99 s
[really-safe-money-gen] + T r u e
1107.99 s
[really-safe-money-gen] ]
1107.99 s
[really-safe-money-gen]
1107.99 s
[really-safe-money-gen] -- TODO no empty currencies
1107.99 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:69:13-30
1107.99 s
[really-safe-money-gen] @@ -66,7 +66,7 @@
1107.99 s
[really-safe-money-gen] [ genericValidate ma,
1107.99 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1107.99 s
[really-safe-money-gen] declare "The account is not zero" $
1107.99 s
[really-safe-money-gen] - a / = Acco u nt .z e ro
1107.99 s
[really-safe-money-gen] + F a ls e
1107.99 s
[really-safe-money-gen] ]
1107.99 s
[really-safe-money-gen]
1107.99 s
[really-safe-money-gen] -- TODO no empty currencies
1107.99 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:69:13-30
1107.99 s
[really-safe-money-gen] @@ -66,7 +66,7 @@
1107.99 s
[really-safe-money-gen] [ genericValidate ma,
1107.99 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1107.99 s
[really-safe-money-gen] declare "The account is not zero" $
1107.99 s
[really-safe-money-gen] - a /= Account.zero
1108.00 s
[really-safe-money-gen] + n o t ( a /= Account.zero )
1108.00 s
[really-safe-money-gen] ]
1108.00 s
[really-safe-money-gen]
1108.00 s
[really-safe-money-gen] -- TODO no empty currencies
1108.00 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:78:6-28
1108.00 s
[really-safe-money-gen] @@ -75,7 +75,7 @@
1108.00 s
[really-safe-money-gen]
1108.00 s
[really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
1108.00 s
[really-safe-money-gen] fromAccount currency amount =
1108.00 s
[really-safe-money-gen] - if amount == Account.zero
1108.00 s
[really-safe-money-gen] + if n o t ( amount == Account.zero )
1108.00 s
[really-safe-money-gen] then zero
1108.00 s
[really-safe-money-gen] else MultiAccount $ M.singleton currency amount
1108.00 s
[really-safe-money-gen]
1108.00 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:115:23-37
1108.00 s
[really-safe-money-gen] @@ -112,14 +112,8 @@
1108.00 s
[really-safe-money-gen] addAccount m _ (Positive (Amount 0)) = Just m
1108.00 s
[really-safe-money-gen] addAccount m _ (Negative (Amount 0)) = Just m
1108.00 s
[really-safe-money-gen] addAccount (MultiAccount m) currency account =
1108.00 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1108.00 s
[really-safe-money-gen] Nothing -> Just $ M.insert currency account m
1108.00 s
[really-safe-money-gen] - Just a -> do
1108.00 s
[really-safe-money-gen] - r <- Account.add a account
1108.00 s
[really-safe-money-gen] - Just $
1108.00 s
[really-safe-money-gen] - if r == Account.zero
1108.00 s
[really-safe-money-gen] - then M.delete currency m
1108.00 s
[really-safe-money-gen] - else M.insert currency r m
1108.00 s
[really-safe-money-gen]
1108.00 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
1108.00 s
[really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
1108.00 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:120:12-29
1108.00 s
[really-safe-money-gen] @@ -117,7 +117,7 @@
1108.00 s
[really-safe-money-gen] Just a -> do
1108.00 s
[really-safe-money-gen] r <- Account.add a account
1108.00 s
[really-safe-money-gen] Just $
1108.00 s
[really-safe-money-gen] - if r == Account.zero
1108.00 s
[really-safe-money-gen] + if n o t ( r == Account.zero )
1108.00 s
[really-safe-money-gen] then M.delete currency m
1108.00 s
[really-safe-money-gen] else M.insert currency r m
1108.00 s
[really-safe-money-gen]
1108.00 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:115:23-37
1108.00 s
[really-safe-money-gen] @@ -112,14 +112,13 @@
1108.00 s
[really-safe-money-gen] addAccount m _ (Positive (Amount 0)) = Just m
1108.00 s
[really-safe-money-gen] addAccount m _ (Negative (Amount 0)) = Just m
1108.00 s
[really-safe-money-gen] addAccount (MultiAccount m) currency account =
1108.00 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1108.00 s
[really-safe-money-gen] - Nothing -> Just $ M.insert currency account m
1108.00 s
[really-safe-money-gen] Just a -> do
1108.00 s
[really-safe-money-gen] r <- Account.add a account
1108.00 s
[really-safe-money-gen] Just $
1108.00 s
[really-safe-money-gen] if r == Account.zero
1108.00 s
[really-safe-money-gen] then M.delete currency m
1108.00 s
[really-safe-money-gen] else M.insert currency r m
1108.00 s
[really-safe-money-gen]
1108.00 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
1108.00 s
[really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
1108.00 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:120:12-29
1108.00 s
[really-safe-money-gen] @@ -117,7 +117,7 @@
1108.00 s
[really-safe-money-gen] Just a -> do
1108.00 s
[really-safe-money-gen] r <- Account.add a account
1108.00 s
[really-safe-money-gen] Just $
1108.00 s
[really-safe-money-gen] - if r == Accou n t .z e ro
1108.00 s
[really-safe-money-gen] + if F als e
1108.00 s
[really-safe-money-gen] then M.delete currency m
1108.01 s
[really-safe-money-gen] else M.insert currency r m
1108.01 s
[really-safe-money-gen]
1108.01 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:120:12-29
1108.01 s
[really-safe-money-gen] @@ -117,7 +117,7 @@
1108.01 s
[really-safe-money-gen] Just a -> do
1108.01 s
[really-safe-money-gen] r <- Account.add a account
1108.01 s
[really-safe-money-gen] Just $
1108.01 s
[really-safe-money-gen] - if r == Acc o u n t. z e r o
1108.01 s
[really-safe-money-gen] + if T r u e
1108.01 s
[really-safe-money-gen] then M.delete currency m
1108.01 s
[really-safe-money-gen] else M.insert currency r m
1108.01 s
[really-safe-money-gen]
1108.01 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:73:6-27
1108.01 s
[really-safe-money-gen] @@ -70,7 +70,7 @@
1108.01 s
[really-safe-money-gen]
1108.01 s
[really-safe-money-gen] fromAmount :: currency -> Amount -> MultiAmount currency
1108.01 s
[really-safe-money-gen] fromAmount currency amount =
1108.01 s
[really-safe-money-gen] - if amount == Amount.zero
1108.01 s
[really-safe-money-gen] + if n o t ( amount == Amount.zero )
1108.01 s
[really-safe-money-gen] then zero
1108.01 s
[really-safe-money-gen] else MultiAmount $ M.singleton currency amount
1108.01 s
[really-safe-money-gen]
1108.01 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/QuantisationFactor/Codec.hs:41:11-26
1108.01 s
[really-safe-money-gen] @@ -38,6 +38,5 @@
1108.01 s
[really-safe-money-gen] codec
1108.01 s
[really-safe-money-gen] <?> "QuantisationFactor"
1108.01 s
[really-safe-money-gen] where
1108.01 s
[really-safe-money-gen] f w = case QuantisationFactor.fromWord32 w of
1108.01 s
[really-safe-money-gen] - Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
1108.01 s
[really-safe-money-gen] Just qf -> Right qf
1108.01 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:47:33-75
1108.01 s
[really-safe-money-gen] @@ -44,7 +44,6 @@
1108.01 s
[really-safe-money-gen] where
1108.01 s
[really-safe-money-gen] f :: String -> Either String Amount
1108.01 s
[really-safe-money-gen] f s = case readMaybe s of
1108.01 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1108.01 s
[really-safe-money-gen] Just i ->
1108.01 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
1108.01 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.01 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:49:12-59
1108.01 s
[really-safe-money-gen] @@ -46,7 +46,7 @@
1108.01 s
[really-safe-money-gen] f s = case readMaybe s of
1108.01 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1108.01 s
[really-safe-money-gen] Just i ->
1108.01 s
[really-safe-money-gen] - if ( i :: Intege r ) < t oIn t e g er (minBound :: Word64)
1108.01 s
[really-safe-money-gen] + if T r u e
1108.01 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.01 s
[really-safe-money-gen] else
1108.01 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1108.01 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:49:12-59
1108.01 s
[really-safe-money-gen] @@ -46,7 +46,7 @@
1108.01 s
[really-safe-money-gen] f s = case readMaybe s of
1108.01 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1108.01 s
[really-safe-money-gen] Just i ->
1108.01 s
[really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
1108.01 s
[really-safe-money-gen] + if (i :: Integer) > toInteger (minBound :: Word64)
1108.01 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.01 s
[really-safe-money-gen] else
1108.01 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1108.01 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount/Codec.hs:49:12-59
1108.01 s
[really-safe-money-gen] @@ -46,7 +46,7 @@
1108.01 s
[really-safe-money-gen] f s = case readMaybe s of
1108.01 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1108.32 s
[really-safe-money-gen] Just i ->
1108.32 s
[really-safe-money-gen] - if ( i :: Integer) < toInteger (minBound :: Word64)
1108.32 s
[really-safe-money-gen] + if n o t ( ( i :: Integer) < toInteger (minBound :: Word64) )
1108.32 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.32 s
[really-safe-money-gen] else
1108.32 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1108.32 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:50:31-84
1108.32 s
[really-safe-money-gen] @@ -47,7 +47,6 @@
1108.32 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1108.33 s
[really-safe-money-gen] Just i ->
1108.33 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
1108.33 s
[really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.33 s
[really-safe-money-gen] else
1108.33 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1108.33 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1108.33 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:47:33-75
1108.33 s
[really-safe-money-gen] @@ -44,7 +44,6 @@
1108.33 s
[really-safe-money-gen] where
1108.33 s
[really-safe-money-gen] f :: String -> Either String Amount
1108.33 s
[really-safe-money-gen] f s = case readMaybe s of
1108.33 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1108.33 s
[really-safe-money-gen] Just i ->
1108.33 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
1108.33 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.33 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:49:12-59
1108.33 s
[really-safe-money-gen] @@ -46,7 +46,7 @@
1108.33 s
[really-safe-money-gen] f s = case readMaybe s of
1108.33 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1108.33 s
[really-safe-money-gen] Just i ->
1108.33 s
[really-safe-money-gen] - if ( i :: Intege r) < toInteg e r (m inBoun d :: Word64)
1108.33 s
[really-safe-money-gen] + if F al s e
1108.33 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.33 s
[really-safe-money-gen] else
1108.33 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1108.33 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/QuantisationFactor/Codec.hs:41:11-26
1108.33 s
[really-safe-money-gen] @@ -38,6 +38,5 @@
1108.33 s
[really-safe-money-gen] codec
1108.33 s
[really-safe-money-gen] <?> "QuantisationFactor"
1108.33 s
[really-safe-money-gen] where
1108.33 s
[really-safe-money-gen] f w = case QuantisationFactor.fromWord32 w of
1108.33 s
[really-safe-money-gen] Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
1108.33 s
[really-safe-money-gen] - Just qf -> Right qf
1108.34 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:49:12-59
1108.34 s
[really-safe-money-gen] @@ -46,7 +46,7 @@
1108.34 s
[really-safe-money-gen] f s = case readMaybe s of
1108.34 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1108.34 s
[really-safe-money-gen] Just i ->
1108.34 s
[really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
1108.34 s
[really-safe-money-gen] + if (i :: Integer) > = toInteger (minBound :: Word64)
1108.34 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.34 s
[really-safe-money-gen] else
1108.34 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1108.34 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:49:12-59
1108.34 s
[really-safe-money-gen] @@ -46,7 +46,7 @@
1108.34 s
[really-safe-money-gen] f s = case readMaybe s of
1108.34 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1108.34 s
[really-safe-money-gen] Just i ->
1108.34 s
[really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
1108.34 s
[really-safe-money-gen] + if (i :: Integer) < = toInteger (minBound :: Word64)
1108.34 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.34 s
[really-safe-money-gen] else
1108.34 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1108.34 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAccount.hs:66:7-8
1108.34 s
[really-safe-money-gen] @@ -63,11 +63,10 @@
1108.34 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
1108.34 s
[really-safe-money-gen] validate ma@(MultiAccount m) =
1108.34 s
[really-safe-money-gen] mconcat
1108.34 s
[really-safe-money-gen] - [ genericValidate ma,
1108.34 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1108.34 s
[really-safe-money-gen] declare "The account is not zero" $
1108.34 s
[really-safe-money-gen] a /= Account.zero
1108.34 s
[really-safe-money-gen] ]
1108.34 s
[really-safe-money-gen]
1108.34 s
[really-safe-money-gen] -- TODO no empty currencies
1108.34 s
[really-safe-money-gen]
1108.34 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAccount.hs:66:7-8
1108.34 s
[really-safe-money-gen] @@ -63,11 +63,7 @@
1108.34 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
1108.34 s
[really-safe-money-gen] validate ma@(MultiAccount m) =
1108.34 s
[really-safe-money-gen] mconcat
1108.34 s
[really-safe-money-gen] - [ genericValidate ma,
1108.34 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
1108.34 s
[really-safe-money-gen] - declare "The account is not zero" $
1108.34 s
[really-safe-money-gen] - a /= Account.zero
1108.35 s
[really-safe-money-gen] ]
1108.35 s
[really-safe-money-gen]
1108.35 s
[really-safe-money-gen] -- TODO no empty currencies
1108.35 s
[really-safe-money-gen]
1108.35 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:50:31-84
1108.35 s
[really-safe-money-gen] @@ -47,7 +47,6 @@
1108.35 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1108.35 s
[really-safe-money-gen] Just i ->
1108.35 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
1108.35 s
[really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.35 s
[really-safe-money-gen] else
1108.35 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1108.35 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1108.35 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:52:16-63
1108.35 s
[really-safe-money-gen] @@ -49,7 +49,7 @@
1108.35 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
1108.35 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.35 s
[really-safe-money-gen] else
1108.35 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
1108.35 s
[really-safe-money-gen] + if (i :: Integer) < toInteger (maxBound :: Word64)
1108.35 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1108.35 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
1108.35 s
[really-safe-money-gen] g :: Amount -> String
1108.35 s
[really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAccount.hs:112:40-46
1108.35 s
[really-safe-money-gen] @@ -109,7 +109,7 @@
1108.35 s
[really-safe-money-gen]
1108.35 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
1108.35 s
[really-safe-money-gen] addAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
1108.35 s
[really-safe-money-gen] - addAccount m _ (Positive (Amount 0)) = J u s t m
1108.35 s
[really-safe-money-gen] + addAccount m _ (Positive (Amount 0)) = No t h ing
1108.35 s
[really-safe-money-gen] addAccount m _ (Negative (Amount 0)) = Just m
1108.35 s
[really-safe-money-gen] addAccount (MultiAccount m) currency account =
1108.35 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1108.35 s
[really-safe-money-gen] Testing mutation Negate at src/Money/Amount/Codec.hs:52:16-63
1108.35 s
[really-safe-money-gen] @@ -49,7 +49,7 @@
1108.35 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
1108.35 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.35 s
[really-safe-money-gen] else
1108.35 s
[really-safe-money-gen] - if ( i :: Integer) > toInteger (maxBound :: Word64)
1108.35 s
[really-safe-money-gen] + if n o t ( ( i :: Integer) > toInteger (maxBound :: Word64) )
1108.35 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1108.35 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
1108.35 s
[really-safe-money-gen] g :: Amount -> String
1108.35 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAmount.hs:63:7-8
1108.35 s
[really-safe-money-gen] @@ -60,11 +60,10 @@
1108.35 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
1108.35 s
[really-safe-money-gen] validate ma@(MultiAmount m) =
1108.35 s
[really-safe-money-gen] mconcat
1108.35 s
[really-safe-money-gen] - [ genericValidate ma,
1108.35 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1108.35 s
[really-safe-money-gen] declare "The amount is not zero" $
1108.35 s
[really-safe-money-gen] a /= Amount.zero
1108.35 s
[really-safe-money-gen] ]
1108.35 s
[really-safe-money-gen]
1108.35 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
1108.35 s
[really-safe-money-gen]
1108.35 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:52:16-63
1108.35 s
[really-safe-money-gen] @@ -49,7 +49,7 @@
1108.35 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
1108.35 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1108.35 s
[really-safe-money-gen] else
1108.36 s
[really-safe-money-gen] - if ( i :: Intege r) > toInteg er ( m a xBo u n d :: Word64)
1108.36 s
[really-safe-money-gen] + if F a l s e
1108.36 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1108.36 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
1108.36 s
[really-safe-money-gen] g :: Amount -> String
1108.36 s
[really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:66:13-29
1108.36 s
[really-safe-money-gen] @@ -63,7 +63,7 @@
1108.36 s
[really-safe-money-gen] [ genericValidate ma,
1108.36 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1108.36 s
[really-safe-money-gen] declare "The amount is not zero" $
1108.36 s
[really-safe-money-gen] - a /= Amount.zero
1109.95 s
[really-safe-money-gen] + n o t ( a /= Amount.zero )
1110.04 s
[really-safe-money-gen] ]
1110.04 s
[really-safe-money-gen]
1110.04 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
1110.05 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:66:13-29
1110.05 s
[really-safe-money-gen] @@ -63,7 +63,7 @@
1110.05 s
[really-safe-money-gen] [ genericValidate ma,
1110.05 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1110.05 s
[really-safe-money-gen] declare "The amount is not zero" $
1110.05 s
[really-safe-money-gen] - a / = A mo u nt .z e ro
1110.05 s
[really-safe-money-gen] + Tr u e
1110.05 s
[really-safe-money-gen] ]
1110.05 s
[really-safe-money-gen]
1110.05 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
1110.05 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
1110.05 s
[really-safe-money-gen] @@ -212,11 +212,10 @@
1110.05 s
[really-safe-money-gen]
1110.05 s
[really-safe-money-gen] -- | See 'Amount.distribute'
1110.05 s
[really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
1110.05 s
[really-safe-money-gen] distribute (AmountOf a) f = case Amount.distribute a f of
1110.05 s
[really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
1110.05 s
[really-safe-money-gen] DistributedZero -> DistributedZero
1110.05 s
[really-safe-money-gen] DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
1110.05 s
[really-safe-money-gen] DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
1110.05 s
[really-safe-money-gen]
1110.05 s
[really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
1110.05 s
[really-safe-money-gen]
1110.05 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount/Codec.hs:46:11-86
1110.05 s
[really-safe-money-gen] @@ -43,15 +43,14 @@
1110.05 s
[really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Amount"
1110.05 s
[really-safe-money-gen] where
1110.06 s
[really-safe-money-gen] f :: String -> Either String Amount
1110.06 s
[really-safe-money-gen] f s = case readMaybe s of
1110.06 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1110.06 s
[really-safe-money-gen] Just i ->
1110.06 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
1110.06 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1110.06 s
[really-safe-money-gen] else
1110.06 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1110.06 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1110.06 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
1110.06 s
[really-safe-money-gen] g :: Amount -> String
1110.06 s
[really-safe-money-gen] g = show . Amount.toMinimalQuantisations
1110.06 s
[really-safe-money-gen]
1110.06 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:79:11-24
1110.06 s
[really-safe-money-gen] @@ -76,6 +76,5 @@
1110.06 s
[really-safe-money-gen] <?> "Account"
1110.06 s
[really-safe-money-gen] where
1110.06 s
[really-safe-money-gen] f :: Integer -> Either String Account
1110.06 s
[really-safe-money-gen] f i = case Account.fromMinimalQuantisations i of
1110.06 s
[really-safe-money-gen] - Nothing -> Left $ "Number did not fit into an account value: " <> show i
1110.06 s
[really-safe-money-gen] Just a -> Right a
1110.06 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:79:11-24
1110.06 s
[really-safe-money-gen] @@ -76,6 +76,5 @@
1110.06 s
[really-safe-money-gen] <?> "Account"
1110.06 s
[really-safe-money-gen] where
1110.06 s
[really-safe-money-gen] f :: Integer -> Either String Account
1110.06 s
[really-safe-money-gen] f i = case Account.fromMinimalQuantisations i of
1110.06 s
[really-safe-money-gen] Nothing -> Left $ "Number did not fit into an account value: " <> show i
1110.06 s
[really-safe-money-gen] - Just a -> Right a
1110.06 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:53:35-90
1110.06 s
[really-safe-money-gen] @@ -50,7 +50,6 @@
1110.06 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1110.06 s
[really-safe-money-gen] else
1110.06 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1110.06 s
[really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1110.07 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
1110.07 s
[really-safe-money-gen] g :: Amount -> String
1110.07 s
[really-safe-money-gen] g = show . Amount.toMinimalQuantisations
1110.07 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Account/Codec.hs:51:33-76
1110.07 s
[really-safe-money-gen] @@ -48,7 +48,6 @@
1110.07 s
[really-safe-money-gen] where
1110.07 s
[really-safe-money-gen] f :: String -> Either String Account
1110.07 s
[really-safe-money-gen] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
1110.07 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
1110.07 s
[really-safe-money-gen] Just a -> Right a
1110.07 s
[really-safe-money-gen] g :: Account -> String
1110.07 s
[really-safe-money-gen] g = show . Account.toMinimalQuantisations
1110.07 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount/Codec.hs:46:11-86
1110.07 s
[really-safe-money-gen] @@ -43,15 +43,8 @@
1110.07 s
[really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Amount"
1110.07 s
[really-safe-money-gen] where
1110.07 s
[really-safe-money-gen] f :: String -> Either String Amount
1110.07 s
[really-safe-money-gen] f s = case readMaybe s of
1110.07 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
1110.07 s
[really-safe-money-gen] - Just i ->
1110.07 s
[really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
1110.07 s
[really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
1110.07 s
[really-safe-money-gen] - else
1110.07 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
1110.07 s
[really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1110.07 s
[really-safe-money-gen] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
1110.07 s
[really-safe-money-gen] g :: Amount -> String
1110.07 s
[really-safe-money-gen] g = show . Amount.toMinimalQuantisations
1110.07 s
[really-safe-money-gen]
1110.07 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:53:35-90
1110.07 s
[really-safe-money-gen] @@ -50,7 +50,6 @@
1110.07 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1110.07 s
[really-safe-money-gen] else
1110.08 s
[really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
1110.08 s
[really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1110.08 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
1110.08 s
[really-safe-money-gen] g :: Amount -> String
1110.08 s
[really-safe-money-gen] g = show . Amount.toMinimalQuantisations
1110.08 s
[really-safe-money-gen] Testing mutation ListLit at src/Money/Account/Codec.hs:51:33-76
1110.08 s
[really-safe-money-gen] @@ -48,7 +48,6 @@
1110.08 s
[really-safe-money-gen] where
1110.08 s
[really-safe-money-gen] f :: String -> Either String Account
1110.08 s
[really-safe-money-gen] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
1110.08 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
1110.08 s
[really-safe-money-gen] Just a -> Right a
1110.08 s
[really-safe-money-gen] g :: Account -> String
1110.08 s
[really-safe-money-gen] g = show . Account.toMinimalQuantisations
1110.08 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:50:11-24
1110.08 s
[really-safe-money-gen] @@ -47,9 +47,8 @@
1110.08 s
[really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Account"
1110.08 s
[really-safe-money-gen] where
1110.08 s
[really-safe-money-gen] f :: String -> Either String Account
1110.08 s
[really-safe-money-gen] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
1110.08 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Account:", s]
1110.08 s
[really-safe-money-gen] - Just a -> Right a
1110.08 s
[really-safe-money-gen] g :: Account -> String
1110.08 s
[really-safe-money-gen] g = show . Account.toMinimalQuantisations
1110.08 s
[really-safe-money-gen]
1110.08 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:50:11-24
1110.08 s
[really-safe-money-gen] @@ -47,9 +47,8 @@
1110.08 s
[really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Account"
1110.08 s
[really-safe-money-gen] where
1110.08 s
[really-safe-money-gen] f :: String -> Either String Account
1110.08 s
[really-safe-money-gen] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
1110.08 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
1110.08 s
[really-safe-money-gen] Just a -> Right a
1110.08 s
[really-safe-money-gen] g :: Account -> String
1110.08 s
[really-safe-money-gen] g = show . Account.toMinimalQuantisations
1110.08 s
[really-safe-money-gen]
1110.08 s
[really-safe-money-gen] Testing mutation ListLit at src/Numeric/DecimalLiteral/Codec.hs:40:33-82
1110.08 s
[really-safe-money-gen] @@ -37,5 +37,4 @@
1110.08 s
[really-safe-money-gen] where
1110.08 s
[really-safe-money-gen] f :: String -> Either String DecimalLiteral
1110.08 s
[really-safe-money-gen] f s = case DecimalLiteral.fromString s of
1110.08 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
1110.08 s
[really-safe-money-gen] Just a -> Right a
1110.08 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral/Codec.hs:39:11-24
1110.08 s
[really-safe-money-gen] @@ -36,6 +36,5 @@
1110.09 s
[really-safe-money-gen] codecViaString = bimapCodec f DecimalLiteral.toString stringCodec <?> "DecimalLiteral"
1110.09 s
[really-safe-money-gen] where
1110.09 s
[really-safe-money-gen] f :: String -> Either String DecimalLiteral
1110.09 s
[really-safe-money-gen] f s = case DecimalLiteral.fromString s of
1110.09 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
1110.09 s
[really-safe-money-gen] Just a -> Right a
1110.09 s
[really-safe-money-gen] Testing mutation ListLit at src/Numeric/DecimalLiteral/Codec.hs:40:33-82
1110.09 s
[really-safe-money-gen] @@ -37,5 +37,4 @@
1110.09 s
[really-safe-money-gen] where
1110.09 s
[really-safe-money-gen] f :: String -> Either String DecimalLiteral
1110.09 s
[really-safe-money-gen] f s = case DecimalLiteral.fromString s of
1110.09 s
[really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
1110.09 s
[really-safe-money-gen] Just a -> Right a
1110.09 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:52:16-63
1110.09 s
[really-safe-money-gen] @@ -49,7 +49,7 @@
1110.09 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
1110.09 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1110.09 s
[really-safe-money-gen] else
1110.09 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
1110.09 s
[really-safe-money-gen] + if (i :: Integer) < = toInteger (maxBound :: Word64)
1110.09 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1110.09 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
1110.09 s
[really-safe-money-gen] g :: Amount -> String
1110.09 s
[really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:52:16-63
1110.09 s
[really-safe-money-gen] @@ -49,7 +49,7 @@
1129.02 s
[really-safe-money-gen] if (i :: IntegerKilled: 427
1129.02 s
[really-safe-money-gen] (of which timed out: 0 )
1129.02 s
[really-safe-money-gen] Survived: 57
1129.04 s
[really-safe-money-gen] Uncovered: 40
1129.04 s
[really-safe-money-gen]
1129.04 s
[really-safe-money-gen] Surviving mutations:
1129.04 s
[really-safe-money-gen]
1129.04 s
[really-safe-money-gen] ListLit at src/Money/MultiAccount.hs:66:7-8
1129.04 s
[really-safe-money-gen] @@ -63,11 +63,10 @@
1129.04 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
1129.05 s
[really-safe-money-gen] validate ma@(MultiAccount m) =
1129.05 s
[really-safe-money-gen] mconcat
1129.05 s
[really-safe-money-gen] - [ genericValidate ma,
1129.05 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1129.05 s
[really-safe-money-gen] declare "The account is not zero" $
1129.05 s
[really-safe-money-gen] a /= Account.zero
1129.05 s
[really-safe-money-gen] ]
1129.05 s
[really-safe-money-gen]
1129.05 s
[really-safe-money-gen] -- TODO no empty currencies
1129.05 s
[really-safe-money-gen]
1129.05 s
[really-safe-money-gen]
1129.05 s
[really-safe-money-gen] ListLit at src/Money/MultiAccount.hs:66:7-8
1129.05 s
[really-safe-money-gen] @@ -63,11 +63,7 @@
1129.05 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
1129.05 s
[really-safe-money-gen] validate ma@(MultiAccount m) =
1129.05 s
[really-safe-money-gen] mconcat
1129.05 s
[really-safe-money-gen] - [ genericValidate ma,
1129.05 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
1129.05 s
[really-safe-money-gen] - declare "The account is not zero" $
1129.05 s
[really-safe-money-gen] - a /= Account.zero
1129.05 s
[really-safe-money-gen] ]
1129.05 s
[really-safe-money-gen]
1129.05 s
[really-safe-money-gen] -- TODO no empty currencies
1129.05 s
[really-safe-money-gen]
1129.05 s
[really-safe-money-gen]
1129.05 s
[really-safe-money-gen] ConstBool at src/Money/MultiAccount.hs:69:13-30
1129.05 s
[really-safe-money-gen] @@ -66,7 +66,7 @@
1129.05 s
[really-safe-money-gen] [ genericValidate ma,
1129.05 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1129.05 s
[really-safe-money-gen] declare "The account is not zero" $
1129.05 s
[really-safe-money-gen] - a / = Ac co u nt .z e ro
1129.05 s
[really-safe-money-gen] + T r u e
1129.05 s
[really-safe-money-gen] ]
1129.05 s
[really-safe-money-gen]
1129.05 s
[really-safe-money-gen] -- TODO no empty currencies
1129.06 s
[really-safe-money-gen]
1129.06 s
[really-safe-money-gen] ConstBool at src/Money/MultiAccount.hs:78:6-28
1129.06 s
[really-safe-money-gen] @@ -75,7 +75,7 @@
1129.06 s
[really-safe-money-gen]
1129.06 s
[really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
1129.06 s
[really-safe-money-gen] fromAccount currency amount =
1129.06 s
[really-safe-money-gen] - if a m o unt == A cco u n t.z e ro
1129.06 s
[really-safe-money-gen] + if Tr u e
1129.06 s
[really-safe-money-gen] then zero
1129.06 s
[really-safe-money-gen] else MultiAccount $ M.singleton currency amount
1129.06 s
[really-safe-money-gen]
1129.06 s
[really-safe-money-gen]
1129.06 s
[really-safe-money-gen] MaybeOp at src/Money/MultiAccount.hs:113:40-46
1129.06 s
[really-safe-money-gen] @@ -110,7 +110,7 @@
1129.06 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
1129.06 s
[really-safe-money-gen] addAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
1129.06 s
[really-safe-money-gen] addAccount m _ (Posit) < toInteger (minBound :: Word64)
1129.06 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1129.06 s
[really-safe-money-gen] else
1129.06 s
[really-safe-money-gen] - if ( i :: Intege r ) > t oIn t e g er (maxBound :: Word64)
1129.06 s
[really-safe-money-gen] + if T r u e
1129.06 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1129.06 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
1129.06 s
[really-safe-money-gen] g :: Amount -> String
1129.06 s
[really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:52:16-63
1129.06 s
[really-safe-money-gen] @@ -49,7 +49,7 @@
1129.06 s
[really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
1129.06 s
[really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
1129.06 s
[really-safe-money-gen] else
1129.06 s
[really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
1129.06 s
[really-safe-money-gen] + if (i :: Integer) > = toInteger (maxBound :: Word64)
1129.06 s
[really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
1129.06 s
[really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
1129.06 s
[really-safe-money-gen] g :: Amount -> String
1129.06 s
[really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral/Codec.hs:39:11-24
1129.06 s
[really-safe-money-gen] @@ -36,6 +36,5 @@
1129.06 s
[really-safe-money-gen] codecViaString = bimapCodec f DecimalLiteral.toString stringCodec <?> "DecimalLiteral"
1129.06 s
[really-safe-money-gen] where
1129.06 s
[really-safe-money-gen] f :: String -> Either String DecimalLiteral
1129.06 s
[really-safe-money-gen] f s = case DecimalLiteral.fromString s of
1129.06 s
[really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
1129.06 s
[really-safe-money-gen] - Just a -> Right a
1129.06 s
[really-safe-money-gen] ive (Amount 0)) = Just m
1129.06 s
[really-safe-money-gen] - addAccount m _ (Negative (Amount 0)) = J u s t m
1129.06 s
[really-safe-money-gen] + addAccount m _ (Negative (Amount 0)) = No t h ing
1129.06 s
[really-safe-money-gen] addAccount (MultiAccount m) currency account =
1129.06 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1129.06 s
[really-safe-money-gen] Nothing -> Just $ M.insert currency account m
1129.06 s
[really-safe-money-gen]
1129.06 s
[really-safe-money-gen] MaybeOp at src/Money/MultiAccount.hs:127:45-51
1129.06 s
[really-safe-money-gen] @@ -124,7 +124,7 @@
1129.06 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
1129.07 s
[really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
1129.07 s
[really-safe-money-gen] subtractAccount m _ (Positive (Amount 0)) = Just m
1129.07 s
[really-safe-money-gen] - subtractAccount m _ (Negative (Amount 0)) = J u s t m
1129.07 s
[really-safe-money-gen] + subtractAccount m _ (Negative (Amount 0)) = No t h ing
1129.07 s
[really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
1129.07 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1129.07 s
[really-safe-money-gen] Nothing -> Just $ M.insert currency (Account.negate account) m
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen] MaybeOp at src/Money/MultiAccount.hs:126:45-51
1129.07 s
[really-safe-money-gen] @@ -123,7 +123,7 @@
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
1129.07 s
[really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
1129.07 s
[really-safe-money-gen] - subtractAccount m _ (Positive (Amount 0)) = J u s t m
1129.07 s
[really-safe-money-gen] + subtractAccount m _ (Positive (Amount 0)) = No t h ing
1129.07 s
[really-safe-money-gen] subtractAccount m _ (Negative (Amount 0)) = Just m
1129.07 s
[really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
1129.07 s
[really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen] ListLit at src/Money/MultiAmount.hs:63:7-8
1129.07 s
[really-safe-money-gen] @@ -60,11 +60,10 @@
1129.07 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
1129.07 s
[really-safe-money-gen] validate ma@(MultiAmount m) =
1129.07 s
[really-safe-money-gen] mconcat
1129.07 s
[really-safe-money-gen] - [ genericValidate ma,
1129.07 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1129.07 s
[really-safe-money-gen] declare "The amount is not zero" $
1129.07 s
[really-safe-money-gen] a /= Amount.zero
1129.07 s
[really-safe-money-gen] ]
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen] ListLit at src/Money/MultiAmount.hs:63:7-8
1129.07 s
[really-safe-money-gen] @@ -60,11 +60,7 @@
1129.07 s
[really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
1129.07 s
[really-safe-money-gen] validate ma@(MultiAmount m) =
1129.07 s
[really-safe-money-gen] mconcat
1129.07 s
[really-safe-money-gen] - [ genericValidate ma,
1129.07 s
[really-safe-money-gen] - decorateMap m $ \_ a ->
1129.07 s
[really-safe-money-gen] - declare "The amount is not zero" $
1129.07 s
[really-safe-money-gen] - a /= Amount.zero
1129.07 s
[really-safe-money-gen] ]
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:66:13-29
1129.07 s
[really-safe-money-gen] @@ -63,7 +63,7 @@
1129.07 s
[really-safe-money-gen] [ genericValidate ma,
1129.07 s
[really-safe-money-gen] decorateMap m $ \_ a ->
1129.07 s
[really-safe-money-gen] declare "The amount is not zero" $
1129.07 s
[really-safe-money-gen] - a / = A mo u nt .z e ro
1129.07 s
[really-safe-money-gen] + Tr u e
1129.07 s
[really-safe-money-gen] ]
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
1129.07 s
[really-safe-money-gen]
1129.07 s
[really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:106:12-28
1129.07 s
[really-safe-money-gen] @@ -103,7 +103,7 @@
1129.07 s
[really-safe-money-gen] Just a -> do
1129.07 s
[really-safe-money-gen] r <- Amount.add a amount
1129.07 s
[really-safe-money-gen] Just $
1129.07 s
[really-safe-money-gen] - if r == A mount .z e ro
1129.07 s
[really-safe-money-gen] + if Fal s e
1129.08 s
[really-safe-money-gen] then M.delete currency m
1129.08 s
[really-safe-money-gen] else M.insert currency r m
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen] Negate at src/Money/MultiAmount.hs:119:12-28
1129.08 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
1129.08 s
[really-safe-money-gen] Just a -> do
1129.08 s
[really-safe-money-gen] r <- Amount.subtract a amount
1129.08 s
[really-safe-money-gen] Just $
1129.08 s
[really-safe-money-gen] - if r == Amount.zero
1129.08 s
[really-safe-money-gen] + if n o t ( r == Amount.zero )
1129.08 s
[really-safe-money-gen] then M.delete currency m
1129.08 s
[really-safe-money-gen] else M.insert currency r m
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:119:12-28
1129.08 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
1129.08 s
[really-safe-money-gen] Just a -> do
1129.08 s
[really-safe-money-gen] r <- Amount.subtract a amount
1129.08 s
[really-safe-money-gen] Just $
1129.08 s
[really-safe-money-gen] - if r == A mount .z e ro
1129.08 s
[really-safe-money-gen] + if Fal s e
1129.08 s
[really-safe-money-gen] then M.delete currency m
1129.08 s
[really-safe-money-gen] else M.insert currency r m
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:119:12-28
1129.08 s
[really-safe-money-gen] @@ -116,7 +116,7 @@
1129.08 s
[really-safe-money-gen] Just a -> do
1129.08 s
[really-safe-money-gen] r <- Amount.subtract a amount
1129.08 s
[really-safe-money-gen] Just $
1129.08 s
[really-safe-money-gen] - if r == Am o u n t. z e r o
1129.08 s
[really-safe-money-gen] + if T r u e
1129.08 s
[really-safe-money-gen] then M.delete currency m
1129.08 s
[really-safe-money-gen] else M.insert currency r m
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen] MaybeOp at src/Money/MultiAmount.hs:112:33-39
1129.08 s
[really-safe-money-gen] @@ -109,7 +109,7 @@
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
1129.08 s
[really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
1129.08 s
[really-safe-money-gen] - subtractAmount m _ (Amount 0) = J u s t m
1129.08 s
[really-safe-money-gen] + subtractAmount m _ (Amount 0) = No t h ing
1129.08 s
[really-safe-money-gen] subtractAmount (MultiAmount m) currency amount =
1129.08 s
[really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
1129.08 s
[really-safe-money-gen] Nothing -> Nothing -- Can't go below zero
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen] Cmp at src/Money/MultiAmount.hs:168:20-45
1129.08 s
[really-safe-money-gen] @@ -165,7 +165,7 @@
1129.08 s
[really-safe-money-gen] maxBoundN :: Natural
1129.08 s
[really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
1129.08 s
[really-safe-money-gen] actualResult =
1129.08 s
[really-safe-money-gen] - if roundedResult > maxBoundN
1129.08 s
[really-safe-money-gen] + if roundedResult > = maxBoundN
1129.08 s
[really-safe-money-gen] then Nothing
1129.08 s
[really-safe-money-gen] else Just (fromIntegral roundedResult)
1129.08 s
[really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen] ListLit at src/Money/Amount.hs:603:7-8
1129.08 s
[really-safe-money-gen] @@ -600,13 +600,12 @@
1129.08 s
[really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
1129.08 s
[really-safe-money-gen] validate ad =
1129.08 s
[really-safe-money-gen] mconcat
1129.08 s
[really-safe-money-gen] - [ genericValidate ad,
1129.08 s
[really-safe-money-gen] case ad of
1129.08 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1129.08 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1129.08 s
[really-safe-money-gen] a1 > a2
1129.08 s
[really-safe-money-gen] _ -> valid
1129.08 s
[really-safe-money-gen] ]
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen]
1129.08 s
[really-safe-money-gen] ListLit at src/Money/Amount.hs:603:7-8
1129.08 s
[really-safe-money-gen] @@ -600,13 +600,7 @@
1129.08 s
[really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
1129.08 s
[really-safe-money-gen] validate ad =
1129.08 s
[really-safe-money-gen] mconcat
1129.08 s
[really-safe-money-gen] - [ genericValidate ad,
1129.08 s
[really-safe-money-gen] - case ad of
1129.08 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
1129.08 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
1129.09 s
[really-safe-money-gen] - a1 > a2
1129.09 s
[really-safe-money-gen] - _ -> valid
1129.09 s
[really-safe-money-gen] ]
1129.09 s
[really-safe-money-gen]
1129.09 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
1129.09 s
[really-safe-money-gen]
1129.09 s
[really-safe-money-gen]
1129.09 s
[really-safe-money-gen] RemoveCase at src/Money/Amount.hs:604:9-21
1129.09 s
[really-safe-money-gen] @@ -601,11 +601,8 @@
1129.09 s
[really-safe-money-gen] validate ad =
1129.09 s
[really-safe-money-gen] mconcat
1129.09 s
[really-safe-money-gen] [ genericValidate ad,
1129.09 s
[really-safe-money-gen] case ad of
1129.09 s
[really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
1129.09 s
[really-safe-money-gen] - declare "The larger chunks are larger" $
1129.09 s
[really-safe-money-gen] - a1 > a2
1129.09 s
[really-safe-money-gen] _ -> valid
1129.09 s
[really-safe-money-gen] ]
1129.09 s
[really-safe-money-gen]
1129.09 s
[really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
1129.09 s
[really-safe-money-gen]
1129.09 s
[really-safe-money-gen] ConstBool at src/Money/Amount.hs:607:15-22
1129.09 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
1129.09 s
[really-safe-money-gen] case ad of
1129.09 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1129.09 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1129.09 s
[really-safe-money-gen] - a 1 > a2
1129.09 s
[really-safe-money-gen] + T rue
1129.09 s
[really-safe-money-gen] _ -> valid
1129.09 s
[really-safe-money-gen] ]
1129.09 s
[really-safe-money-gen]
1129.09 s
[really-safe-money-gen]
1129.09 s
[really-safe-money-gen] Cmp at src/Money/Amount.hs:607:15-22
1129.09 s
[really-safe-money-gen] @@ -604,7 +604,7 @@
1129.09 s
[really-safe-money-gen] case ad of
1129.09 s
[really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
1129.09 s
[really-safe-money-gen] declare "The larger chunks are larger" $
1129.09 s
[really-safe-money-gen] - a1 > a2
1129.09 s
[really-safe-money-gen] + a1 > = a2
1129.09 s
[really-safe-money-gen] _ -> valid
1129.09 s
[really-safe-money-gen] ]
1129.09 s
[really-safe-money-gen]
1129.09 s
[really-safe-money-gen]
1129.09 s
[really-safe-money-gen] MaybeOp at src/Money/Amount.hs:661:19-28
1129.09 s
[really-safe-money-gen] @@ -658,7 +658,7 @@
1129.09 s
[really-safe-money-gen] -- | The amount and the real rate that was used, considering the 'Rounding'
1129.09 s
[really-safe-money-gen] (Maybe Amount, Ratio Natural)
1129.09 s
[really-safe-money-gen] fraction _ (Amount 0) f = (Just zero, f)
1129.09 s
[really-safe-money-gen] - fraction _ _ 0 = ( J u st ze r o , 0)
1129.09 s
[really-safe-money-gen] + fraction _ _ 0 = ( N o th in g , 0)
1129.09 s
[really-safe-money-gen] fraction r (Amount a) f =
1129.09 s
[really-safe-money-gen] let amountAsRatio :: Ratio Natural
1129.09 s
[really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
1129.09 s
[really-safe-money-gen]
1129.09 s
[really-safe-money-gen] Cmp at src/Money/Amount.hs:495:10-23
1129.09 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
1129.09 s
[really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
1129.09 s
[really-safe-money-gen] r :: Integer
1129.09 s
[really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
1129.09 s
[really-safe-money-gen] - in if r > maxBoundI
1129.09 s
[really-safe-money-gen] + in if r > = maxBoundI
1129.09 s
[really-safe-money-gen] then Nothing
1129.09 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1129.10 s
[really-safe-money-gen]
1129.10 s
[really-safe-money-gen]
1129.10 s
[really-safe-money-gen] Cmp at src/Money/Amount.hs:341:26-91
1129.10 s
[really-safe-money-gen] @@ -338,7 +338,7 @@
1129.10 s
[really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
1129.10 s
[really-safe-money-gen] in if ceiled == floored
1129.10 s
[really-safe-money-gen] then
1129.10 s
[really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1129.10 s
[really-safe-money-gen] + if ceiled > = (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
1129.10 s
[really-safe-money-gen] then Nothing
1129.10 s
[really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
1129.10 s
[really-safe-money-gen] else Nothing
1129.10 s
[really-safe-money-gen]
1129.10 s
[really-safe-money-gen] ConstBool at src/Money/Amount.hs:332:14-40
1129.10 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
1129.10 s
[really-safe-money-gen] | otherwise =
1129.10 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
1129.10 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
1129.10 s
[really-safe-money-gen] - if e xp one nt r e s ultDoub l e > 65
1129.10 s
[really-safe-money-gen] + if Fa l s e
1129.10 s
[really-safe-money-gen] then Nothing
1129.10 s
[really-safe-money-gen] else
1129.10 s
[really-safe-money-gen] let ceiled :: Natural
1129.11 s
[really-safe-money-gen]
1129.11 s
[really-safe-money-gen] Cmp at src/Money/Amount.hs:332:14-40
1129.11 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
1129.11 s
[really-safe-money-gen] | otherwise =
1129.11 s
[really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
1129.11 s
[really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
1129.11 s
[really-safe-money-gen] - if exponent resultDouble > 65
1129.11 s
[really-safe-money-gen] + if exponent resultDouble > = 65
1129.11 s
[really-safe-money-gen] then Nothing
1129.11 s
[really-safe-money-gen] else
1129.11 s
[really-safe-money-gen] let ceiled :: Natural
1129.11 s
[really-safe-money-gen]
1129.11 s
[really-safe-money-gen] MaybeOp at src/Money/Amount.hs:520:14-66
1129.11 s
[really-safe-money-gen] @@ -517,7 +517,7 @@
1129.11 s
[really-safe-money-gen] r = i1 - i2
1129.11 s
[really-safe-money-gen] in if r < 0
1129.11 s
[really-safe-money-gen] then Nothing
1129.11 s
[really-safe-money-gen] - else J u s t ( Am o u n t ( (f rom I n t e g er :: Integer -> Word64) r))
1129.12 s
[really-safe-money-gen] + else N o t hi n g
1129.12 s
[really-safe-money-gen]
1129.12 s
[really-safe-money-gen] -- | Multiply an amount of money by an integer scalar
1129.12 s
[really-safe-money-gen] --
1129.12 s
[really-safe-money-gen]
1129.12 s
[really-safe-money-gen] ConstBool at src/Money/Amount.hs:518:10-15
1129.12 s
[really-safe-money-gen] @@ -515,7 +515,7 @@
1129.12 s
[really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
1129.12 s
[really-safe-money-gen] r :: Integer
1129.12 s
[really-safe-money-gen] r = i1 - i2
1129.12 s
[really-safe-money-gen] - in if r < 0
1129.12 s
[really-safe-money-gen] + in if T r ue
1129.12 s
[really-safe-money-gen] then Nothing
1129.12 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1129.12 s
[really-safe-money-gen]
1129.12 s
[really-safe-money-gen]
1129.12 s
[really-safe-money-gen] Cmp at src/Money/Amount.hs:518:10-15
1129.12 s
[really-safe-money-gen] @@ -515,7 +515,7 @@
1129.12 s
[really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
1129.12 s
[really-safe-money-gen] r :: Integer
1129.12 s
[really-safe-money-gen] r = i1 - i2
1129.12 s
[really-safe-money-gen] - in if r < 0
1129.12 s
[really-safe-money-gen] + in if r < = 0
1129.12 s
[really-safe-money-gen] then Nothing
1129.12 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1129.12 s
[really-safe-money-gen]
1129.12 s
[really-safe-money-gen]
1129.12 s
[really-safe-money-gen] IntLit at src/Money/Amount.hs:518:14-15
1129.12 s
[really-safe-money-gen] @@ -515,7 +515,7 @@
1129.12 s
[really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
1129.12 s
[really-safe-money-gen] r :: Integer
1129.13 s
[really-safe-money-gen] r = i1 - i2
1129.13 s
[really-safe-money-gen] - in if r < 0
1129.13 s
[really-safe-money-gen] + in if r < 1
1129.13 s
[really-safe-money-gen] then Nothing
1129.13 s
[really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
1129.13 s
[really-safe-money-gen]
1129.13 s
[really-safe-money-gen]
1129.13 s
[really-safe-money-gen] ListLit at src/Money/QuantisationFactor.hs:39:7-8
1129.13 s
[really-safe-money-gen] @@ -36,9 +36,8 @@
1129.13 s
[really-safe-money-gen] instance Validity QuantisationFactor where
1129.13 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
1129.13 s
[really-safe-money-gen] mconcat
1129.13 s
[really-safe-money-gen] - [ genericValidate qf,
1129.13 s
[really-safe-money-gen] declare "The quantisation factor is not zero" $ w /= 0
1129.13 s
[really-safe-money-gen] ]
1129.13 s
[really-safe-money-gen]
1129.13 s
[really-safe-money-gen] instance NFData QuantisationFactor
1129.13 s
[really-safe-money-gen]
1129.13 s
[really-safe-money-gen]
1129.13 s
[really-safe-money-gen] ListLit at src/Money/QuantisationFactor.hs:39:7-8
1129.13 s
[really-safe-money-gen] @@ -36,9 +36,7 @@
1129.13 s
[really-safe-money-gen] instance Validity QuantisationFactor where
1129.13 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
1129.13 s
[really-safe-money-gen] mconcat
1129.13 s
[really-safe-money-gen] - [ genericValidate qf,
1129.13 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
1129.13 s
[really-safe-money-gen] ]
1129.13 s
[really-safe-money-gen]
1129.13 s
[really-safe-money-gen] instance NFData QuantisationFactor
1129.13 s
[really-safe-money-gen]
1129.13 s
[really-safe-money-gen]
1129.13 s
[really-safe-money-gen] ConstBool at src/Money/QuantisationFactor.hs:40:57-63
1129.13 s
[really-safe-money-gen] @@ -37,7 +37,7 @@
1129.14 s
[really-safe-money-gen] validate qf@(QuantisationFactor w) =
1129.14 s
[really-safe-money-gen] mconcat
1129.14 s
[really-safe-money-gen] [ genericValidate qf,
1129.14 s
[really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
1129.14 s
[really-safe-money-gen] + declare "The quantisation factor is not zero" $ Tru e
1129.14 s
[really-safe-money-gen] ]
1129.14 s
[really-safe-money-gen]
1129.14 s
[really-safe-money-gen] instance NFData QuantisationFactor
1129.14 s
[really-safe-money-gen]
1129.14 s
[really-safe-money-gen] IntLit at src/Money/ConversionRate.hs:109:27-28
1129.14 s
[really-safe-money-gen] @@ -106,7 +106,7 @@
1129.14 s
[really-safe-money-gen]
1129.14 s
[really-safe-money-gen] -- | One-to-one conversion rate
1129.14 s
[really-safe-money-gen] oneToOne :: ConversionRate
1129.14 s
[really-safe-money-gen] - oneToOne = ConversionRate 1
1129.14 s
[really-safe-money-gen] + oneToOne = ConversionRate 0
1129.14 s
[really-safe-money-gen]
1129.14 s
[really-safe-money-gen] -- | Invert a 'ConversionRate', to convert in the other direction.
1129.14 s
[really-safe-money-gen] --
1129.14 s
[really-safe-money-gen]
1129.14 s
[really-safe-money-gen] Arith at src/Money/ConversionRate.hs:127:70-79
1129.14 s
[really-safe-money-gen] @@ -124,7 +124,7 @@
1129.14 s
[really-safe-money-gen] -- >>> compose (ConversionRate (2 % 1)) (ConversionRate (1 % 2))
1129.14 s
[really-safe-money-gen] -- ConversionRate {unConversionRate = 1 % 1}
1129.14 s
[really-safe-money-gen] compose :: ConversionRate -> ConversionRate -> ConversionRate
1129.14 s
[really-safe-money-gen] - compose (ConversionRate cr1) (ConversionRate cr2) = ConversionRate $ cr1 * cr2
1129.14 s
[really-safe-money-gen] + compose (ConversionRate cr1) (ConversionRate cr2) = ConversionRate $ cr1 + cr2
1129.14 s
[really-safe-money-gen]
1129.14 s
[really-safe-money-gen] -- | The factor to multiply by when converting currencies.
1129.14 s
[really-safe-money-gen] conversionFactor :: QuantisationFactor -> ConversionRate -> QuantisationFactor -> Ratio Natural
1129.14 s
[really-safe-money-gen]
1129.14 s
[really-safe-money-gen] RemoveCase at src/Money/AccountOf.hs:180:30-115
1129.14 s
[really-safe-money-gen] @@ -177,11 +177,10 @@
1129.14 s
[really-safe-money-gen]
1129.14 s
[really-safe-money-gen] -- | See 'Account.distribute'
1129.14 s
[really-safe-money-gen] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
1129.15 s
[really-safe-money-gen] distribute (AccountOf a) w = case Account.distribute a w of
1129.15 s
[really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
1129.15 s
[really-safe-money-gen] DistributedZero -> DistributedZero
1129.15 s
[really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
1129.15 s
[really-safe-money-gen] DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
1129.15 s
[really-safe-money-gen]
1129.15 s
[really-safe-money-gen] -- | The result of 'distribute'
1129.15 s
[really-safe-money-gen] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
1129.15 s
[really-safe-money-gen]
1129.15 s
[really-safe-money-gen] RemoveCase at src/Numeric/DecimalLiteral.hs:112:17-21
1129.15 s
[really-safe-money-gen] @@ -109,9 +109,8 @@
1129.15 s
[really-safe-money-gen]
1129.15 s
[really-safe-money-gen] -- | Like 'fromString' but in a 'MonadFail'
1129.15 s
[really-safe-money-gen] fromStringM :: (MonadFail m) => String -> m DecimalLiteral
1129.15 s
[really-safe-money-gen] fromStringM s = case Numeric.DecimalLiteral.fromString s of
1129.15 s
[really-safe-money-gen] Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
1129.15 s
[really-safe-money-gen] - Just dl -> pure dl
1129.15 s
[really-safe-money-gen]
1129.15 s
[really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
1129.15 s
[really-safe-money-gen] decimalLiteralP = do
1129.15 s
[really-safe-money-gen]
1129.15 s
[really-safe-money-gen] RemoveCase at src/Numeric/DecimalLiteral.hs:287:38-40
1129.15 s
[really-safe-money-gen] @@ -284,9 +284,8 @@
1129.15 s
[really-safe-money-gen] -- >>> toRatio (DecimalLiteral (Just False) 3 1)
1129.15 s
[really-safe-money-gen] -- Nothing
1129.15 s
[really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
1129.15 s
[really-safe-money-gen] toRatio (DecimalLiteral mSign m e) = case mSign of
1129.15 s
[really-safe-money-gen] - Just False -> Nothing
1129.15 s
[really-safe-money-gen] _ -> Just $ fromIntegral m / (10 ^ e)
1129.15 s
[really-safe-money-gen]
1129.15 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
1129.15 s
[really-safe-money-gen] fromWord :: Word -> DecimalLiteral
1129.15 s
[really-safe-money-gen]
1129.15 s
[really-safe-money-gen] IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
1129.15 s
[really-safe-money-gen] @@ -286,7 +286,7 @@
1129.15 s
[really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
1129.15 s
[really-safe-money-gen] toRatio (DecimalLiteral mSign m e) = case mSign of
1129.15 s
[really-safe-money-gen] Just False -> Nothing
1129.15 s
[really-safe-money-gen] - _ -> Just $ fromIntegral m / (1 0 ^ e)
1129.15 s
[really-safe-money-gen] + _ -> Just $ fromIntegral m / (1 ^ e)
1129.15 s
[really-safe-money-gen]
1129.15 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
1129.15 s
[really-safe-money-gen] fromWord :: Word -> DecimalLiteral
1129.15 s
[really-safe-money-gen]
1129.15 s
[really-safe-money-gen] RemoveAction at src/Numeric/DecimalLiteral.hs:299:3-47
1129.16 s
[really-safe-money-gen] @@ -296,7 +296,6 @@
1129.16 s
[really-safe-money-gen] toWord :: DecimalLiteral -> Maybe Word
1129.16 s
[really-safe-money-gen] toWord dl = do
1129.16 s
[really-safe-money-gen] n <- toNatural dl
1129.16 s
[really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Word)
1129.16 s
[really-safe-money-gen] pure $ fromIntegral n
1129.16 s
[really-safe-money-gen]
1129.16 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Natural'
1129.16 s
[really-safe-money-gen]
1129.16 s
[really-safe-money-gen] ConstBool at src/Numeric/DecimalLiteral.hs:299:11-47
1129.16 s
[really-safe-money-gen] @@ -296,7 +296,7 @@
1129.16 s
[really-safe-money-gen] toWord :: DecimalLiteral -> Maybe Word
1129.16 s
[really-safe-money-gen] toWord dl = do
1129.16 s
[really-safe-money-gen] n <- toNatural dl
1129.16 s
[really-safe-money-gen] - guard $ n < = from I n te g r a l (maxB o u n d : : W ord)
1129.16 s
[really-safe-money-gen] + guard $ T r u e
1129.16 s
[really-safe-money-gen] pure $ fromIntegral n
1129.16 s
[really-safe-money-gen]
1129.16 s
[really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Natural'
1129.16 s
[really-safe-money-gen]
1129.16 s
[really-safe-money-gen] RemoveAction at src/Numeric/DecimalLiteral.hs:332:3-46
1129.16 s
[really-safe-money-gen] @@ -329,7 +329,6 @@
1129.16 s
[really-safe-money-gen] toInt :: DecimalLiteral -> Maybe Int
1129.16 s
[really-safe-money-gen] toInt dl = do
1129.16 s
[really-safe-money-gen] n <- toInteger dl
1129.16 s
[really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Int)
1129.16 s
[really-safe-money-gen] guard $ n >= fromIntegral (minBound :: Int)
1129.16 s
[really-safe-money-gen] pure $ fromIntegral n
1129.16 s
[really-safe-money-gen]
1129.16 s
[really-safe-money-gen]
1129.16 s
[really-safe-money-gen] RemoveAction at src/Numeric/DecimalLiteral.hs:333:3-46
1129.16 s
[really-safe-money-gen] @@ -330,7 +330,6 @@
1129.16 s
[really-safe-money-gen] toInt dl = do
1129.16 s
[really-safe-money-gen] n <- toInteger dl
1129.16 s
[really-safe-money-gen] guard $ n <= fromIntegral (maxBound :: Int)
1129.16 s
[really-safe-money-gen] - guard $ n >= fromIntegral (minBound :: Int)
1129.16 s
[really-safe-money-gen] pure $ fromIntegral n
1129.16 s
[really-safe-money-gen]
1129.16 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
1129.16 s
[really-safe-money-gen]
1129.16 s
[really-safe-money-gen] ConstBool at src/Numeric/DecimalLiteral.hs:333:11-46
1129.16 s
[really-safe-money-gen] @@ -330,7 +330,7 @@
1129.16 s
[really-safe-money-gen] toInt dl = do
1129.16 s
[really-safe-money-gen] n <- toInteger dl
1129.16 s
[really-safe-money-gen] guard $ n <= fromIntegral (maxBound :: Int)
1129.16 s
[really-safe-money-gen] - guard $ n >= f r om I n t e g ral (minBound :: Int)
1129.16 s
[really-safe-money-gen] + guard $ T r u e
1129.16 s
[really-safe-money-gen] pure $ fromIntegral n
1129.17 s
[really-safe-money-gen]
1129.17 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
1129.17 s
[really-safe-money-gen]
1129.17 s
[really-safe-money-gen] ConstBool at src/Numeric/DecimalLiteral.hs:332:11-46
1129.17 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
1129.17 s
[really-safe-money-gen] toInt :: DecimalLiteral -> Maybe Int
1129.17 s
[really-safe-money-gen] toInt dl = do
1129.17 s
[really-safe-money-gen] n <- toInteger dl
1129.17 s
[really-safe-money-gen] - guard $ n <= f r om I n t e g ral (maxBound :: Int)
1129.17 s
[really-safe-money-gen] + guard $ T r u e
1129.17 s
[really-safe-money-gen] guard $ n >= fromIntegral (minBound :: Int)
1129.17 s
[really-safe-money-gen] pure $ fromIntegral n
1129.17 s
[really-safe-money-gen]
1129.17 s
[really-safe-money-gen]
1129.17 s
[really-safe-money-gen] Cmp at src/Numeric/DecimalLiteral.hs:332:11-46
1129.17 s
[really-safe-money-gen] @@ -329,7 +329,7 @@
1129.17 s
[really-safe-money-gen] toInt :: DecimalLiteral -> Maybe Int
1129.17 s
[really-safe-money-gen] toInt dl = do
1129.17 s
[really-safe-money-gen] n <- toInteger dl
1129.17 s
[really-safe-money-gen] - guard $ n < = fromIntegral (maxBound :: Int)
1129.17 s
[really-safe-money-gen] + guard $ n < fromIntegral (maxBound :: Int)
1129.17 s
[really-safe-money-gen] guard $ n >= fromIntegral (minBound :: Int)
1129.17 s
[really-safe-money-gen] pure $ fromIntegral n
1129.17 s
[really-safe-money-gen]
1129.17 s
[really-safe-money-gen]
1129.17 s
[really-safe-money-gen] Cmp at src/Numeric/DecimalLiteral.hs:337:16-22
1129.17 s
[really-safe-money-gen] @@ -334,7 +334,7 @@
1129.17 s
[really-safe-money-gen] pure $ fromIntegral n
1129.17 s
[really-safe-money-gen]
1129.17 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
1129.17 s
[really-safe-money-gen] - numSign a = if a > = 0 then Nothing else Just False
1129.17 s
[really-safe-money-gen] + numSign a = if a > 0 then Nothing else Just False
1129.17 s
[really-safe-money-gen]
1129.17 s
[really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
1129.17 s
[really-safe-money-gen] signSignum = \case
1129.17 s
[really-safe-money-gen]
1129.17 s
[really-safe-money-gen] IntLit at src/Numeric/DecimalLiteral.hs:337:21-22
1129.17 s
[really-safe-money-gen] @@ -334,7 +334,7 @@
1129.17 s
[really-safe-money-gen] pure $ fromIntegral n
1129.17 s
[really-safe-money-gen]
1129.17 s
[really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
1129.17 s
[really-safe-money-gen] - numSign a = if a >= 0 then Nothing else Just False
1129.17 s
[really-safe-money-gen] + numSign a = if a >= 1 then Nothing else Just False
1129.17 s
[really-safe-money-gen]
1129.18 s
[really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
1129.18 s
[really-safe-money-gen] signSignum = \case
1129.18 s
[really-safe-money-gen]
1129.18 s
[really-safe-money-gen] Cmp at src/Money/Account.hs:131:20-26
1129.18 s
[really-safe-money-gen] @@ -128,7 +128,7 @@
1129.18 s
[really-safe-money-gen] amount :: Amount
1129.18 s
[really-safe-money-gen] amount = Amount.fromMinimalQuantisations w
1129.18 s
[really-safe-money-gen] in Just $
1129.18 s
[really-safe-money-gen] - if i > = 0
1129.18 s
[really-safe-money-gen] + if i > 0
1129.18 s
[really-safe-money-gen] then Positive amount
1129.18 s
[really-safe-money-gen] else Negative amount
1129.18 s
[really-safe-money-gen]
1129.18 s
[really-safe-money-gen]
1129.18 s
[really-safe-money-gen] IntLit at src/Money/Account.hs:131:25-26
1129.18 s
[really-safe-money-gen] @@ -128,7 +128,7 @@
1129.18 s
[really-safe-money-gen] amount :: Amount
1129.18 s
[really-safe-money-gen] amount = Amount.fromMinimalQuantisations w
1129.18 s
[really-safe-money-gen] in Just $
1129.18 s
[really-safe-money-gen] - if i >= 0
1129.18 s
[really-safe-money-gen] + if i >= 1
1129.18 s
[really-safe-money-gen] then Positive amount
1129.18 s
[really-safe-money-gen] else Negative amount
1129.18 s
[really-safe-money-gen]
1129.18 s
[really-safe-money-gen]
1129.18 s
[really-safe-money-gen] ConstBool at src/Money/Account.hs:123:10-23
1129.18 s
[really-safe-money-gen] @@ -120,7 +120,7 @@
1129.18 s
[really-safe-money-gen] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
1129.18 s
[really-safe-money-gen] a :: Integer
1129.18 s
[really-safe-money-gen] a = (Prelude.abs :: Integer -> Integer) i
1129.18 s
[really-safe-money-gen] - in if a > m a xB ound I
1129.18 s
[really-safe-money-gen] + in if F a l se
1129.18 s
[really-safe-money-gen] then Nothing
1129.18 s
[really-safe-money-gen] else
1129.18 s
[really-safe-money-gen] let w :: Word64
1129.18 s
[really-safe-money-gen]
1129.18 s
[really-safe-money-gen] Cmp at src/Money/Account.hs:197:14-20
1129.18 s
[really-safe-money-gen] @@ -194,7 +194,7 @@
1129.18 s
[really-safe-money-gen] fromDouble :: QuantisationFactor -> Double -> Maybe Account
1129.18 s
[really-safe-money-gen] fromDouble quantisationFactor d =
1129.18 s
[really-safe-money-gen] let d' = Prelude.abs d
1129.18 s
[really-safe-money-gen] - f = if d > = 0 then Positive else Negative
1129.18 s
[really-safe-money-gen] + f = if d > 0 then Positive else Negative
1129.18 s
[really-safe-money-gen] in f <$> Amount.fromDouble quantisationFactor d'
1129.18 s
[really-safe-money-gen]
1129.18 s
[really-safe-money-gen] -- | Turn an amount of money into a 'Rational'.
1129.18 s
[really-safe-money-gen]
1129.18 s
[really-safe-money-gen] Cmp at src/Money/Account.hs:503:10-16
1129.18 s
[really-safe-money-gen] @@ -500,7 +500,7 @@
1129.18 s
[really-safe-money-gen] RoundNearest -> RoundNearest
1129.18 s
[really-safe-money-gen] (ma, ar) = fractionRatio ro account af
1129.18 s
[really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
1129.18 s
[really-safe-money-gen] - in if f > = 0
1129.19 s
[really-safe-money-gen] + in if f > 0
1129.19 s
[really-safe-money-gen] then (ma, r)
1129.19 s
[really-safe-money-gen] else (negate <$> ma, -r)
1129.19 s
[really-safe-money-gen]
1129.19 s
[really-safe-money-gen]
1129.19 s
[really-safe-money-gen] Cmp at src/Money/Account.hs:495:12-18
1129.19 s
[really-safe-money-gen] @@ -492,7 +492,7 @@
1129.19 s
[really-safe-money-gen] fraction rounding account f =
1129.19 s
[really-safe-money-gen] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
1129.19 s
[really-safe-money-gen] ro =
1129.19 s
[really-safe-money-gen] - if f > = 0
1129.19 s
[really-safe-money-gen] + if f > 0
1129.19 s
[really-safe-money-gen] then rounding
1129.19 s
[really-safe-money-gen] else case rounding of
1129.19 s
[really-safe-money-gen] RoundUp -> RoundDown
1129.19 s
[really-safe-money-gen]
1129.19 s
[really-safe-money-gen] MaybeOp at src/Money/Account.hs:523:16-25
1129.19 s
[really-safe-money-gen] @@ -520,7 +520,7 @@
1129.19 s
[really-safe-money-gen] (amount, actualFraction) = Amount.fraction ro aa af
1129.19 s
[really-safe-money-gen] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
1129.19 s
[really-safe-money-gen] func ma r = case compare account zero of
1129.19 s
[really-safe-money-gen] - EQ -> ( J u st ze r o , r)
1129.19 s
[really-safe-money-gen] + EQ -> ( N o th in g , r)
1129.19 s
[really-safe-money-gen] GT -> (Positive <$> ma, r)
1129.19 s
[really-safe-money-gen] LT -> (Negative <$> ma, r)
1129.19 s
[really-safe-money-gen] in func amount actualFraction
1129.19 s
[really-safe-money-gen]
1129.19 s
[really-safe-money-gen] Cmp at src/Money/Account.hs:455:14-23
1129.19 s
[really-safe-money-gen] @@ -452,7 +452,7 @@
1129.19 s
[really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
1129.19 s
[really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
1129.19 s
[really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
1129.19 s
[really-safe-money-gen] - if a > = zero
1129.19 s
[really-safe-money-gen] + if a > zero
1129.19 s
[really-safe-money-gen] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
1129.19 s
[really-safe-money-gen] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
1129.19 s
[really-safe-money-gen]
1129.19 s
[really-safe-money-gen]
1129.19 s
[really-safe-money-gen] Cmp at src/Money/Account.hs:451:14-23
1129.19 s
[really-safe-money-gen] @@ -448,7 +448,7 @@
1129.19 s
[really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
1129.19 s
[really-safe-money-gen] DistributedZero -> DistributedZero
1129.19 s
[really-safe-money-gen] DistributedIntoEqualChunks numberOfChunks chunk ->
1129.19 s
[really-safe-money-gen] - if a > = zero
1129.20 s
[really-safe-money-gen] + if a > zero
1129.20 s
[really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
1129.20 s
[really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
1129.20 s
[really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
1129.20 s
[really-safe-money-gen] checkPhase completed in 17 minutes 10 seconds
1129.20 s
[really-safe-money-gen] Phase: haddockPhase
1129.70 s
[really-safe-money-gen] Preprocessing library for really-safe-money-gen-0.0.0.0...
1129.70 s
[really-safe-money-gen] Running Haddock on library for really-safe-money-gen-0.0.0.0...
1129.71 s
[really-safe-money-gen] Warning: The documentation for the following packages are not installed. No
1129.71 s
[really-safe-money-gen] links will be generated to these packages: really-safe-money-0.0.0.0
1130.53 s
[really-safe-money-gen] [ 1 of 13] Compiling Money.Amount.Gen ( src/Money/Amount/Gen.hs, nothing )
1131.03 s
[really-safe-money-gen] [ 2 of 13] Compiling Money.Account.Gen ( src/Money/Account/Gen.hs, nothing )
1131.06 s
[really-safe-money-gen] [ 3 of 13] Compiling Money.AccountOf.Gen ( src/Money/AccountOf/Gen.hs, nothing )
1131.09 s
[really-safe-money-gen] [ 4 of 13] Compiling Money.AmountOf.Gen ( src/Money/AmountOf/Gen.hs, nothing )
1131.11 s
[really-safe-money-gen] [ 5 of 13] Compiling Money.ConversionRate.Gen ( src/Money/ConversionRate/Gen.hs, nothing )
1131.16 s
[really-safe-money-gen] [ 6 of 13] Compiling Money.ConversionRateOf.Gen ( src/Money/ConversionRateOf/Gen.hs, nothing )
1131.18 s
[really-safe-money-gen] [ 7 of 13] Compiling Money.QuantisationFactor.Gen ( src/Money/QuantisationFactor/Gen.hs, nothing )
1131.20 s
[really-safe-money-gen] [ 8 of 13] Compiling Money.Currency.Gen ( src/Money/Currency/Gen.hs, nothing )
1131.23 s
[really-safe-money-gen] [ 9 of 13] Compiling Money.MultiAmount.Gen ( src/Money/MultiAmount/Gen.hs, nothing )
1131.30 s
[really-safe-money-gen] [10 of 13] Compiling Money.MultiAccount.Gen ( src/Money/MultiAccount/Gen.hs, nothing )
1131.33 s
[really-safe-money-gen] [11 of 13] Compiling Money.Gen ( src/Money/Gen.hs, nothing )
1131.34 s
[really-safe-money-gen] [12 of 13] Compiling Numeric.DecimalLiteral.Gen ( src/Numeric/DecimalLiteral/Gen.hs, nothing )
1131.38 s
[really-safe-money-gen] [13 of 13] Compiling Paths_really_safe_money_gen ( dist/build/autogen/Paths_really_safe_money_gen.hs, nothing )
1131.47 s
[really-safe-money-gen] Haddock coverage:
1131.47 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.Amount.Gen'
1131.47 s
[really-safe-money-gen] Missing documentation for:
1131.47 s
[really-safe-money-gen] Module header
1131.47 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.Account.Gen'
1131.47 s
[really-safe-money-gen] Missing documentation for:
1131.47 s
[really-safe-money-gen] Module header
1131.47 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.AccountOf.Gen'
1131.47 s
[really-safe-money-gen] Missing documentation for:
1131.47 s
[really-safe-money-gen] Module header
1131.47 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.AmountOf.Gen'
1131.47 s
[really-safe-money-gen] Missing documentation for:
1131.47 s
[really-safe-money-gen] Module header
1131.47 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.ConversionRate.Gen'
1131.47 s
[really-safe-money-gen] Missing documentation for:
1131.47 s
[really-safe-money-gen] Module header
1131.47 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.ConversionRateOf.Gen'
1131.47 s
[really-safe-money-gen] Missing documentation for:
1131.47 s
[really-safe-money-gen] Module header
1131.47 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.QuantisationFactor.Gen'
1131.47 s
[really-safe-money-gen] Missing documentation for:
1131.47 s
[really-safe-money-gen] Module header
1131.48 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.Currency.Gen'
1131.48 s
[really-safe-money-gen] Missing documentation for:
1131.48 s
[really-safe-money-gen] Module header
1131.48 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.MultiAmount.Gen'
1131.48 s
[really-safe-money-gen] Missing documentation for:
1131.48 s
[really-safe-money-gen] Module header
1131.48 s
[really-safe-money-gen] 0% ( 0 / 1) in 'Money.MultiAccount.Gen'
1131.48 s
[really-safe-money-gen] Missing documentation for:
1131.48 s
[really-safe-money-gen] Module header
1131.48 s
[really-safe-money-gen] Warning: Money.Gen: Could not find documentation for exported module: Money.Gen
1131.48 s
[really-safe-money-gen] 90% ( 10 / 11) in 'Money.Gen'
1131.48 s
[really-safe-money-gen] Missing documentation for:
1131.48 s
[really-safe-money-gen] Module header
1131.48 s
[really-safe-money-gen] 0% ( 0 / 2) in 'Numeric.DecimalLiteral.Gen'
1131.48 s
[really-safe-money-gen] Missing documentation for:
1131.48 s
[really-safe-money-gen] Module header
1131.48 s
[really-safe-money-gen] shrinkSign (src/Numeric/DecimalLiteral/Gen.hs:16)
1131.89 s
[really-safe-money-gen] Warning: Money.Amount.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Money.Amount.Amount
1131.89 s
[really-safe-money-gen] - Money.Amount.Distribution
1131.89 s
[really-safe-money-gen] - Money.Amount.Rounding
1131.89 s
[really-safe-money-gen] Warning: Money.Account.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Money.Account.Account
1131.89 s
[really-safe-money-gen] Warning: Money.AccountOf.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Money.AccountOf.AccountOf
1131.89 s
[really-safe-money-gen] Warning: Money.AmountOf.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Money.AmountOf.AmountOf
1131.89 s
[really-safe-money-gen] Warning: Money.ConversionRate.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Money.ConversionRate.ConversionRate
1131.89 s
[really-safe-money-gen] Warning: Money.ConversionRateOf.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Money.ConversionRateOf.ConversionRateOf
1131.89 s
[really-safe-money-gen] Warning: Money.QuantisationFactor.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Money.QuantisationFactor.QuantisationFactor
1131.89 s
[really-safe-money-gen] Warning: Money.Currency.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Money.Currency.Currency
1131.89 s
[really-safe-money-gen] Warning: Money.MultiAmount.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Money.MultiAmount.MultiAmount
1131.89 s
[really-safe-money-gen] Warning: Money.MultiAccount.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Money.MultiAccount.MultiAccount
1131.89 s
[really-safe-money-gen] Warning: Numeric.DecimalLiteral.Gen: could not find link destinations for:
1131.89 s
[really-safe-money-gen] - Numeric.DecimalLiteral.DecimalLiteral
1145.50 s
[really-safe-money-gen] Documentation created: dist/doc/html/really-safe-money-gen/,
1145.50 s
[really-safe-money-gen] dist/doc/html/really-safe-money-gen/really-safe-money-gen.txt
1145.70 s
[really-safe-money-gen] Preprocessing test suite 'really-safe-money-test' for really-safe-money-gen-0.0.0.0...
1145.74 s
[really-safe-money-gen] Phase: installPhase
1146.40 s
[really-safe-money-gen] Installing library in /nix/store/x22sq5r4758msq0k5lv2i7fdk9hc96vc-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-DUlrgfbYR751gcgZIqRr4A
1147.46 s
[really-safe-money-gen] Phase: fixupPhase
1147.51 s
[really-safe-money-gen] shrinking RPATHs of ELF executables and libraries in /nix/store/x22sq5r4758msq0k5lv2i7fdk9hc96vc-really-safe-money-gen-0.0.0.0
1147.53 s
[really-safe-money-gen] shrinking /nix/store/x22sq5r4758msq0k5lv2i7fdk9hc96vc-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-DUlrgfbYR751gcgZIqRr4A-ghc9.10.3.so
1147.56 s
[really-safe-money-gen] checking for references to /build/ in /nix/store/x22sq5r4758msq0k5lv2i7fdk9hc96vc-really-safe-money-gen-0.0.0.0...
1147.62 s
[really-safe-money-gen] patching script interpreter paths in /nix/store/x22sq5r4758msq0k5lv2i7fdk9hc96vc-really-safe-money-gen-0.0.0.0
1147.63 s
[really-safe-money-gen] stripping (with command strip and flags -S -p) in /nix/store/x22sq5r4758msq0k5lv2i7fdk9hc96vc-really-safe-money-gen-0.0.0.0/lib
1147.79 s
[really-safe-money-gen] shrinking RPATHs of ELF executables and libraries in /nix/store/yfi2a6q0xvg6pdr7dss86bpdz9c42b1b-really-safe-money-gen-0.0.0.0-doc
1147.81 s
[really-safe-money-gen] checking for references to /build/ in /nix/store/yfi2a6q0xvg6pdr7dss86bpdz9c42b1b-really-safe-money-gen-0.0.0.0-doc...
1147.86 s
[really-safe-money-gen] patching script interpreter paths in /nix/store/yfi2a6q0xvg6pdr7dss86bpdz9c42b1b-really-safe-money-gen-0.0.0.0-doc
1147.87 s
[really-safe-money-gen] shrinking RPATHs of ELF executables and libraries in /nix/store/cspl7dwv0rdbb0jlvfvaapksdd3d5g4x-really-safe-money-gen-0.0.0.0-report
1147.89 s
[really-safe-money-gen] checking for references to /build/ in /nix/store/cspl7dwv0rdbb0jlvfvaapksdd3d5g4x-really-safe-money-gen-0.0.0.0-report...
1147.94 s
[really-safe-money-gen] patching script interpreter paths in /nix/store/cspl7dwv0rdbb0jlvfvaapksdd3d5g4x-really-safe-money-gen-0.0.0.0-report
1148.31 s
[post-build-hook] Uploading to cachix cache "sydtest": /nix/store/cspl7dwv0rdbb0jlvfvaapksdd3d5g4x-really-safe-money-gen-0.0.0.0-report /nix/store/x22sq5r4758msq0k5lv2i7fdk9hc96vc-really-safe-money-gen-0.0.0.0 /nix/store/yfi2a6q0xvg6pdr7dss86bpdz9c42b1b-really-safe-money-gen-0.0.0.0-doc
1149.32 s
[post-build-hook] Pushing 3 paths (196 are already present) using zstd to cache sydtest ⏳
1149.32 s
[post-build-hook]
1149.67 s
[post-build-hook] Pushing /nix/store/x22sq5r4758msq0k5lv2i7fdk9hc96vc-really-safe-money-gen-0.0.0.0 (1.52 MiB)
1149.80 s
[post-build-hook] Pushing /nix/store/yfi2a6q0xvg6pdr7dss86bpdz9c42b1b-really-safe-money-gen-0.0.0.0-doc (288.17 KiB)
1149.81 s
[post-build-hook] Pushing /nix/store/cspl7dwv0rdbb0jlvfvaapksdd3d5g4x-really-safe-money-gen-0.0.0.0-report (320.23 KiB)
1150.78 s
[post-build-hook]
1150.78 s
[post-build-hook] All done.
1150.87 s
[post-build-hook] Uploading to the NixCI staging cache: /nix/store/cspl7dwv0rdbb0jlvfvaapksdd3d5g4x-really-safe-money-gen-0.0.0.0-report /nix/store/x22sq5r4758msq0k5lv2i7fdk9hc96vc-really-safe-money-gen-0.0.0.0 /nix/store/yfi2a6q0xvg6pdr7dss86bpdz9c42b1b-really-safe-money-gen-0.0.0.0-doc
1150.99 s
[post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
1151.22 s
[post-build-hook] copying 1 paths...
1151.22 s
[post-build-hook] copying path '/nix/store/cspl7dwv0rdbb0jlvfvaapksdd3d5g4x-really-safe-money-gen-0.0.0.0-report' to 'https://cache.staging.nix-ci.com'...
1151.70 s
[post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
1151.97 s
[post-build-hook] copying 0 paths...
1152.05 s
Progress: 5 of 6 built