build checks.x86_64-linux.mutation-really-safe-money

Reproduce this run
  1. 1136.38 s [really-safe-money-gen] floored :: Natural
  2. 1136.38 s [really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
  3. 1136.38 s [really-safe-money-gen] - in if ceiled == floored
  4. 1136.38 s [really-safe-money-gen] + in if False
  5. 1136.38 s [really-safe-money-gen] then
  6. 1136.38 s [really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  7. 1136.38 s [really-safe-money-gen] then Nothing
  8. 1136.38 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:328:9-21
  9. 1136.38 s [really-safe-money-gen] @@ -325,7 +325,7 @@
  10. 1136.39 s [really-safe-money-gen] where
  11. 1136.39 s [really-safe-money-gen] go resultDouble
  12. 1136.39 s [really-safe-money-gen] | isNaN d = Nothing
  13. 1136.39 s [really-safe-money-gen] - | isInfinite d = Nothing
  14. 1136.39 s [really-safe-money-gen] + | True = Nothing
  15. 1136.39 s [really-safe-money-gen] | otherwise =
  16. 1136.39 s [really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
  17. 1136.39 s [really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
  18. 1136.39 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:341:26-91
  19. 1136.39 s [really-safe-money-gen] @@ -338,7 +338,7 @@
  20. 1136.39 s [really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
  21. 1136.39 s [really-safe-money-gen] in if ceiled == floored
  22. 1136.39 s [really-safe-money-gen] then
  23. 1136.39 s [really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  24. 1136.39 s [really-safe-money-gen] + if ceiled < (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  25. 1136.39 s [really-safe-money-gen] then Nothing
  26. 1136.39 s [really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
  27. 1136.39 s [really-safe-money-gen] else Nothing
  28. 1136.39 s [really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:339:22-39
  29. 1136.39 s [really-safe-money-gen] @@ -336,7 +336,7 @@
  30. 1136.39 s [really-safe-money-gen] ceiled = (ceiling :: Double -> Natural) resultDouble
  31. 1136.39 s [really-safe-money-gen] floored :: Natural
  32. 1136.39 s [really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
  33. 1136.39 s [really-safe-money-gen] - in if ceiled == floored
  34. 1136.39 s [really-safe-money-gen] + in if not (ceiled == floored)
  35. 1136.39 s [really-safe-money-gen] then
  36. 1136.39 s [really-safe-money-gen] if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  37. 1136.39 s [really-safe-money-gen] then Nothing
  38. 1136.39 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:341:26-91
  39. 1136.39 s [really-safe-money-gen] @@ -338,7 +338,7 @@
  40. 1136.39 s [really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
  41. 1136.39 s [really-safe-money-gen] in if ceiled == floored
  42. 1136.39 s [really-safe-money-gen] then
  43. 1136.39 s [really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  44. 1136.39 s [really-safe-money-gen] + if ceiled <= (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  45. 1136.39 s [really-safe-money-gen] then Nothing
  46. 1136.39 s [really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
  47. 1136.39 s [really-safe-money-gen] else Nothing
  48. 1136.39 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:341:26-91
  49. 1136.39 s [really-safe-money-gen] @@ -338,7 +338,7 @@
  50. 1136.39 s [really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
  51. 1136.39 s [really-safe-money-gen] in if ceiled == floored
  52. 1136.39 s [really-safe-money-gen] then
  53. 1136.39 s [really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  54. 1136.39 s [really-safe-money-gen] + if False
  55. 1136.39 s [really-safe-money-gen] then Nothing
  56. 1136.39 s [really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
  57. 1136.39 s [really-safe-money-gen] else Nothing
  58. 1136.39 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:341:26-91
  59. 1136.39 s [really-safe-money-gen] @@ -338,7 +338,7 @@
  60. 1136.39 s [really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
  61. 1136.39 s [really-safe-money-gen] in if ceiled == floored
  62. 1136.40 s [really-safe-money-gen] then
  63. 1136.40 s [really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  64. 1136.40 s [really-safe-money-gen] + if True
  65. 1136.40 s [really-safe-money-gen] then Nothing
  66. 1136.40 s [really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
  67. 1136.40 s [really-safe-money-gen] else Nothing
  68. 1136.40 s [really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:290:79-80
  69. 1136.40 s [really-safe-money-gen] @@ -287,7 +287,7 @@
  70. 1136.40 s [really-safe-money-gen] -- >>> toRatio (QuantisationFactor 100) (Amount 1)
  71. 1136.40 s [really-safe-money-gen] -- 1 % 100
  72. 1136.40 s [really-safe-money-gen] toRatio :: QuantisationFactor -> Amount -> Ratio Natural
  73. 1136.40 s [really-safe-money-gen] -toRatio (QuantisationFactor 0) a = fromIntegral (toMinimalQuantisations a) :% 0
  74. 1136.40 s [really-safe-money-gen] +toRatio (QuantisationFactor 0) a = fromIntegral (toMinimalQuantisations a) :% 1
  75. 1136.40 s [really-safe-money-gen] toRatio (QuantisationFactor quantisationFactor) a =
  76. 1136.40 s [really-safe-money-gen] (fromIntegral :: Word64 -> Natural) (toMinimalQuantisations a)
  77. 1136.40 s [really-safe-money-gen] % (fromIntegral :: Word32 -> Natural) quantisationFactor
  78. 1136.40 s [really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:341:26-91
  79. 1136.40 s [really-safe-money-gen] @@ -338,7 +338,7 @@
  80. 1136.40 s [really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
  81. 1136.40 s [really-safe-money-gen] in if ceiled == floored
  82. 1136.40 s [really-safe-money-gen] then
  83. 1136.40 s [really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  84. 1136.40 s [really-safe-money-gen] + if not (ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64))
  85. 1136.40 s [really-safe-money-gen] then Nothing
  86. 1136.40 s [really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
  87. 1136.40 s [really-safe-money-gen] else Nothing
  88. 1136.40 s [really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:494:29-94
  89. 1136.40 s [really-safe-money-gen] @@ -491,7 +491,7 @@
  90. 1136.40 s [really-safe-money-gen] let maxBoundI :: Integer
  91. 1136.40 s [really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
  92. 1136.40 s [really-safe-money-gen] r :: Integer
  93. 1136.40 s [really-safe-money-gen] - r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  94. 1136.40 s [really-safe-money-gen] + r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) - acc) 0 l
  95. 1136.40 s [really-safe-money-gen] in if r > maxBoundI
  96. 1136.40 s [really-safe-money-gen] then Nothing
  97. 1136.40 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  98. 1136.40 s [really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:328:9-21
  99. 1136.40 s [really-safe-money-gen] @@ -325,7 +325,7 @@
  100. 1136.40 s [really-safe-money-gen] where
  101. 1136.40 s [really-safe-money-gen] go resultDouble
  102. 1136.40 s [really-safe-money-gen] | isNaN d = Nothing
  103. 1136.40 s [really-safe-money-gen] - | isInfinite d = Nothing
  104. 1136.40 s [really-safe-money-gen] + | not (isInfinite d) = Nothing
  105. 1136.40 s [really-safe-money-gen] | otherwise =
  106. 1136.40 s [really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
  107. 1136.40 s [really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
  108. 1136.41 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:332:14-40
  109. 1136.41 s [really-safe-money-gen] @@ -329,7 +329,7 @@
  110. 1136.41 s [really-safe-money-gen] | otherwise =
  111. 1136.41 s [really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
  112. 1136.41 s [really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
  113. 1136.41 s [really-safe-money-gen] - if exponent resultDouble > 65
  114. 1136.41 s [really-safe-money-gen] + if exponent resultDouble >= 65
  115. 1136.41 s [really-safe-money-gen] then Nothing
  116. 1136.41 s [really-safe-money-gen] else
  117. 1136.41 s [really-safe-money-gen] let ceiled :: Natural
  118. 1136.41 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:332:14-40
  119. 1136.41 s [really-safe-money-gen] @@ -329,7 +329,7 @@
  120. 1136.41 s [really-safe-money-gen] | otherwise =
  121. 1136.41 s [really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
  122. 1136.41 s [really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
  123. 1136.41 s [really-safe-money-gen] - if exponent resultDouble > 65
  124. 1136.41 s [really-safe-money-gen] + if False
  125. 1136.41 s [really-safe-money-gen] then Nothing
  126. 1136.41 s [really-safe-money-gen] else
  127. 1136.41 s [really-safe-money-gen] let ceiled :: Natural
  128. 1136.41 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:332:14-40
  129. 1136.41 s [really-safe-money-gen] @@ -329,7 +329,7 @@
  130. 1136.41 s [really-safe-money-gen] | otherwise =
  131. 1136.41 s [really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
  132. 1136.41 s [really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
  133. 1136.41 s [really-safe-money-gen] - if exponent resultDouble > 65
  134. 1136.41 s [really-safe-money-gen] + if exponent resultDouble < 65
  135. 1136.41 s [really-safe-money-gen] then Nothing
  136. 1136.41 s [really-safe-money-gen] else
  137. 1136.41 s [really-safe-money-gen] let ceiled :: Natural
  138. 1136.41 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:341:26-91
  139. 1136.41 s [really-safe-money-gen] @@ -338,7 +338,7 @@
  140. 1142.58 s [really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
  141. 1142.60 s [really-safe-money-gen] in if ceiled == floored
  142. 1142.60 s [really-safe-money-gen] then
  143. 1142.60 s [really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  144. 1142.60 s [really-safe-money-gen] + if ceiled >= (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  145. 1142.61 s [really-safe-money-gen] then Nothing
  146. 1142.61 s [really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
  147. 1142.61 s [really-safe-money-gen] else Nothing
  148. 1142.61 s [really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:332:38-40
  149. 1142.61 s [really-safe-money-gen] @@ -329,7 +329,7 @@
  150. 1142.61 s [really-safe-money-gen] | otherwise =
  151. 1142.61 s [really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
  152. 1142.61 s [really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
  153. 1142.61 s [really-safe-money-gen] - if exponent resultDouble > 65
  154. 1142.61 s [really-safe-money-gen] + if exponent resultDouble > 1
  155. 1142.61 s [really-safe-money-gen] then Nothing
  156. 1142.61 s [really-safe-money-gen] else
  157. 1142.61 s [really-safe-money-gen] let ceiled :: Natural
  158. 1142.61 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:495:10-23
  159. 1142.61 s [really-safe-money-gen] @@ -492,7 +492,7 @@
  160. 1142.61 s [really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
  161. 1142.61 s [really-safe-money-gen] r :: Integer
  162. 1142.61 s [really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  163. 1142.61 s [really-safe-money-gen] - in if r > maxBoundI
  164. 1142.61 s [really-safe-money-gen] + in if r <= maxBoundI
  165. 1142.61 s [really-safe-money-gen] then Nothing
  166. 1142.61 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  167. 1142.61 s [really-safe-money-gen]
  168. 1142.61 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:495:10-23
  169. 1142.61 s [really-safe-money-gen] @@ -492,7 +492,7 @@
  170. 1142.61 s [really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
  171. 1142.61 s [really-safe-money-gen] r :: Integer
  172. 1142.61 s [really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  173. 1142.61 s [really-safe-money-gen] - in if r > maxBoundI
  174. 1142.61 s [really-safe-money-gen] + in if r >= maxBoundI
  175. 1142.61 s [really-safe-money-gen] then Nothing
  176. 1142.61 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  177. 1142.61 s [really-safe-money-gen]
  178. 1142.61 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:495:10-23
  179. 1142.61 s [really-safe-money-gen] @@ -492,7 +492,7 @@
  180. 1142.61 s [really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
  181. 1142.61 s [really-safe-money-gen] r :: Integer
  182. 1142.61 s [really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  183. 1142.61 s [really-safe-money-gen] - in if r > maxBoundI
  184. 1142.61 s [really-safe-money-gen] + in if r < maxBoundI
  185. 1142.61 s [really-safe-money-gen] then Nothing
  186. 1142.62 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  187. 1142.62 s [really-safe-money-gen]
  188. 1142.62 s [really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:494:96-97
  189. 1142.62 s [really-safe-money-gen] @@ -491,7 +491,7 @@
  190. 1142.62 s [really-safe-money-gen] let maxBoundI :: Integer
  191. 1142.62 s [really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
  192. 1142.62 s [really-safe-money-gen] r :: Integer
  193. 1142.62 s [really-safe-money-gen] - r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  194. 1142.62 s [really-safe-money-gen] + r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 1 l
  195. 1142.62 s [really-safe-money-gen] in if r > maxBoundI
  196. 1142.62 s [really-safe-money-gen] then Nothing
  197. 1142.62 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  198. 1142.62 s [really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:332:38-40
  199. 1142.62 s [really-safe-money-gen] @@ -329,7 +329,7 @@
  200. 1142.62 s [really-safe-money-gen] | otherwise =
  201. 1142.62 s [really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
  202. 1142.62 s [really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
  203. 1142.62 s [really-safe-money-gen] - if exponent resultDouble > 65
  204. 1142.62 s [really-safe-money-gen] + if exponent resultDouble > -65
  205. 1142.62 s [really-safe-money-gen] then Nothing
  206. 1142.62 s [really-safe-money-gen] else
  207. 1142.62 s [really-safe-money-gen] let ceiled :: Natural
  208. 1142.62 s [really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:661:30-31
  209. 1142.62 s [really-safe-money-gen] @@ -658,7 +658,7 @@
  210. 1142.62 s [really-safe-money-gen] -- | The amount and the real rate that was used, considering the 'Rounding'
  211. 1142.62 s [really-safe-money-gen] (Maybe Amount, Ratio Natural)
  212. 1142.62 s [really-safe-money-gen] fraction _ (Amount 0) f = (Just zero, f)
  213. 1142.62 s [really-safe-money-gen] -fraction _ _ 0 = (Just zero, 0)
  214. 1142.62 s [really-safe-money-gen] +fraction _ _ 0 = (Just zero, 1)
  215. 1142.62 s [really-safe-money-gen] fraction r (Amount a) f =
  216. 1142.62 s [really-safe-money-gen] let amountAsRatio :: Ratio Natural
  217. 1142.62 s [really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
  218. 1142.62 s [really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:495:10-23
  219. 1142.62 s [really-safe-money-gen] @@ -492,7 +492,7 @@
  220. 1142.62 s [really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
  221. 1142.62 s [really-safe-money-gen] r :: Integer
  222. 1142.62 s [really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  223. 1142.62 s [really-safe-money-gen] - in if r > maxBoundI
  224. 1142.62 s [really-safe-money-gen] + in if not (r > maxBoundI)
  225. 1142.62 s [really-safe-money-gen] then Nothing
  226. 1142.62 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  227. 1142.62 s [really-safe-money-gen]
  228. 1142.62 s [really-safe-money-gen] Testing mutation IntLit at src/Money/Amount.hs:250:15-16
  229. 1142.62 s [really-safe-money-gen] @@ -247,7 +247,7 @@
  230. 1142.62 s [really-safe-money-gen] -- >>> zero
  231. 1142.62 s [really-safe-money-gen] -- Amount 0
  232. 1142.62 s [really-safe-money-gen] zero :: Amount
  233. 1142.62 s [really-safe-money-gen] -zero = Amount 0
  234. 1142.63 s [really-safe-money-gen] +zero = Amount 1
  235. 1142.63 s [really-safe-money-gen]
  236. 1142.63 s [really-safe-money-gen] -- | Turn an amount into a number of minimal quantisations.
  237. 1142.63 s [really-safe-money-gen] --
  238. 1142.63 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:668:17-30
  239. 1142.63 s [really-safe-money-gen] @@ -665,10 +665,9 @@
  240. 1142.63 s [really-safe-money-gen] theoreticalResult :: Ratio Natural
  241. 1142.63 s [really-safe-money-gen] theoreticalResult = amountAsRatio * f
  242. 1142.63 s [really-safe-money-gen] rounder :: Ratio Natural -> Natural
  243. 1142.63 s [really-safe-money-gen] rounder = case r of
  244. 1142.63 s [really-safe-money-gen] - RoundUp -> ceiling
  245. 1142.63 s [really-safe-money-gen] RoundDown -> floor
  246. 1142.63 s [really-safe-money-gen] RoundNearest -> round
  247. 1142.63 s [really-safe-money-gen] roundedResult :: Natural
  248. 1142.63 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  249. 1142.63 s [really-safe-money-gen] actualRate :: Ratio Natural
  250. 1142.63 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:495:10-23
  251. 1142.63 s [really-safe-money-gen] @@ -492,7 +492,7 @@
  252. 1142.63 s [really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
  253. 1142.63 s [really-safe-money-gen] r :: Integer
  254. 1142.63 s [really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  255. 1142.63 s [really-safe-money-gen] - in if r > maxBoundI
  256. 1142.63 s [really-safe-money-gen] + in if True
  257. 1142.63 s [really-safe-money-gen] then Nothing
  258. 1142.63 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  259. 1142.63 s [really-safe-money-gen]
  260. 1142.63 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/Amount.hs:497:14-66
  261. 1142.63 s [really-safe-money-gen] @@ -494,7 +494,7 @@
  262. 1142.63 s [really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  263. 1142.63 s [really-safe-money-gen] in if r > maxBoundI
  264. 1142.63 s [really-safe-money-gen] then Nothing
  265. 1142.63 s [really-safe-money-gen] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
  266. 1142.63 s [really-safe-money-gen] + else Nothing
  267. 1142.63 s [really-safe-money-gen]
  268. 1142.63 s [really-safe-money-gen] -- | Add two amounts of money.
  269. 1142.63 s [really-safe-money-gen] --
  270. 1142.63 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/Amount.hs:660:28-37
  271. 1142.63 s [really-safe-money-gen] @@ -657,7 +657,7 @@
  272. 1142.63 s [really-safe-money-gen] Ratio Natural ->
  273. 1142.63 s [really-safe-money-gen] -- | The amount and the real rate that was used, considering the 'Rounding'
  274. 1142.63 s [really-safe-money-gen] (Maybe Amount, Ratio Natural)
  275. 1142.63 s [really-safe-money-gen] -fraction _ (Amount 0) f = (Just zero, f)
  276. 1142.63 s [really-safe-money-gen] +fraction _ (Amount 0) f = (Nothing, f)
  277. 1142.63 s [really-safe-money-gen] fraction _ _ 0 = (Just zero, 0)
  278. 1142.63 s [really-safe-money-gen] fraction r (Amount a) f =
  279. 1142.63 s [really-safe-money-gen] let amountAsRatio :: Ratio Natural
  280. 1142.63 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:668:17-30
  281. 1142.63 s [really-safe-money-gen] @@ -665,10 +665,9 @@
  282. 1142.63 s [really-safe-money-gen] theoreticalResult :: Ratio Natural
  283. 1142.63 s [really-safe-money-gen] theoreticalResult = amountAsRatio * f
  284. 1142.63 s [really-safe-money-gen] rounder :: Ratio Natural -> Natural
  285. 1142.63 s [really-safe-money-gen] rounder = case r of
  286. 1142.63 s [really-safe-money-gen] RoundUp -> ceiling
  287. 1142.63 s [really-safe-money-gen] RoundDown -> floor
  288. 1142.63 s [really-safe-money-gen] - RoundNearest -> round
  289. 1142.63 s [really-safe-money-gen] roundedResult :: Natural
  290. 1142.63 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  291. 1142.64 s [really-safe-money-gen] actualRate :: Ratio Natural
  292. 1142.64 s [really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:666:27-44
  293. 1142.64 s [really-safe-money-gen] @@ -663,7 +663,7 @@
  294. 1142.64 s [really-safe-money-gen] let amountAsRatio :: Ratio Natural
  295. 1142.64 s [really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
  296. 1142.64 s [really-safe-money-gen] theoreticalResult :: Ratio Natural
  297. 1142.64 s [really-safe-money-gen] - theoreticalResult = amountAsRatio * f
  298. 1142.64 s [really-safe-money-gen] + theoreticalResult = amountAsRatio - f
  299. 1142.64 s [really-safe-money-gen] rounder :: Ratio Natural -> Natural
  300. 1142.64 s [really-safe-money-gen] rounder = case r of
  301. 1142.64 s [really-safe-money-gen] RoundUp -> ceiling
  302. 1142.64 s [really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:762:40-49
  303. 1142.64 s [really-safe-money-gen] @@ -759,7 +759,7 @@
  304. 1142.64 s [really-safe-money-gen] let qf1r = Prelude.fromIntegral (QuantisationFactor.unQuantisationFactor qf1)
  305. 1142.64 s [really-safe-money-gen] qf2r = Prelude.fromIntegral (QuantisationFactor.unQuantisationFactor qf2)
  306. 1142.64 s [really-safe-money-gen] (ma, ar) = fraction rounding a (ConversionRate.conversionFactor qf1 cr qf2)
  307. 1142.64 s [really-safe-money-gen] - in (ma, ConversionRate.fromRatio (ar * qf1r / qf2r))
  308. 1146.10 s [really-safe-money-gen] + in (ma, ConversionRate.fromRatio (ar + qf1r / qf2r))
  309. 1146.10 s [really-safe-money-gen]
  310. 1146.10 s [really-safe-money-gen] -- | Format an amount of money without a symbol.
  311. 1146.10 s [really-safe-money-gen] --
  312. 1146.11 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/Amount.hs:683:16-27
  313. 1146.11 s [really-safe-money-gen] @@ -680,7 +680,7 @@
  314. 1146.11 s [really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
  315. 1146.11 s [really-safe-money-gen] in ( if roundedResult > maxBoundN
  316. 1146.11 s [really-safe-money-gen] then Nothing
  317. 1146.11 s [really-safe-money-gen] - else Just result,
  318. 1146.11 s [really-safe-money-gen] + else Nothing,
  319. 1146.11 s [really-safe-money-gen] actualRate
  320. 1146.11 s [really-safe-money-gen] )
  321. 1146.11 s [really-safe-money-gen]
  322. 1146.11 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:681:12-37
  323. 1146.11 s [really-safe-money-gen] @@ -678,7 +678,7 @@
  324. 1146.11 s [really-safe-money-gen] maxBoundN :: Natural
  325. 1146.11 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  326. 1146.11 s [really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
  327. 1146.11 s [really-safe-money-gen] - in ( if roundedResult > maxBoundN
  328. 1146.11 s [really-safe-money-gen] + in ( if False
  329. 1146.11 s [really-safe-money-gen] then Nothing
  330. 1146.11 s [really-safe-money-gen] else Just result,
  331. 1146.11 s [really-safe-money-gen] actualRate
  332. 1146.11 s [really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:666:27-44
  333. 1146.11 s [really-safe-money-gen] @@ -663,7 +663,7 @@
  334. 1146.11 s [really-safe-money-gen] let amountAsRatio :: Ratio Natural
  335. 1146.11 s [really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
  336. 1146.11 s [really-safe-money-gen] theoreticalResult :: Ratio Natural
  337. 1146.11 s [really-safe-money-gen] - theoreticalResult = amountAsRatio * f
  338. 1146.11 s [really-safe-money-gen] + theoreticalResult = amountAsRatio + f
  339. 1146.11 s [really-safe-money-gen] rounder :: Ratio Natural -> Natural
  340. 1146.11 s [really-safe-money-gen] rounder = case r of
  341. 1146.11 s [really-safe-money-gen] RoundUp -> ceiling
  342. 1146.11 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:681:12-37
  343. 1146.11 s [really-safe-money-gen] @@ -678,7 +678,7 @@
  344. 1146.11 s [really-safe-money-gen] maxBoundN :: Natural
  345. 1146.11 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  346. 1146.12 s [really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
  347. 1146.12 s [really-safe-money-gen] - in ( if roundedResult > maxBoundN
  348. 1146.12 s [really-safe-money-gen] + in ( if roundedResult <= maxBoundN
  349. 1146.12 s [really-safe-money-gen] then Nothing
  350. 1146.12 s [really-safe-money-gen] else Just result,
  351. 1146.12 s [really-safe-money-gen] actualRate
  352. 1146.12 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:495:10-23
  353. 1146.12 s [really-safe-money-gen] @@ -492,7 +492,7 @@
  354. 1146.12 s [really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
  355. 1146.12 s [really-safe-money-gen] r :: Integer
  356. 1146.12 s [really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  357. 1146.12 s [really-safe-money-gen] - in if r > maxBoundI
  358. 1146.12 s [really-safe-money-gen] + in if False
  359. 1146.12 s [really-safe-money-gen] then Nothing
  360. 1146.12 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  361. 1146.12 s [really-safe-money-gen]
  362. 1146.12 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:681:12-37
  363. 1146.12 s [really-safe-money-gen] @@ -678,7 +678,7 @@
  364. 1146.12 s [really-safe-money-gen] maxBoundN :: Natural
  365. 1146.12 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  366. 1146.12 s [really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
  367. 1146.12 s [really-safe-money-gen] - in ( if roundedResult > maxBoundN
  368. 1146.12 s [really-safe-money-gen] + in ( if True
  369. 1146.12 s [really-safe-money-gen] then Nothing
  370. 1146.12 s [really-safe-money-gen] else Just result,
  371. 1146.12 s [really-safe-money-gen] actualRate
  372. 1146.12 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:806:79-92
  373. 1146.12 s [really-safe-money-gen] @@ -803,4 +803,4 @@
  374. 1146.12 s [really-safe-money-gen]
  375. 1146.12 s [really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
  376. 1146.12 s [really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
  377. 1146.12 s [really-safe-money-gen] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
  378. 1146.12 s [really-safe-money-gen] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount <= zero
  379. 1146.12 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:806:79-92
  380. 1146.12 s [really-safe-money-gen] @@ -803,4 +803,4 @@
  381. 1146.12 s [really-safe-money-gen]
  382. 1146.12 s [really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
  383. 1146.12 s [really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
  384. 1146.12 s [really-safe-money-gen] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
  385. 1146.12 s [really-safe-money-gen] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount < zero
  386. 1146.12 s [really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:762:40-49
  387. 1146.12 s [really-safe-money-gen] @@ -759,7 +759,7 @@
  388. 1146.12 s [really-safe-money-gen] let qf1r = Prelude.fromIntegral (QuantisationFactor.unQuantisationFactor qf1)
  389. 1146.12 s [really-safe-money-gen] qf2r = Prelude.fromIntegral (QuantisationFactor.unQuantisationFactor qf2)
  390. 1146.12 s [really-safe-money-gen] (ma, ar) = fraction rounding a (ConversionRate.conversionFactor qf1 cr qf2)
  391. 1146.12 s [really-safe-money-gen] - in (ma, ConversionRate.fromRatio (ar * qf1r / qf2r))
  392. 1146.12 s [really-safe-money-gen] + in (ma, ConversionRate.fromRatio (ar - qf1r / qf2r))
  393. 1146.12 s [really-safe-money-gen]
  394. 1146.12 s [really-safe-money-gen] -- | Format an amount of money without a symbol.
  395. 1146.12 s [really-safe-money-gen] --
  396. 1146.12 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:806:79-92
  397. 1146.12 s [really-safe-money-gen] @@ -803,4 +803,4 @@
  398. 1146.12 s [really-safe-money-gen]
  399. 1146.12 s [really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
  400. 1146.12 s [really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
  401. 1146.12 s [really-safe-money-gen] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
  402. 1146.13 s [really-safe-money-gen] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount >= zero
  403. 1146.13 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:806:79-92
  404. 1146.13 s [really-safe-money-gen] @@ -803,4 +803,4 @@
  405. 1146.13 s [really-safe-money-gen]
  406. 1146.13 s [really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
  407. 1146.13 s [really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
  408. 1146.13 s [really-safe-money-gen] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
  409. 1146.13 s [really-safe-money-gen] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ True
  410. 1146.13 s [really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:806:79-92
  411. 1146.13 s [really-safe-money-gen] @@ -803,4 +803,4 @@
  412. 1146.13 s [really-safe-money-gen]
  413. 1146.13 s [really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
  414. 1146.13 s [really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
  415. 1146.13 s [really-safe-money-gen] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
  416. 1146.13 s [really-safe-money-gen] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ not (amount > zero)
  417. 1146.13 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:607:15-22
  418. 1146.13 s [really-safe-money-gen] @@ -604,7 +604,7 @@
  419. 1146.13 s [really-safe-money-gen] case ad of
  420. 1146.13 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  421. 1146.13 s [really-safe-money-gen] declare "The larger chunks are larger" $
  422. 1146.13 s [really-safe-money-gen] - a1 > a2
  423. 1146.13 s [really-safe-money-gen] + a1 < a2
  424. 1146.13 s [really-safe-money-gen] _ -> valid
  425. 1146.13 s [really-safe-money-gen] ]
  426. 1146.13 s [really-safe-money-gen]
  427. 1146.13 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:806:79-92
  428. 1146.13 s [really-safe-money-gen] @@ -803,4 +803,4 @@
  429. 1146.13 s [really-safe-money-gen]
  430. 1146.13 s [really-safe-money-gen] -- | Validate that an 'Amount' is strictly positive. I.e. not 'zero'.
  431. 1146.13 s [really-safe-money-gen] validateStrictlyPositive :: Amount -> Validation
  432. 1146.13 s [really-safe-money-gen] -validateStrictlyPositive amount = declare "The Amount is strictly positive" $ amount > zero
  433. 1146.13 s [really-safe-money-gen] +validateStrictlyPositive amount = declare "The Amount is strictly positive" $ False
  434. 1146.13 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:607:15-22
  435. 1146.13 s [really-safe-money-gen] @@ -604,7 +604,7 @@
  436. 1146.13 s [really-safe-money-gen] case ad of
  437. 1146.13 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  438. 1146.13 s [really-safe-money-gen] declare "The larger chunks are larger" $
  439. 1146.13 s [really-safe-money-gen] - a1 > a2
  440. 1146.13 s [really-safe-money-gen] + a1 <= a2
  441. 1146.13 s [really-safe-money-gen] _ -> valid
  442. 1146.13 s [really-safe-money-gen] ]
  443. 1146.13 s [really-safe-money-gen]
  444. 1146.13 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:681:12-37
  445. 1146.13 s [really-safe-money-gen] @@ -678,7 +678,7 @@
  446. 1146.13 s [really-safe-money-gen] maxBoundN :: Natural
  447. 1146.13 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  448. 1146.13 s [really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
  449. 1146.13 s [really-safe-money-gen] - in ( if roundedResult > maxBoundN
  450. 1146.13 s [really-safe-money-gen] + in ( if roundedResult >= maxBoundN
  451. 1146.13 s [really-safe-money-gen] then Nothing
  452. 1146.13 s [really-safe-money-gen] else Just result,
  453. 1146.13 s [really-safe-money-gen] actualRate
  454. 1146.13 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:604:9-21
  455. 1146.13 s [really-safe-money-gen] @@ -601,11 +601,10 @@
  456. 1146.13 s [really-safe-money-gen] validate ad =
  457. 1146.13 s [really-safe-money-gen] mconcat
  458. 1146.13 s [really-safe-money-gen] [ genericValidate ad,
  459. 1146.13 s [really-safe-money-gen] case ad of
  460. 1146.13 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  461. 1146.13 s [really-safe-money-gen] declare "The larger chunks are larger" $
  462. 1146.13 s [really-safe-money-gen] a1 > a2
  463. 1146.13 s [really-safe-money-gen] - _ -> valid
  464. 1146.13 s [really-safe-money-gen] ]
  465. 1146.13 s [really-safe-money-gen]
  466. 1146.13 s [really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
  467. 1152.50 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
  468. 1152.50 s [really-safe-money-gen] @@ -156,10 +156,9 @@
  469. 1152.52 s [really-safe-money-gen] fmap
  470. 1152.52 s [really-safe-money-gen] ( ( \theoreticalResult ->
  471. 1152.52 s [really-safe-money-gen] let rounder :: Ratio Natural -> Natural
  472. 1152.52 s [really-safe-money-gen] rounder = case r of
  473. 1152.52 s [really-safe-money-gen] - RoundUp -> ceiling
  474. 1152.52 s [really-safe-money-gen] RoundDown -> floor
  475. 1152.53 s [really-safe-money-gen] RoundNearest -> round
  476. 1152.53 s [really-safe-money-gen] roundedResult :: Natural
  477. 1152.53 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  478. 1152.53 s [really-safe-money-gen] maxBoundN :: Natural
  479. 1152.53 s [really-safe-money-gen] Testing mutation ListLit at src/Money/Amount.hs:603:7-8
  480. 1152.53 s [really-safe-money-gen] @@ -600,13 +600,12 @@
  481. 1152.53 s [really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
  482. 1152.53 s [really-safe-money-gen] validate ad =
  483. 1152.53 s [really-safe-money-gen] mconcat
  484. 1152.53 s [really-safe-money-gen] - [ genericValidate ad,
  485. 1152.53 s [really-safe-money-gen] case ad of
  486. 1152.53 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  487. 1152.53 s [really-safe-money-gen] declare "The larger chunks are larger" $
  488. 1152.53 s [really-safe-money-gen] a1 > a2
  489. 1152.53 s [really-safe-money-gen] _ -> valid
  490. 1152.53 s [really-safe-money-gen] ]
  491. 1152.53 s [really-safe-money-gen]
  492. 1152.53 s [really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
  493. 1152.53 s [really-safe-money-gen]
  494. 1152.53 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
  495. 1152.53 s [really-safe-money-gen] @@ -156,10 +156,9 @@
  496. 1152.53 s [really-safe-money-gen] fmap
  497. 1152.53 s [really-safe-money-gen] ( ( \theoreticalResult ->
  498. 1152.53 s [really-safe-money-gen] let rounder :: Ratio Natural -> Natural
  499. 1152.53 s [really-safe-money-gen] rounder = case r of
  500. 1152.53 s [really-safe-money-gen] RoundUp -> ceiling
  501. 1152.53 s [really-safe-money-gen] - RoundDown -> floor
  502. 1152.53 s [really-safe-money-gen] RoundNearest -> round
  503. 1152.53 s [really-safe-money-gen] roundedResult :: Natural
  504. 1152.53 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  505. 1152.53 s [really-safe-money-gen] maxBoundN :: Natural
  506. 1152.53 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:681:12-37
  507. 1152.53 s [really-safe-money-gen] @@ -678,7 +678,7 @@
  508. 1152.54 s [really-safe-money-gen] maxBoundN :: Natural
  509. 1152.54 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  510. 1152.54 s [really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
  511. 1152.54 s [really-safe-money-gen] - in ( if roundedResult > maxBoundN
  512. 1152.54 s [really-safe-money-gen] + in ( if roundedResult < maxBoundN
  513. 1152.54 s [really-safe-money-gen] then Nothing
  514. 1152.54 s [really-safe-money-gen] else Just result,
  515. 1152.54 s [really-safe-money-gen] actualRate
  516. 1152.54 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:607:15-22
  517. 1152.54 s [really-safe-money-gen] @@ -604,7 +604,7 @@
  518. 1152.54 s [really-safe-money-gen] case ad of
  519. 1152.54 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  520. 1152.54 s [really-safe-money-gen] declare "The larger chunks are larger" $
  521. 1152.54 s [really-safe-money-gen] - a1 > a2
  522. 1152.54 s [really-safe-money-gen] + False
  523. 1152.54 s [really-safe-money-gen] _ -> valid
  524. 1152.54 s [really-safe-money-gen] ]
  525. 1152.54 s [really-safe-money-gen]
  526. 1152.54 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:604:9-21
  527. 1152.54 s [really-safe-money-gen] @@ -601,11 +601,8 @@
  528. 1152.54 s [really-safe-money-gen] validate ad =
  529. 1152.54 s [really-safe-money-gen] mconcat
  530. 1152.54 s [really-safe-money-gen] [ genericValidate ad,
  531. 1152.54 s [really-safe-money-gen] case ad of
  532. 1152.54 s [really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
  533. 1152.54 s [really-safe-money-gen] - declare "The larger chunks are larger" $
  534. 1152.54 s [really-safe-money-gen] - a1 > a2
  535. 1152.54 s [really-safe-money-gen] _ -> valid
  536. 1152.54 s [really-safe-money-gen] ]
  537. 1152.54 s [really-safe-money-gen]
  538. 1152.54 s [really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
  539. 1152.54 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount.hs:607:15-22
  540. 1152.54 s [really-safe-money-gen] @@ -604,7 +604,7 @@
  541. 1152.54 s [really-safe-money-gen] case ad of
  542. 1152.54 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  543. 1152.54 s [really-safe-money-gen] declare "The larger chunks are larger" $
  544. 1152.54 s [really-safe-money-gen] - a1 > a2
  545. 1152.54 s [really-safe-money-gen] + a1 >= a2
  546. 1152.54 s [really-safe-money-gen] _ -> valid
  547. 1152.54 s [really-safe-money-gen] ]
  548. 1152.54 s [really-safe-money-gen]
  549. 1152.55 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount.hs:607:15-22
  550. 1152.55 s [really-safe-money-gen] @@ -604,7 +604,7 @@
  551. 1152.55 s [really-safe-money-gen] case ad of
  552. 1152.55 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  553. 1152.55 s [really-safe-money-gen] declare "The larger chunks are larger" $
  554. 1152.55 s [really-safe-money-gen] - a1 > a2
  555. 1152.55 s [really-safe-money-gen] + True
  556. 1152.55 s [really-safe-money-gen] _ -> valid
  557. 1152.55 s [really-safe-money-gen] ]
  558. 1152.55 s [really-safe-money-gen]
  559. 1152.55 s [really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:681:12-37
  560. 1152.55 s [really-safe-money-gen] @@ -678,7 +678,7 @@
  561. 1152.55 s [really-safe-money-gen] maxBoundN :: Natural
  562. 1152.55 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  563. 1152.55 s [really-safe-money-gen] result = Amount ((fromIntegral :: Natural -> Word64) roundedResult)
  564. 1152.55 s [really-safe-money-gen] - in ( if roundedResult > maxBoundN
  565. 1152.55 s [really-safe-money-gen] + in ( if not (roundedResult > maxBoundN)
  566. 1152.55 s [really-safe-money-gen] then Nothing
  567. 1152.55 s [really-safe-money-gen] else Just result,
  568. 1152.55 s [really-safe-money-gen] actualRate
  569. 1152.55 s [really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:332:14-40
  570. 1152.55 s [really-safe-money-gen] @@ -329,7 +329,7 @@
  571. 1152.55 s [really-safe-money-gen] | otherwise =
  572. 1152.55 s [really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
  573. 1152.55 s [really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
  574. 1152.55 s [really-safe-money-gen] - if exponent resultDouble > 65
  575. 1152.55 s [really-safe-money-gen] + if not (exponent resultDouble > 65)
  576. 1152.55 s [really-safe-money-gen] then Nothing
  577. 1152.55 s [really-safe-money-gen] else
  578. 1152.55 s [really-safe-money-gen] let ceiled :: Natural
  579. 1152.55 s [really-safe-money-gen] Testing mutation Arith at src/Money/Amount.hs:494:29-94
  580. 1152.55 s [really-safe-money-gen] @@ -491,7 +491,7 @@
  581. 1152.55 s [really-safe-money-gen] let maxBoundI :: Integer
  582. 1152.55 s [really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
  583. 1152.55 s [really-safe-money-gen] r :: Integer
  584. 1152.55 s [really-safe-money-gen] - r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  585. 1152.55 s [really-safe-money-gen] + r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) * acc) 0 l
  586. 1152.55 s [really-safe-money-gen] in if r > maxBoundI
  587. 1152.55 s [really-safe-money-gen] then Nothing
  588. 1152.56 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  589. 1152.56 s [really-safe-money-gen] Testing mutation Cmp at src/Money/MultiAmount.hs:168:20-45
  590. 1152.56 s [really-safe-money-gen] @@ -165,7 +165,7 @@
  591. 1152.56 s [really-safe-money-gen] maxBoundN :: Natural
  592. 1152.56 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  593. 1152.56 s [really-safe-money-gen] actualResult =
  594. 1152.56 s [really-safe-money-gen] - if roundedResult > maxBoundN
  595. 1152.56 s [really-safe-money-gen] + if roundedResult <= maxBoundN
  596. 1152.56 s [really-safe-money-gen] then Nothing
  597. 1152.56 s [really-safe-money-gen] else Just (fromIntegral roundedResult)
  598. 1152.56 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  599. 1152.56 s [really-safe-money-gen] Testing mutation Negate at src/Money/Amount.hs:607:15-22
  600. 1152.56 s [really-safe-money-gen] @@ -604,7 +604,7 @@
  601. 1152.56 s [really-safe-money-gen] case ad of
  602. 1152.56 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  603. 1152.56 s [really-safe-money-gen] declare "The larger chunks are larger" $
  604. 1152.56 s [really-safe-money-gen] - a1 > a2
  605. 1152.56 s [really-safe-money-gen] + not (a1 > a2)
  606. 1152.56 s [really-safe-money-gen] _ -> valid
  607. 1152.56 s [really-safe-money-gen] ]
  608. 1152.56 s [really-safe-money-gen]
  609. 1152.56 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:168:20-45
  610. 1152.56 s [really-safe-money-gen] @@ -165,7 +165,7 @@
  611. 1152.56 s [really-safe-money-gen] maxBoundN :: Natural
  612. 1152.56 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  613. 1152.56 s [really-safe-money-gen] actualResult =
  614. 1152.56 s [really-safe-money-gen] - if roundedResult > maxBoundN
  615. 1152.56 s [really-safe-money-gen] + if False
  616. 1152.56 s [really-safe-money-gen] then Nothing
  617. 1152.56 s [really-safe-money-gen] else Just (fromIntegral roundedResult)
  618. 1152.56 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  619. 1152.56 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:168:20-45
  620. 1152.56 s [really-safe-money-gen] @@ -165,7 +165,7 @@
  621. 1152.56 s [really-safe-money-gen] maxBoundN :: Natural
  622. 1152.56 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  623. 1152.56 s [really-safe-money-gen] actualResult =
  624. 1152.56 s [really-safe-money-gen] - if roundedResult > maxBoundN
  625. 1152.56 s [really-safe-money-gen] + if True
  626. 1152.56 s [really-safe-money-gen] then Nothing
  627. 1152.56 s [really-safe-money-gen] else Just (fromIntegral roundedResult)
  628. 1152.56 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  629. 1152.56 s [really-safe-money-gen] Testing mutation Cmp at src/Money/MultiAmount.hs:168:20-45
  630. 1152.56 s [really-safe-money-gen] @@ -165,7 +165,7 @@
  631. 1152.56 s [really-safe-money-gen] maxBoundN :: Natural
  632. 1152.56 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  633. 1152.56 s [really-safe-money-gen] actualResult =
  634. 1152.56 s [really-safe-money-gen] - if roundedResult > maxBoundN
  635. 1152.56 s [really-safe-money-gen] + if roundedResult >= maxBoundN
  636. 1152.56 s [really-safe-money-gen] then Nothing
  637. 1152.56 s [really-safe-money-gen] else Just (fromIntegral roundedResult)
  638. 1152.57 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  639. 1152.57 s [really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:168:20-45
  640. 1152.57 s [really-safe-money-gen] @@ -165,7 +165,7 @@
  641. 1152.57 s [really-safe-money-gen] maxBoundN :: Natural
  642. 1152.57 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  643. 1152.57 s [really-safe-money-gen] actualResult =
  644. 1152.57 s [really-safe-money-gen] - if roundedResult > maxBoundN
  645. 1152.57 s [really-safe-money-gen] + if not (roundedResult > maxBoundN)
  646. 1156.40 s [really-safe-money-gen] then Nothing
  647. 1156.40 s [really-safe-money-gen] else Just (fromIntegral roundedResult)
  648. 1156.40 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  649. 1156.40 s [really-safe-money-gen] Testing mutation Cmp at src/Money/MultiAmount.hs:168:20-45
  650. 1156.40 s [really-safe-money-gen] @@ -165,7 +165,7 @@
  651. 1156.40 s [really-safe-money-gen] maxBoundN :: Natural
  652. 1156.40 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  653. 1156.40 s [really-safe-money-gen] actualResult =
  654. 1156.40 s [really-safe-money-gen] - if roundedResult > maxBoundN
  655. 1156.40 s [really-safe-money-gen] + if roundedResult < maxBoundN
  656. 1156.40 s [really-safe-money-gen] then Nothing
  657. 1156.40 s [really-safe-money-gen] else Just (fromIntegral roundedResult)
  658. 1156.40 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  659. 1156.40 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAmount.hs:170:24-57
  660. 1156.40 s [really-safe-money-gen] @@ -167,7 +167,7 @@
  661. 1156.40 s [really-safe-money-gen] actualResult =
  662. 1156.40 s [really-safe-money-gen] if roundedResult > maxBoundN
  663. 1156.40 s [really-safe-money-gen] then Nothing
  664. 1156.40 s [really-safe-money-gen] - else Just (fromIntegral roundedResult)
  665. 1156.40 s [really-safe-money-gen] + else Nothing
  666. 1156.40 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  667. 1156.40 s [really-safe-money-gen] LT -> RoundedDown
  668. 1156.41 s [really-safe-money-gen] EQ -> DidNotRound
  669. 1156.41 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
  670. 1156.41 s [really-safe-money-gen] @@ -168,10 +168,9 @@
  671. 1156.41 s [really-safe-money-gen] if roundedResult > maxBoundN
  672. 1156.41 s [really-safe-money-gen] then Nothing
  673. 1156.41 s [really-safe-money-gen] else Just (fromIntegral roundedResult)
  674. 1156.41 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  675. 1156.41 s [really-safe-money-gen] LT -> RoundedDown
  676. 1156.41 s [really-safe-money-gen] EQ -> DidNotRound
  677. 1156.41 s [really-safe-money-gen] - GT -> RoundedUp
  678. 1156.41 s [really-safe-money-gen] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
  679. 1156.41 s [really-safe-money-gen] )
  680. 1156.41 s [really-safe-money-gen] . Prelude.sum
  681. 1156.41 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
  682. 1156.41 s [really-safe-money-gen] @@ -168,10 +168,9 @@
  683. 1156.41 s [really-safe-money-gen] if roundedResult > maxBoundN
  684. 1156.41 s [really-safe-money-gen] then Nothing
  685. 1156.41 s [really-safe-money-gen] else Just (fromIntegral roundedResult)
  686. 1156.41 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  687. 1156.41 s [really-safe-money-gen] LT -> RoundedDown
  688. 1156.41 s [really-safe-money-gen] - EQ -> DidNotRound
  689. 1156.41 s [really-safe-money-gen] GT -> RoundedUp
  690. 1156.41 s [really-safe-money-gen] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
  691. 1156.41 s [really-safe-money-gen] )
  692. 1156.41 s [really-safe-money-gen] . Prelude.sum
  693. 1156.41 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:171:25-32
  694. 1156.41 s [really-safe-money-gen] @@ -168,10 +168,9 @@
  695. 1156.41 s [really-safe-money-gen] if roundedResult > maxBoundN
  696. 1156.41 s [really-safe-money-gen] then Nothing
  697. 1156.41 s [really-safe-money-gen] else Just (fromIntegral roundedResult)
  698. 1156.41 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  699. 1156.41 s [really-safe-money-gen] - LT -> RoundedDown
  700. 1156.41 s [really-safe-money-gen] EQ -> DidNotRound
  701. 1156.41 s [really-safe-money-gen] GT -> RoundedUp
  702. 1156.41 s [really-safe-money-gen] in (Amount.fromMinimalQuantisations <$> actualResult, rounded)
  703. 1156.41 s [really-safe-money-gen] )
  704. 1156.41 s [really-safe-money-gen] . Prelude.sum
  705. 1156.41 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:159:25-38
  706. 1156.42 s [really-safe-money-gen] @@ -156,10 +156,9 @@
  707. 1156.42 s [really-safe-money-gen] fmap
  708. 1156.42 s [really-safe-money-gen] ( ( \theoreticalResult ->
  709. 1156.42 s [really-safe-money-gen] let rounder :: Ratio Natural -> Natural
  710. 1156.42 s [really-safe-money-gen] rounder = case r of
  711. 1156.42 s [really-safe-money-gen] RoundUp -> ceiling
  712. 1156.42 s [really-safe-money-gen] RoundDown -> floor
  713. 1156.42 s [really-safe-money-gen] - RoundNearest -> round
  714. 1156.42 s [really-safe-money-gen] roundedResult :: Natural
  715. 1156.42 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  716. 1156.42 s [really-safe-money-gen] maxBoundN :: Natural
  717. 1156.42 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/Amount.hs:661:19-28
  718. 1156.42 s [really-safe-money-gen] @@ -658,7 +658,7 @@
  719. 1156.42 s [really-safe-money-gen] -- | The amount and the real rate that was used, considering the 'Rounding'
  720. 1156.42 s [really-safe-money-gen] (Maybe Amount, Ratio Natural)
  721. 1156.42 s [really-safe-money-gen] fraction _ (Amount 0) f = (Just zero, f)
  722. 1156.42 s [really-safe-money-gen] -fraction _ _ 0 = (Just zero, 0)
  723. 1156.42 s [really-safe-money-gen] +fraction _ _ 0 = (Nothing, 0)
  724. 1156.42 s [really-safe-money-gen] fraction r (Amount a) f =
  725. 1156.42 s [really-safe-money-gen] let amountAsRatio :: Ratio Natural
  726. 1156.42 s [really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
  727. 1156.42 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount.hs:668:17-30
  728. 1156.42 s [really-safe-money-gen] @@ -665,10 +665,9 @@
  729. 1156.42 s [really-safe-money-gen] theoreticalResult :: Ratio Natural
  730. 1156.42 s [really-safe-money-gen] theoreticalResult = amountAsRatio * f
  731. 1156.42 s [really-safe-money-gen] rounder :: Ratio Natural -> Natural
  732. 1156.42 s [really-safe-money-gen] rounder = case r of
  733. 1156.42 s [really-safe-money-gen] RoundUp -> ceiling
  734. 1156.43 s [really-safe-money-gen] - RoundDown -> floor
  735. 1156.43 s [really-safe-money-gen] RoundNearest -> round
  736. 1156.43 s [really-safe-money-gen] roundedResult :: Natural
  737. 1156.43 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  738. 1156.43 s [really-safe-money-gen] actualRate :: Ratio Natural
  739. 1156.43 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:119:12-28
  740. 1156.43 s [really-safe-money-gen] @@ -116,7 +116,7 @@
  741. 1156.43 s [really-safe-money-gen] Just a -> do
  742. 1156.43 s [really-safe-money-gen] r <- Amount.subtract a amount
  743. 1156.43 s [really-safe-money-gen] Just $
  744. 1156.43 s [really-safe-money-gen] - if r == Amount.zero
  745. 1156.43 s [really-safe-money-gen] + if True
  746. 1156.43 s [really-safe-money-gen] then M.delete currency m
  747. 1156.43 s [really-safe-money-gen] else M.insert currency r m
  748. 1156.43 s [really-safe-money-gen]
  749. 1156.43 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAmount.hs:112:33-39
  750. 1156.43 s [really-safe-money-gen] @@ -109,7 +109,7 @@
  751. 1156.43 s [really-safe-money-gen]
  752. 1156.43 s [really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
  753. 1156.43 s [really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
  754. 1156.43 s [really-safe-money-gen] -subtractAmount m _ (Amount 0) = Just m
  755. 1156.43 s [really-safe-money-gen] +subtractAmount m _ (Amount 0) = Nothing
  756. 1156.43 s [really-safe-money-gen] subtractAmount (MultiAmount m) currency amount =
  757. 1156.43 s [really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
  758. 1156.43 s [really-safe-money-gen] Nothing -> Nothing -- Can't go below zero
  759. 1156.43 s [really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:119:12-28
  760. 1156.43 s [really-safe-money-gen] @@ -116,7 +116,7 @@
  761. 1156.43 s [really-safe-money-gen] Just a -> do
  762. 1156.43 s [really-safe-money-gen] r <- Amount.subtract a amount
  763. 1156.43 s [really-safe-money-gen] Just $
  764. 1156.43 s [really-safe-money-gen] - if r == Amount.zero
  765. 1156.43 s [really-safe-money-gen] + if not (r == Amount.zero)
  766. 1156.43 s [really-safe-money-gen] then M.delete currency m
  767. 1156.43 s [really-safe-money-gen] else M.insert currency r m
  768. 1156.43 s [really-safe-money-gen]
  769. 1156.43 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:114:22-37
  770. 1156.43 s [really-safe-money-gen] @@ -111,14 +111,13 @@
  771. 1156.44 s [really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
  772. 1156.44 s [really-safe-money-gen] subtractAmount m _ (Amount 0) = Just m
  773. 1156.44 s [really-safe-money-gen] subtractAmount (MultiAmount m) currency amount =
  774. 1156.44 s [really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
  775. 1156.44 s [really-safe-money-gen] - Nothing -> Nothing -- Can't go below zero
  776. 1156.44 s [really-safe-money-gen] Just a -> do
  777. 1156.44 s [really-safe-money-gen] r <- Amount.subtract a amount
  778. 1156.44 s [really-safe-money-gen] Just $
  779. 1156.44 s [really-safe-money-gen] if r == Amount.zero
  780. 1156.44 s [really-safe-money-gen] then M.delete currency m
  781. 1156.44 s [really-safe-money-gen] else M.insert currency r m
  782. 1156.44 s [really-safe-money-gen]
  783. 1156.44 s [really-safe-money-gen] -- | Try to convert every amount to one currency.
  784. 1156.44 s [really-safe-money-gen] --
  785. 1156.44 s [really-safe-money-gen] Testing mutation Arith at src/Money/MultiAmount.hs:182:15-106
  786. 1156.44 s [really-safe-money-gen] @@ -179,7 +179,7 @@
  787. 1156.44 s [really-safe-money-gen] . traverse
  788. 1156.44 s [really-safe-money-gen] ( \(currency, a) ->
  789. 1156.44 s [really-safe-money-gen] ( \(cr, qf2) ->
  790. 1156.44 s [really-safe-money-gen] - fromIntegral (Amount.toMinimalQuantisations a) * ConversionRate.conversionFactor qf2 cr qf1
  791. 1156.44 s [really-safe-money-gen] + fromIntegral (Amount.toMinimalQuantisations a) + ConversionRate.conversionFactor qf2 cr qf1
  792. 1156.44 s [really-safe-money-gen] )
  793. 1156.44 s [really-safe-money-gen] <$> func currency
  794. 1156.44 s [really-safe-money-gen] )
  795. 1156.44 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:119:12-28
  796. 1156.44 s [really-safe-money-gen] @@ -116,7 +116,7 @@
  797. 1156.44 s [really-safe-money-gen] Just a -> do
  798. 1156.44 s [really-safe-money-gen] r <- Amount.subtract a amount
  799. 1156.44 s [really-safe-money-gen] Just $
  800. 1156.44 s [really-safe-money-gen] - if r == Amount.zero
  801. 1156.44 s [really-safe-money-gen] + if False
  802. 1156.44 s [really-safe-money-gen] then M.delete currency m
  803. 1156.44 s [really-safe-money-gen] else M.insert currency r m
  804. 1156.44 s [really-safe-money-gen]
  805. 1156.44 s [really-safe-money-gen] Testing mutation Arith at src/Money/MultiAmount.hs:182:15-106
  806. 1156.44 s [really-safe-money-gen] @@ -179,7 +179,7 @@
  807. 1156.44 s [really-safe-money-gen] . traverse
  808. 1156.44 s [really-safe-money-gen] ( \(currency, a) ->
  809. 1156.44 s [really-safe-money-gen] ( \(cr, qf2) ->
  810. 1156.44 s [really-safe-money-gen] - fromIntegral (Amount.toMinimalQuantisations a) * ConversionRate.conversionFactor qf2 cr qf1
  811. 1156.44 s [really-safe-money-gen] + fromIntegral (Amount.toMinimalQuantisations a) - ConversionRate.conversionFactor qf2 cr qf1
  812. 1156.44 s [really-safe-money-gen] )
  813. 1156.44 s [really-safe-money-gen] <$> func currency
  814. 1156.44 s [really-safe-money-gen] )
  815. 1156.44 s [really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:106:12-28
  816. 1156.44 s [really-safe-money-gen] @@ -103,7 +103,7 @@
  817. 1156.44 s [really-safe-money-gen] Just a -> do
  818. 1156.44 s [really-safe-money-gen] r <- Amount.add a amount
  819. 1156.44 s [really-safe-money-gen] Just $
  820. 1160.87 s [really-safe-money-gen] - if r == Amount.zero
  821. 1160.87 s [really-safe-money-gen] + if not (r == Amount.zero)
  822. 1160.94 s [really-safe-money-gen] then M.delete currency m
  823. 1160.94 s [really-safe-money-gen] else M.insert currency r m
  824. 1160.94 s [really-safe-money-gen]
  825. 1160.94 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:106:12-28
  826. 1160.94 s [really-safe-money-gen] @@ -103,7 +103,7 @@
  827. 1160.94 s [really-safe-money-gen] Just a -> do
  828. 1160.94 s [really-safe-money-gen] r <- Amount.add a amount
  829. 1160.94 s [really-safe-money-gen] Just $
  830. 1160.94 s [really-safe-money-gen] - if r == Amount.zero
  831. 1160.94 s [really-safe-money-gen] + if False
  832. 1160.94 s [really-safe-money-gen] then M.delete currency m
  833. 1160.94 s [really-safe-money-gen] else M.insert currency r m
  834. 1160.94 s [really-safe-money-gen]
  835. 1160.94 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:114:22-37
  836. 1160.94 s [really-safe-money-gen] @@ -111,14 +111,8 @@
  837. 1160.94 s [really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
  838. 1160.94 s [really-safe-money-gen] subtractAmount m _ (Amount 0) = Just m
  839. 1160.95 s [really-safe-money-gen] subtractAmount (MultiAmount m) currency amount =
  840. 1160.95 s [really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
  841. 1160.95 s [really-safe-money-gen] Nothing -> Nothing -- Can't go below zero
  842. 1160.95 s [really-safe-money-gen] - Just a -> do
  843. 1160.95 s [really-safe-money-gen] - r <- Amount.subtract a amount
  844. 1160.95 s [really-safe-money-gen] - Just $
  845. 1160.95 s [really-safe-money-gen] - if r == Amount.zero
  846. 1160.95 s [really-safe-money-gen] - then M.delete currency m
  847. 1160.95 s [really-safe-money-gen] - else M.insert currency r m
  848. 1160.95 s [really-safe-money-gen]
  849. 1160.95 s [really-safe-money-gen] -- | Try to convert every amount to one currency.
  850. 1160.95 s [really-safe-money-gen] --
  851. 1160.95 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:106:12-28
  852. 1160.95 s [really-safe-money-gen] @@ -103,7 +103,7 @@
  853. 1160.95 s [really-safe-money-gen] Just a -> do
  854. 1160.95 s [really-safe-money-gen] r <- Amount.add a amount
  855. 1160.95 s [really-safe-money-gen] Just $
  856. 1160.95 s [really-safe-money-gen] - if r == Amount.zero
  857. 1160.95 s [really-safe-money-gen] + if True
  858. 1160.95 s [really-safe-money-gen] then M.delete currency m
  859. 1160.95 s [really-safe-money-gen] else M.insert currency r m
  860. 1160.95 s [really-safe-money-gen]
  861. 1160.95 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAmount.hs:99:28-34
  862. 1160.95 s [really-safe-money-gen] @@ -96,7 +96,7 @@
  863. 1160.95 s [really-safe-money-gen]
  864. 1160.95 s [really-safe-money-gen] -- | Add an 'Amount' to a 'MultiAmount'
  865. 1160.95 s [really-safe-money-gen] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
  866. 1160.95 s [really-safe-money-gen] -addAmount m _ (Amount 0) = Just m
  867. 1160.95 s [really-safe-money-gen] +addAmount m _ (Amount 0) = Nothing
  868. 1160.95 s [really-safe-money-gen] addAmount (MultiAmount m) currency amount =
  869. 1160.95 s [really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
  870. 1160.95 s [really-safe-money-gen] Nothing -> Just $ M.insert currency amount m
  871. 1160.95 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:73:6-27
  872. 1160.95 s [really-safe-money-gen] @@ -70,7 +70,7 @@
  873. 1160.95 s [really-safe-money-gen]
  874. 1160.95 s [really-safe-money-gen] fromAmount :: currency -> Amount -> MultiAmount currency
  875. 1160.95 s [really-safe-money-gen] fromAmount currency amount =
  876. 1160.95 s [really-safe-money-gen] - if amount == Amount.zero
  877. 1160.95 s [really-safe-money-gen] + if True
  878. 1160.95 s [really-safe-money-gen] then zero
  879. 1160.95 s [really-safe-money-gen] else MultiAmount $ M.singleton currency amount
  880. 1160.95 s [really-safe-money-gen]
  881. 1160.95 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:73:6-27
  882. 1160.95 s [really-safe-money-gen] @@ -70,7 +70,7 @@
  883. 1160.96 s [really-safe-money-gen]
  884. 1160.96 s [really-safe-money-gen] fromAmount :: currency -> Amount -> MultiAmount currency
  885. 1160.96 s [really-safe-money-gen] fromAmount currency amount =
  886. 1160.96 s [really-safe-money-gen] - if amount == Amount.zero
  887. 1160.96 s [really-safe-money-gen] + if False
  888. 1160.96 s [really-safe-money-gen] then zero
  889. 1160.96 s [really-safe-money-gen] else MultiAmount $ M.singleton currency amount
  890. 1160.96 s [really-safe-money-gen]
  891. 1160.96 s [really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:73:6-27
  892. 1160.96 s [really-safe-money-gen] @@ -70,7 +70,7 @@
  893. 1160.96 s [really-safe-money-gen]
  894. 1160.96 s [really-safe-money-gen] fromAmount :: currency -> Amount -> MultiAmount currency
  895. 1160.96 s [really-safe-money-gen] fromAmount currency amount =
  896. 1160.96 s [really-safe-money-gen] - if amount == Amount.zero
  897. 1160.96 s [really-safe-money-gen] + if not (amount == Amount.zero)
  898. 1160.96 s [really-safe-money-gen] then zero
  899. 1160.96 s [really-safe-money-gen] else MultiAmount $ M.singleton currency amount
  900. 1160.96 s [really-safe-money-gen]
  901. 1160.96 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:66:13-29
  902. 1160.96 s [really-safe-money-gen] @@ -63,7 +63,7 @@
  903. 1160.96 s [really-safe-money-gen] [ genericValidate ma,
  904. 1160.96 s [really-safe-money-gen] decorateMap m $ \_ a ->
  905. 1160.96 s [really-safe-money-gen] declare "The amount is not zero" $
  906. 1160.96 s [really-safe-money-gen] - a /= Amount.zero
  907. 1160.96 s [really-safe-money-gen] + False
  908. 1160.96 s [really-safe-money-gen] ]
  909. 1160.96 s [really-safe-money-gen]
  910. 1160.96 s [really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
  911. 1160.96 s [really-safe-money-gen] Testing mutation Negate at src/Money/MultiAmount.hs:66:13-29
  912. 1160.96 s [really-safe-money-gen] @@ -63,7 +63,7 @@
  913. 1160.96 s [really-safe-money-gen] [ genericValidate ma,
  914. 1160.96 s [really-safe-money-gen] decorateMap m $ \_ a ->
  915. 1160.96 s [really-safe-money-gen] declare "The amount is not zero" $
  916. 1160.96 s [really-safe-money-gen] - a /= Amount.zero
  917. 1160.96 s [really-safe-money-gen] + not (a /= Amount.zero)
  918. 1160.96 s [really-safe-money-gen] ]
  919. 1160.96 s [really-safe-money-gen]
  920. 1160.96 s [really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
  921. 1160.96 s [really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAmount.hs:63:7-8
  922. 1160.96 s [really-safe-money-gen] @@ -60,11 +60,7 @@
  923. 1160.96 s [really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
  924. 1160.96 s [really-safe-money-gen] validate ma@(MultiAmount m) =
  925. 1160.96 s [really-safe-money-gen] mconcat
  926. 1160.96 s [really-safe-money-gen] - [ genericValidate ma,
  927. 1160.96 s [really-safe-money-gen] - decorateMap m $ \_ a ->
  928. 1160.96 s [really-safe-money-gen] - declare "The amount is not zero" $
  929. 1160.96 s [really-safe-money-gen] - a /= Amount.zero
  930. 1160.96 s [really-safe-money-gen] ]
  931. 1160.96 s [really-safe-money-gen]
  932. 1160.96 s [really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
  933. 1160.96 s [really-safe-money-gen]
  934. 1160.96 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAmount.hs:66:13-29
  935. 1160.97 s [really-safe-money-gen] @@ -63,7 +63,7 @@
  936. 1160.97 s [really-safe-money-gen] [ genericValidate ma,
  937. 1160.97 s [really-safe-money-gen] decorateMap m $ \_ a ->
  938. 1160.97 s [really-safe-money-gen] declare "The amount is not zero" $
  939. 1160.97 s [really-safe-money-gen] - a /= Amount.zero
  940. 1160.97 s [really-safe-money-gen] + True
  941. 1160.97 s [really-safe-money-gen] ]
  942. 1160.97 s [really-safe-money-gen]
  943. 1160.97 s [really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
  944. 1160.97 s [really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAmount.hs:63:7-8
  945. 1160.97 s [really-safe-money-gen] @@ -60,11 +60,10 @@
  946. 1160.97 s [really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
  947. 1160.97 s [really-safe-money-gen] validate ma@(MultiAmount m) =
  948. 1160.97 s [really-safe-money-gen] mconcat
  949. 1160.97 s [really-safe-money-gen] - [ genericValidate ma,
  950. 1160.97 s [really-safe-money-gen] decorateMap m $ \_ a ->
  951. 1160.97 s [really-safe-money-gen] declare "The amount is not zero" $
  952. 1160.97 s [really-safe-money-gen] a /= Amount.zero
  953. 1160.97 s [really-safe-money-gen] ]
  954. 1160.97 s [really-safe-money-gen]
  955. 1160.97 s [really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
  956. 1160.97 s [really-safe-money-gen]
  957. 1160.97 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
  958. 1160.97 s [really-safe-money-gen] @@ -212,11 +212,10 @@
  959. 1160.97 s [really-safe-money-gen]
  960. 1160.97 s [really-safe-money-gen] -- | See 'Amount.distribute'
  961. 1160.97 s [really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
  962. 1160.97 s [really-safe-money-gen] distribute (AmountOf a) f = case Amount.distribute a f of
  963. 1160.97 s [really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
  964. 1160.97 s [really-safe-money-gen] - DistributedZero -> DistributedZero
  965. 1160.97 s [really-safe-money-gen] DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
  966. 1160.97 s [really-safe-money-gen] DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
  967. 1160.97 s [really-safe-money-gen]
  968. 1160.97 s [really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
  969. 1160.97 s [really-safe-money-gen]
  970. 1160.97 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
  971. 1160.97 s [really-safe-money-gen] @@ -212,11 +212,10 @@
  972. 1160.97 s [really-safe-money-gen]
  973. 1160.97 s [really-safe-money-gen] -- | See 'Amount.distribute'
  974. 1160.97 s [really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
  975. 1160.97 s [really-safe-money-gen] distribute (AmountOf a) f = case Amount.distribute a f of
  976. 1160.97 s [really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
  977. 1160.97 s [really-safe-money-gen] DistributedZero -> DistributedZero
  978. 1160.97 s [really-safe-money-gen] DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
  979. 1160.97 s [really-safe-money-gen] - DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
  980. 1160.97 s [really-safe-money-gen]
  981. 1160.97 s [really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
  982. 1160.97 s [really-safe-money-gen]
  983. 1160.98 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
  984. 1160.98 s [really-safe-money-gen] @@ -212,11 +212,10 @@
  985. 1160.98 s [really-safe-money-gen]
  986. 1160.98 s [really-safe-money-gen] -- | See 'Amount.distribute'
  987. 1160.98 s [really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
  988. 1160.98 s [really-safe-money-gen] distribute (AmountOf a) f = case Amount.distribute a f of
  989. 1160.98 s [really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
  990. 1160.98 s [really-safe-money-gen] DistributedZero -> DistributedZero
  991. 1160.98 s [really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
  992. 1160.98 s [really-safe-money-gen] DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
  993. 1160.98 s [really-safe-money-gen]
  994. 1160.98 s [really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
  995. 1160.98 s [really-safe-money-gen]
  996. 1160.98 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:101:22-37
  997. 1160.98 s [really-safe-money-gen] @@ -98,14 +98,8 @@
  998. 1160.98 s [really-safe-money-gen] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
  999. 1160.98 s [really-safe-money-gen] addAmount m _ (Amount 0) = Just m
  1000. 1160.98 s [really-safe-money-gen] addAmount (MultiAmount m) currency amount =
  1001. 1160.98 s [really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
  1002. 1165.10 s [really-safe-money-gen] Nothing -> Just $ M.insert currency amount m
  1003. 1165.10 s [really-safe-money-gen] - Just a -> do
  1004. 1165.10 s [really-safe-money-gen] - r <- Amount.add a amount
  1005. 1165.11 s [really-safe-money-gen] - Just $
  1006. 1165.11 s [really-safe-money-gen] - if r == Amount.zero
  1007. 1165.11 s [really-safe-money-gen] - then M.delete currency m
  1008. 1165.11 s [really-safe-money-gen] - else M.insert currency r m
  1009. 1165.11 s [really-safe-money-gen]
  1010. 1165.11 s [really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
  1011. 1165.11 s [really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
  1012. 1165.11 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
  1013. 1165.11 s [really-safe-money-gen] @@ -171,10 +171,9 @@
  1014. 1165.11 s [really-safe-money-gen] fmap
  1015. 1165.11 s [really-safe-money-gen] ( ( \theoreticalResult ->
  1016. 1165.11 s [really-safe-money-gen] let rounder :: Rational -> Integer
  1017. 1165.11 s [really-safe-money-gen] rounder = case r of
  1018. 1165.11 s [really-safe-money-gen] RoundUp -> ceiling
  1019. 1165.11 s [really-safe-money-gen] - RoundDown -> floor
  1020. 1165.11 s [really-safe-money-gen] RoundNearest -> round
  1021. 1165.11 s [really-safe-money-gen] roundedResult :: Integer
  1022. 1165.11 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  1023. 1165.11 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  1024. 1165.11 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAmount.hs:101:22-37
  1025. 1165.11 s [really-safe-money-gen] @@ -98,14 +98,13 @@
  1026. 1165.11 s [really-safe-money-gen] addAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
  1027. 1165.11 s [really-safe-money-gen] addAmount m _ (Amount 0) = Just m
  1028. 1165.11 s [really-safe-money-gen] addAmount (MultiAmount m) currency amount =
  1029. 1165.11 s [really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
  1030. 1165.12 s [really-safe-money-gen] - Nothing -> Just $ M.insert currency amount m
  1031. 1165.12 s [really-safe-money-gen] Just a -> do
  1032. 1165.12 s [really-safe-money-gen] r <- Amount.add a amount
  1033. 1165.12 s [really-safe-money-gen] Just $
  1034. 1165.12 s [really-safe-money-gen] if r == Amount.zero
  1035. 1165.12 s [really-safe-money-gen] then M.delete currency m
  1036. 1165.12 s [really-safe-money-gen] else M.insert currency r m
  1037. 1165.12 s [really-safe-money-gen]
  1038. 1165.12 s [really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
  1039. 1165.12 s [really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
  1040. 1165.12 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
  1041. 1165.12 s [really-safe-money-gen] @@ -171,10 +171,9 @@
  1042. 1165.12 s [really-safe-money-gen] fmap
  1043. 1165.12 s [really-safe-money-gen] ( ( \theoreticalResult ->
  1044. 1165.12 s [really-safe-money-gen] let rounder :: Rational -> Integer
  1045. 1165.12 s [really-safe-money-gen] rounder = case r of
  1046. 1165.12 s [really-safe-money-gen] - RoundUp -> ceiling
  1047. 1165.12 s [really-safe-money-gen] RoundDown -> floor
  1048. 1165.12 s [really-safe-money-gen] RoundNearest -> round
  1049. 1165.12 s [really-safe-money-gen] roundedResult :: Integer
  1050. 1165.12 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  1051. 1165.12 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  1052. 1165.12 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
  1053. 1165.12 s [really-safe-money-gen] @@ -177,10 +177,9 @@
  1054. 1165.12 s [really-safe-money-gen] RoundNearest -> round
  1055. 1165.12 s [really-safe-money-gen] roundedResult :: Integer
  1056. 1165.12 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  1057. 1165.12 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  1058. 1165.12 s [really-safe-money-gen] - LT -> RoundedDown
  1059. 1165.12 s [really-safe-money-gen] EQ -> DidNotRound
  1060. 1165.12 s [really-safe-money-gen] GT -> RoundedUp
  1061. 1165.12 s [really-safe-money-gen] in (Account.fromMinimalQuantisations roundedResult, rounded)
  1062. 1165.12 s [really-safe-money-gen] )
  1063. 1165.12 s [really-safe-money-gen] . Prelude.sum
  1064. 1165.12 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:174:25-38
  1065. 1165.12 s [really-safe-money-gen] @@ -171,10 +171,9 @@
  1066. 1165.12 s [really-safe-money-gen] fmap
  1067. 1165.12 s [really-safe-money-gen] ( ( \theoreticalResult ->
  1068. 1165.12 s [really-safe-money-gen] let rounder :: Rational -> Integer
  1069. 1165.12 s [really-safe-money-gen] rounder = case r of
  1070. 1165.12 s [really-safe-money-gen] RoundUp -> ceiling
  1071. 1165.12 s [really-safe-money-gen] RoundDown -> floor
  1072. 1165.12 s [really-safe-money-gen] - RoundNearest -> round
  1073. 1165.12 s [really-safe-money-gen] roundedResult :: Integer
  1074. 1165.12 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  1075. 1165.12 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  1076. 1165.12 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
  1077. 1165.12 s [really-safe-money-gen] @@ -177,10 +177,9 @@
  1078. 1165.12 s [really-safe-money-gen] RoundNearest -> round
  1079. 1165.13 s [really-safe-money-gen] roundedResult :: Integer
  1080. 1165.13 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  1081. 1165.13 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  1082. 1165.13 s [really-safe-money-gen] LT -> RoundedDown
  1083. 1165.13 s [really-safe-money-gen] - EQ -> DidNotRound
  1084. 1165.13 s [really-safe-money-gen] GT -> RoundedUp
  1085. 1165.13 s [really-safe-money-gen] in (Account.fromMinimalQuantisations roundedResult, rounded)
  1086. 1165.13 s [really-safe-money-gen] )
  1087. 1165.13 s [really-safe-money-gen] . Prelude.sum
  1088. 1165.13 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:180:25-32
  1089. 1165.13 s [really-safe-money-gen] @@ -177,10 +177,9 @@
  1090. 1165.13 s [really-safe-money-gen] RoundNearest -> round
  1091. 1165.13 s [really-safe-money-gen] roundedResult :: Integer
  1092. 1165.13 s [really-safe-money-gen] roundedResult = rounder theoreticalResult
  1093. 1165.13 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  1094. 1165.13 s [really-safe-money-gen] LT -> RoundedDown
  1095. 1165.13 s [really-safe-money-gen] EQ -> DidNotRound
  1096. 1165.13 s [really-safe-money-gen] - GT -> RoundedUp
  1097. 1165.13 s [really-safe-money-gen] in (Account.fromMinimalQuantisations roundedResult, rounded)
  1098. 1165.13 s [really-safe-money-gen] )
  1099. 1165.13 s [really-safe-money-gen] . Prelude.sum
  1100. 1165.13 s [really-safe-money-gen] Testing mutation Arith at src/Money/MultiAccount.hs:192:19-51
  1101. 1165.13 s [really-safe-money-gen] @@ -189,8 +189,8 @@
  1102. 1165.13 s [really-safe-money-gen] ( \(currency, a) ->
  1103. 1165.13 s [really-safe-money-gen] ( \(cr, qf2) ->
  1104. 1165.13 s [really-safe-money-gen] let factor = ConversionRate.conversionFactor qf2 cr qf1
  1105. 1165.13 s [really-safe-money-gen] in Account.toMinimalQuantisations a
  1106. 1165.13 s [really-safe-money-gen] - * toInteger (numerator factor)
  1107. 1165.13 s [really-safe-money-gen] + + toInteger (numerator factor)
  1108. 1165.13 s [really-safe-money-gen] % toInteger (denominator factor)
  1109. 1165.13 s [really-safe-money-gen] )
  1110. 1165.13 s [really-safe-money-gen] <$> func currency
  1111. 1165.13 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAccount.hs:127:45-51
  1112. 1165.13 s [really-safe-money-gen] @@ -124,7 +124,7 @@
  1113. 1165.13 s [really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
  1114. 1165.13 s [really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
  1115. 1165.13 s [really-safe-money-gen] subtractAccount m _ (Positive (Amount 0)) = Just m
  1116. 1165.13 s [really-safe-money-gen] -subtractAccount m _ (Negative (Amount 0)) = Just m
  1117. 1165.13 s [really-safe-money-gen] +subtractAccount m _ (Negative (Amount 0)) = Nothing
  1118. 1165.13 s [really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
  1119. 1165.13 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1120. 1165.13 s [really-safe-money-gen] Nothing -> Just $ M.insert currency (Account.negate account) m
  1121. 1165.13 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAccount.hs:126:45-51
  1122. 1165.13 s [really-safe-money-gen] @@ -123,7 +123,7 @@
  1123. 1165.13 s [really-safe-money-gen]
  1124. 1165.13 s [really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
  1125. 1165.13 s [really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
  1126. 1165.13 s [really-safe-money-gen] -subtractAccount m _ (Positive (Amount 0)) = Just m
  1127. 1165.13 s [really-safe-money-gen] +subtractAccount m _ (Positive (Amount 0)) = Nothing
  1128. 1165.13 s [really-safe-money-gen] subtractAccount m _ (Negative (Amount 0)) = Just m
  1129. 1165.13 s [really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
  1130. 1165.13 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1131. 1165.13 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:134:12-29
  1132. 1165.13 s [really-safe-money-gen] @@ -131,7 +131,7 @@
  1133. 1165.13 s [really-safe-money-gen] Just a -> do
  1134. 1165.13 s [really-safe-money-gen] r <- Account.subtract a account
  1135. 1165.13 s [really-safe-money-gen] Just $
  1136. 1165.13 s [really-safe-money-gen] - if r == Account.zero
  1137. 1165.13 s [really-safe-money-gen] + if False
  1138. 1165.13 s [really-safe-money-gen] then M.delete currency m
  1139. 1165.13 s [really-safe-money-gen] else M.insert currency r m
  1140. 1165.13 s [really-safe-money-gen]
  1141. 1165.13 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:134:12-29
  1142. 1165.13 s [really-safe-money-gen] @@ -131,7 +131,7 @@
  1143. 1165.13 s [really-safe-money-gen] Just a -> do
  1144. 1165.13 s [really-safe-money-gen] r <- Account.subtract a account
  1145. 1165.14 s [really-safe-money-gen] Just $
  1146. 1165.14 s [really-safe-money-gen] - if r == Account.zero
  1147. 1165.14 s [really-safe-money-gen] + if True
  1148. 1165.14 s [really-safe-money-gen] then M.delete currency m
  1149. 1165.14 s [really-safe-money-gen] else M.insert currency r m
  1150. 1165.14 s [really-safe-money-gen]
  1151. 1165.14 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:129:23-37
  1152. 1165.14 s [really-safe-money-gen] @@ -126,14 +126,13 @@
  1153. 1165.14 s [really-safe-money-gen] subtractAccount m _ (Positive (Amount 0)) = Just m
  1154. 1165.14 s [really-safe-money-gen] subtractAccount m _ (Negative (Amount 0)) = Just m
  1155. 1165.14 s [really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
  1156. 1165.14 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1157. 1165.14 s [really-safe-money-gen] - Nothing -> Just $ M.insert currency (Account.negate account) m
  1158. 1165.14 s [really-safe-money-gen] Just a -> do
  1159. 1165.14 s [really-safe-money-gen] r <- Account.subtract a account
  1160. 1165.14 s [really-safe-money-gen] Just $
  1161. 1165.14 s [really-safe-money-gen] if r == Account.zero
  1162. 1165.14 s [really-safe-money-gen] then M.delete currency m
  1163. 1165.14 s [really-safe-money-gen] else M.insert currency r m
  1164. 1165.14 s [really-safe-money-gen]
  1165. 1165.14 s [really-safe-money-gen] -- | Try to convert every account to one currency.
  1166. 1165.14 s [really-safe-money-gen] --
  1167. 1165.14 s [really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:134:12-29
  1168. 1165.14 s [really-safe-money-gen] @@ -131,7 +131,7 @@
  1169. 1165.14 s [really-safe-money-gen] Just a -> do
  1170. 1165.14 s [really-safe-money-gen] r <- Account.subtract a account
  1171. 1165.14 s [really-safe-money-gen] Just $
  1172. 1165.14 s [really-safe-money-gen] - if r == Account.zero
  1173. 1165.14 s [really-safe-money-gen] + if not (r == Account.zero)
  1174. 1165.14 s [really-safe-money-gen] then M.delete currency m
  1175. 1165.14 s [really-safe-money-gen] else M.insert currency r m
  1176. 1165.14 s [really-safe-money-gen]
  1177. 1165.14 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/AmountOf.hs:215:29-113
  1178. 1165.14 s [really-safe-money-gen] @@ -212,11 +212,10 @@
  1179. 1165.14 s [really-safe-money-gen]
  1180. 1165.14 s [really-safe-money-gen] -- | See 'Amount.distribute'
  1181. 1169.18 s [really-safe-money-gen] distribute :: AmountOf currency -> Word32 -> AmountDistributionOf currency
  1182. 1169.27 s [really-safe-money-gen] distribute (AmountOf a) f = case Amount.distribute a f of
  1183. 1169.27 s [really-safe-money-gen] - DistributedIntoZeroChunks -> DistributedIntoZeroChunks
  1184. 1169.27 s [really-safe-money-gen] DistributedZero -> DistributedZero
  1185. 1169.27 s [really-safe-money-gen] DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAmount a')
  1186. 1169.27 s [really-safe-money-gen] DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAmount a1) w2 (fromAmount a2)
  1187. 1169.27 s [really-safe-money-gen]
  1188. 1169.27 s [really-safe-money-gen] type AmountDistributionOf (currency :: k) = Distribution (AmountOf currency)
  1189. 1169.27 s [really-safe-money-gen]
  1190. 1169.27 s [really-safe-money-gen] Testing mutation ListLit at src/Money/Amount.hs:603:7-8
  1191. 1169.27 s [really-safe-money-gen] @@ -600,13 +600,7 @@
  1192. 1169.27 s [really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
  1193. 1169.27 s [really-safe-money-gen] validate ad =
  1194. 1169.27 s [really-safe-money-gen] mconcat
  1195. 1169.27 s [really-safe-money-gen] - [ genericValidate ad,
  1196. 1169.27 s [really-safe-money-gen] - case ad of
  1197. 1169.27 s [really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
  1198. 1169.27 s [really-safe-money-gen] - declare "The larger chunks are larger" $
  1199. 1169.27 s [really-safe-money-gen] - a1 > a2
  1200. 1169.27 s [really-safe-money-gen] - _ -> valid
  1201. 1169.27 s [really-safe-money-gen] ]
  1202. 1169.27 s [really-safe-money-gen]
  1203. 1169.27 s [really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
  1204. 1169.27 s [really-safe-money-gen]
  1205. 1169.27 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:129:23-37
  1206. 1169.28 s [really-safe-money-gen] @@ -126,14 +126,8 @@
  1207. 1169.28 s [really-safe-money-gen] subtractAccount m _ (Positive (Amount 0)) = Just m
  1208. 1169.28 s [really-safe-money-gen] subtractAccount m _ (Negative (Amount 0)) = Just m
  1209. 1169.28 s [really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
  1210. 1169.28 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1211. 1169.28 s [really-safe-money-gen] Nothing -> Just $ M.insert currency (Account.negate account) m
  1212. 1169.28 s [really-safe-money-gen] - Just a -> do
  1213. 1169.28 s [really-safe-money-gen] - r <- Account.subtract a account
  1214. 1169.28 s [really-safe-money-gen] - Just $
  1215. 1169.28 s [really-safe-money-gen] - if r == Account.zero
  1216. 1169.28 s [really-safe-money-gen] - then M.delete currency m
  1217. 1169.28 s [really-safe-money-gen] - else M.insert currency r m
  1218. 1169.28 s [really-safe-money-gen]
  1219. 1169.28 s [really-safe-money-gen] -- | Try to convert every account to one currency.
  1220. 1169.28 s [really-safe-money-gen] --
  1221. 1169.28 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAccount.hs:112:40-46
  1222. 1169.28 s [really-safe-money-gen] @@ -109,7 +109,7 @@
  1223. 1169.28 s [really-safe-money-gen]
  1224. 1169.28 s [really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
  1225. 1169.28 s [really-safe-money-gen] addAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
  1226. 1169.28 s [really-safe-money-gen] -addAccount m _ (Positive (Amount 0)) = Just m
  1227. 1169.28 s [really-safe-money-gen] +addAccount m _ (Positive (Amount 0)) = Nothing
  1228. 1169.28 s [really-safe-money-gen] addAccount m _ (Negative (Amount 0)) = Just m
  1229. 1169.28 s [really-safe-money-gen] addAccount (MultiAccount m) currency account =
  1230. 1169.28 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1231. 1169.28 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:120:12-29
  1232. 1169.28 s [really-safe-money-gen] @@ -117,7 +117,7 @@
  1233. 1169.28 s [really-safe-money-gen] Just a -> do
  1234. 1169.28 s [really-safe-money-gen] r <- Account.add a account
  1235. 1169.28 s [really-safe-money-gen] Just $
  1236. 1169.28 s [really-safe-money-gen] - if r == Account.zero
  1237. 1169.28 s [really-safe-money-gen] + if True
  1238. 1169.28 s [really-safe-money-gen] then M.delete currency m
  1239. 1169.28 s [really-safe-money-gen] else M.insert currency r m
  1240. 1169.28 s [really-safe-money-gen]
  1241. 1169.28 s [really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:120:12-29
  1242. 1169.28 s [really-safe-money-gen] @@ -117,7 +117,7 @@
  1243. 1169.28 s [really-safe-money-gen] Just a -> do
  1244. 1169.28 s [really-safe-money-gen] r <- Account.add a account
  1245. 1169.28 s [really-safe-money-gen] Just $
  1246. 1169.29 s [really-safe-money-gen] - if r == Account.zero
  1247. 1169.29 s [really-safe-money-gen] + if not (r == Account.zero)
  1248. 1169.29 s [really-safe-money-gen] then M.delete currency m
  1249. 1169.29 s [really-safe-money-gen] else M.insert currency r m
  1250. 1169.29 s [really-safe-money-gen]
  1251. 1169.29 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:78:6-28
  1252. 1169.29 s [really-safe-money-gen] @@ -75,7 +75,7 @@
  1253. 1169.29 s [really-safe-money-gen]
  1254. 1169.29 s [really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
  1255. 1169.29 s [really-safe-money-gen] fromAccount currency amount =
  1256. 1169.29 s [really-safe-money-gen] - if amount == Account.zero
  1257. 1169.29 s [really-safe-money-gen] + if True
  1258. 1169.29 s [really-safe-money-gen] then zero
  1259. 1169.29 s [really-safe-money-gen] else MultiAccount $ M.singleton currency amount
  1260. 1169.29 s [really-safe-money-gen]
  1261. 1169.29 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:78:6-28
  1262. 1169.29 s [really-safe-money-gen] @@ -75,7 +75,7 @@
  1263. 1169.29 s [really-safe-money-gen]
  1264. 1169.29 s [really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
  1265. 1169.29 s [really-safe-money-gen] fromAccount currency amount =
  1266. 1169.29 s [really-safe-money-gen] - if amount == Account.zero
  1267. 1169.29 s [really-safe-money-gen] + if False
  1268. 1169.29 s [really-safe-money-gen] then zero
  1269. 1169.29 s [really-safe-money-gen] else MultiAccount $ M.singleton currency amount
  1270. 1169.29 s [really-safe-money-gen]
  1271. 1169.29 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:69:13-30
  1272. 1169.29 s [really-safe-money-gen] @@ -66,7 +66,7 @@
  1273. 1169.29 s [really-safe-money-gen] [ genericValidate ma,
  1274. 1169.29 s [really-safe-money-gen] decorateMap m $ \_ a ->
  1275. 1169.29 s [really-safe-money-gen] declare "The account is not zero" $
  1276. 1169.29 s [really-safe-money-gen] - a /= Account.zero
  1277. 1169.29 s [really-safe-money-gen] + False
  1278. 1169.29 s [really-safe-money-gen] ]
  1279. 1169.29 s [really-safe-money-gen]
  1280. 1169.29 s [really-safe-money-gen] -- TODO no empty currencies
  1281. 1169.29 s [really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:78:6-28
  1282. 1169.29 s [really-safe-money-gen] @@ -75,7 +75,7 @@
  1283. 1169.29 s [really-safe-money-gen]
  1284. 1169.29 s [really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
  1285. 1169.29 s [really-safe-money-gen] fromAccount currency amount =
  1286. 1169.29 s [really-safe-money-gen] - if amount == Account.zero
  1287. 1169.29 s [really-safe-money-gen] + if not (amount == Account.zero)
  1288. 1169.29 s [really-safe-money-gen] then zero
  1289. 1169.29 s [really-safe-money-gen] else MultiAccount $ M.singleton currency amount
  1290. 1169.29 s [really-safe-money-gen]
  1291. 1169.29 s [really-safe-money-gen] Testing mutation MaybeOp at src/Money/MultiAccount.hs:113:40-46
  1292. 1169.29 s [really-safe-money-gen] @@ -110,7 +110,7 @@
  1293. 1169.29 s [really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
  1294. 1169.29 s [really-safe-money-gen] addAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
  1295. 1169.29 s [really-safe-money-gen] addAccount m _ (Positive (Amount 0)) = Just m
  1296. 1169.29 s [really-safe-money-gen] -addAccount m _ (Negative (Amount 0)) = Just m
  1297. 1169.29 s [really-safe-money-gen] +addAccount m _ (Negative (Amount 0)) = Nothing
  1298. 1169.29 s [really-safe-money-gen] addAccount (MultiAccount m) currency account =
  1299. 1169.29 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1300. 1169.29 s [really-safe-money-gen] Nothing -> Just $ M.insert currency account m
  1301. 1169.29 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:115:23-37
  1302. 1169.29 s [really-safe-money-gen] @@ -112,14 +112,8 @@
  1303. 1169.29 s [really-safe-money-gen] addAccount m _ (Positive (Amount 0)) = Just m
  1304. 1169.29 s [really-safe-money-gen] addAccount m _ (Negative (Amount 0)) = Just m
  1305. 1169.29 s [really-safe-money-gen] addAccount (MultiAccount m) currency account =
  1306. 1169.29 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1307. 1169.29 s [really-safe-money-gen] Nothing -> Just $ M.insert currency account m
  1308. 1169.29 s [really-safe-money-gen] - Just a -> do
  1309. 1169.29 s [really-safe-money-gen] - r <- Account.add a account
  1310. 1169.29 s [really-safe-money-gen] - Just $
  1311. 1169.29 s [really-safe-money-gen] - if r == Account.zero
  1312. 1169.29 s [really-safe-money-gen] - then M.delete currency m
  1313. 1169.29 s [really-safe-money-gen] - else M.insert currency r m
  1314. 1169.29 s [really-safe-money-gen]
  1315. 1169.29 s [really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
  1316. 1169.29 s [really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
  1317. 1169.29 s [really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAccount.hs:66:7-8
  1318. 1169.29 s [really-safe-money-gen] @@ -63,11 +63,7 @@
  1319. 1169.29 s [really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
  1320. 1169.29 s [really-safe-money-gen] validate ma@(MultiAccount m) =
  1321. 1169.30 s [really-safe-money-gen] mconcat
  1322. 1169.30 s [really-safe-money-gen] - [ genericValidate ma,
  1323. 1169.30 s [really-safe-money-gen] - decorateMap m $ \_ a ->
  1324. 1169.30 s [really-safe-money-gen] - declare "The account is not zero" $
  1325. 1169.30 s [really-safe-money-gen] - a /= Account.zero
  1326. 1169.30 s [really-safe-money-gen] ]
  1327. 1169.30 s [really-safe-money-gen]
  1328. 1169.30 s [really-safe-money-gen] -- TODO no empty currencies
  1329. 1169.30 s [really-safe-money-gen]
  1330. 1169.30 s [really-safe-money-gen] Testing mutation Negate at src/Money/MultiAccount.hs:69:13-30
  1331. 1169.30 s [really-safe-money-gen] @@ -66,7 +66,7 @@
  1332. 1169.30 s [really-safe-money-gen] [ genericValidate ma,
  1333. 1169.30 s [really-safe-money-gen] decorateMap m $ \_ a ->
  1334. 1169.30 s [really-safe-money-gen] declare "The account is not zero" $
  1335. 1169.30 s [really-safe-money-gen] - a /= Account.zero
  1336. 1169.30 s [really-safe-money-gen] + not (a /= Account.zero)
  1337. 1169.30 s [really-safe-money-gen] ]
  1338. 1169.30 s [really-safe-money-gen]
  1339. 1169.30 s [really-safe-money-gen] -- TODO no empty currencies
  1340. 1169.30 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/MultiAccount.hs:115:23-37
  1341. 1169.30 s [really-safe-money-gen] @@ -112,14 +112,13 @@
  1342. 1169.30 s [really-safe-money-gen] addAccount m _ (Positive (Amount 0)) = Just m
  1343. 1169.30 s [really-safe-money-gen] addAccount m _ (Negative (Amount 0)) = Just m
  1344. 1169.30 s [really-safe-money-gen] addAccount (MultiAccount m) currency account =
  1345. 1169.30 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1346. 1169.30 s [really-safe-money-gen] - Nothing -> Just $ M.insert currency account m
  1347. 1169.30 s [really-safe-money-gen] Just a -> do
  1348. 1169.30 s [really-safe-money-gen] r <- Account.add a account
  1349. 1169.30 s [really-safe-money-gen] Just $
  1350. 1169.30 s [really-safe-money-gen] if r == Account.zero
  1351. 1169.30 s [really-safe-money-gen] then M.delete currency m
  1352. 1169.30 s [really-safe-money-gen] else M.insert currency r m
  1353. 1169.30 s [really-safe-money-gen]
  1354. 1169.30 s [really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
  1355. 1169.30 s [really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
  1356. 1169.30 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:69:13-30
  1357. 1169.30 s [really-safe-money-gen] @@ -66,7 +66,7 @@
  1358. 1169.30 s [really-safe-money-gen] [ genericValidate ma,
  1359. 1169.30 s [really-safe-money-gen] decorateMap m $ \_ a ->
  1360. 1169.30 s [really-safe-money-gen] declare "The account is not zero" $
  1361. 1169.30 s [really-safe-money-gen] - a /= Account.zero
  1362. 1169.30 s [really-safe-money-gen] + True
  1363. 1169.30 s [really-safe-money-gen] ]
  1364. 1169.30 s [really-safe-money-gen]
  1365. 1169.30 s [really-safe-money-gen] -- TODO no empty currencies
  1366. 1170.78 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/MultiAccount.hs:120:12-29
  1367. 1170.78 s [really-safe-money-gen] @@ -117,7 +117,7 @@
  1368. 1170.78 s [really-safe-money-gen] Just a -> do
  1369. 1170.78 s [really-safe-money-gen] r <- Account.add a account
  1370. 1170.78 s [really-safe-money-gen] Just $
  1371. 1170.78 s [really-safe-money-gen] - if r == Account.zero
  1372. 1170.78 s [really-safe-money-gen] + if False
  1373. 1170.78 s [really-safe-money-gen] then M.delete currency m
  1374. 1170.78 s [really-safe-money-gen] else M.insert currency r m
  1375. 1170.78 s [really-safe-money-gen]
  1376. 1170.78 s [really-safe-money-gen] Testing mutation Arith at src/Money/MultiAccount.hs:192:19-51
  1377. 1170.78 s [really-safe-money-gen] @@ -189,8 +189,8 @@
  1378. 1170.78 s [really-safe-money-gen] ( \(currency, a) ->
  1379. 1170.78 s [really-safe-money-gen] ( \(cr, qf2) ->
  1380. 1170.78 s [really-safe-money-gen] let factor = ConversionRate.conversionFactor qf2 cr qf1
  1381. 1170.78 s [really-safe-money-gen] in Account.toMinimalQuantisations a
  1382. 1170.78 s [really-safe-money-gen] - * toInteger (numerator factor)
  1383. 1170.78 s [really-safe-money-gen] + - toInteger (numerator factor)
  1384. 1170.78 s [really-safe-money-gen] % toInteger (denominator factor)
  1385. 1170.78 s [really-safe-money-gen] )
  1386. 1170.78 s [really-safe-money-gen] <$> func currency
  1387. 1170.78 s [really-safe-money-gen] Testing mutation ListLit at src/Money/MultiAccount.hs:66:7-8
  1388. 1170.78 s [really-safe-money-gen] @@ -63,11 +63,10 @@
  1389. 1170.78 s [really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
  1390. 1170.78 s [really-safe-money-gen] validate ma@(MultiAccount m) =
  1391. 1170.78 s [really-safe-money-gen] mconcat
  1392. 1170.78 s [really-safe-money-gen] - [ genericValidate ma,
  1393. 1170.78 s [really-safe-money-gen] decorateMap m $ \_ a ->
  1394. 1170.78 s [really-safe-money-gen] declare "The account is not zero" $
  1395. 1170.78 s [really-safe-money-gen] a /= Account.zero
  1396. 1170.78 s [really-safe-money-gen] ]
  1397. 1170.78 s [really-safe-money-gen]
  1398. 1170.78 s [really-safe-money-gen] -- TODO no empty currencies
  1399. 1170.79 s [really-safe-money-gen]
  1400. 1170.79 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/QuantisationFactor/Codec.hs:41:11-26
  1401. 1170.79 s [really-safe-money-gen] @@ -38,6 +38,5 @@
  1402. 1170.79 s [really-safe-money-gen] codec
  1403. 1170.79 s [really-safe-money-gen] <?> "QuantisationFactor"
  1404. 1170.79 s [really-safe-money-gen] where
  1405. 1170.79 s [really-safe-money-gen] f w = case QuantisationFactor.fromWord32 w of
  1406. 1170.79 s [really-safe-money-gen] Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
  1407. 1170.79 s [really-safe-money-gen] - Just qf -> Right qf
  1408. 1170.79 s [really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:47:33-75
  1409. 1170.79 s [really-safe-money-gen] @@ -44,7 +44,6 @@
  1410. 1170.79 s [really-safe-money-gen] where
  1411. 1170.79 s [really-safe-money-gen] f :: String -> Either String Amount
  1412. 1170.79 s [really-safe-money-gen] f s = case readMaybe s of
  1413. 1170.79 s [really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  1414. 1170.79 s [really-safe-money-gen] Just i ->
  1415. 1170.79 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  1416. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1417. 1170.79 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/QuantisationFactor/Codec.hs:41:11-26
  1418. 1170.79 s [really-safe-money-gen] @@ -38,6 +38,5 @@
  1419. 1170.79 s [really-safe-money-gen] codec
  1420. 1170.79 s [really-safe-money-gen] <?> "QuantisationFactor"
  1421. 1170.79 s [really-safe-money-gen] where
  1422. 1170.79 s [really-safe-money-gen] f w = case QuantisationFactor.fromWord32 w of
  1423. 1170.79 s [really-safe-money-gen] - Nothing -> Left $ "Unable to parse as a quantisation factor: " <> show w
  1424. 1170.79 s [really-safe-money-gen] Just qf -> Right qf
  1425. 1170.79 s [really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:50:31-84
  1426. 1170.79 s [really-safe-money-gen] @@ -47,7 +47,6 @@
  1427. 1170.79 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  1428. 1170.79 s [really-safe-money-gen] Just i ->
  1429. 1170.79 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  1430. 1170.79 s [really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1431. 1170.79 s [really-safe-money-gen] else
  1432. 1170.79 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  1433. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  1434. 1170.79 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:49:12-59
  1435. 1170.79 s [really-safe-money-gen] @@ -46,7 +46,7 @@
  1436. 1170.79 s [really-safe-money-gen] f s = case readMaybe s of
  1437. 1170.79 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  1438. 1170.79 s [really-safe-money-gen] Just i ->
  1439. 1170.79 s [really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
  1440. 1170.79 s [really-safe-money-gen] + if (i :: Integer) <= toInteger (minBound :: Word64)
  1441. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1442. 1170.79 s [really-safe-money-gen] else
  1443. 1170.79 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  1444. 1170.79 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:52:16-63
  1445. 1170.79 s [really-safe-money-gen] @@ -49,7 +49,7 @@
  1446. 1170.79 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  1447. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1448. 1170.79 s [really-safe-money-gen] else
  1449. 1170.79 s [really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
  1450. 1170.79 s [really-safe-money-gen] + if (i :: Integer) <= toInteger (maxBound :: Word64)
  1451. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  1452. 1170.79 s [really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
  1453. 1170.79 s [really-safe-money-gen] g :: Amount -> String
  1454. 1170.79 s [really-safe-money-gen] Testing mutation Negate at src/Money/Amount/Codec.hs:49:12-59
  1455. 1170.79 s [really-safe-money-gen] @@ -46,7 +46,7 @@
  1456. 1170.79 s [really-safe-money-gen] f s = case readMaybe s of
  1457. 1170.79 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  1458. 1170.79 s [really-safe-money-gen] Just i ->
  1459. 1170.79 s [really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
  1460. 1170.79 s [really-safe-money-gen] + if not ((i :: Integer) < toInteger (minBound :: Word64))
  1461. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1462. 1170.79 s [really-safe-money-gen] else
  1463. 1170.79 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  1464. 1170.79 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:49:12-59
  1465. 1170.79 s [really-safe-money-gen] @@ -46,7 +46,7 @@
  1466. 1170.79 s [really-safe-money-gen] f s = case readMaybe s of
  1467. 1170.79 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  1468. 1170.79 s [really-safe-money-gen] Just i ->
  1469. 1170.79 s [really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
  1470. 1170.79 s [really-safe-money-gen] + if False
  1471. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1472. 1170.79 s [really-safe-money-gen] else
  1473. 1170.79 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  1474. 1170.79 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:52:16-63
  1475. 1170.79 s [really-safe-money-gen] @@ -49,7 +49,7 @@
  1476. 1170.79 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  1477. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1478. 1170.79 s [really-safe-money-gen] else
  1479. 1170.79 s [really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
  1480. 1170.79 s [really-safe-money-gen] + if (i :: Integer) < toInteger (maxBound :: Word64)
  1481. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  1482. 1170.79 s [really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
  1483. 1170.79 s [really-safe-money-gen] g :: Amount -> String
  1484. 1170.79 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:52:16-63
  1485. 1170.79 s [really-safe-money-gen] @@ -49,7 +49,7 @@
  1486. 1170.79 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  1487. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1488. 1170.79 s [really-safe-money-gen] else
  1489. 1170.79 s [really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
  1490. 1170.79 s [really-safe-money-gen] + if True
  1491. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  1492. 1170.79 s [really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
  1493. 1170.79 s [really-safe-money-gen] g :: Amount -> String
  1494. 1170.79 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:52:16-63
  1495. 1170.79 s [really-safe-money-gen] @@ -49,7 +49,7 @@
  1496. 1170.79 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  1497. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1498. 1170.79 s [really-safe-money-gen] else
  1499. 1170.79 s [really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
  1500. 1170.79 s [really-safe-money-gen] + if (i :: Integer) >= toInteger (maxBound :: Word64)
  1501. 1170.79 s [really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  1502. 1170.79 s [really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
  1503. 1170.79 s [really-safe-money-gen] g :: Amount -> String
  1504. 1170.79 s [really-safe-money-gen] Testing mutation ListLit at src/Money/Account/Codec.hs:51:33-76
  1505. 1170.79 s [really-safe-money-gen] @@ -48,7 +48,6 @@
  1506. 1170.79 s [really-safe-money-gen] where
  1507. 1170.79 s [really-safe-money-gen] f :: String -> Either String Account
  1508. 1170.79 s [really-safe-money-gen] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
  1509. 1170.79 s [really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
  1510. 1170.79 s [really-safe-money-gen] Just a -> Right a
  1511. 1170.79 s [really-safe-money-gen] g :: Account -> String
  1512. 1170.79 s [really-safe-money-gen] g = show . Account.toMinimalQuantisations
  1513. 1170.79 s [really-safe-money-gen] Testing mutation ListLit at src/Money/Account/Codec.hs:51:33-76
  1514. 1170.79 s [really-safe-money-gen] @@ -48,7 +48,6 @@
  1515. 1170.79 s [really-safe-money-gen] where
  1516. 1170.79 s [really-safe-money-gen] f :: String -> Either String Account
  1517. 1170.79 s [really-safe-money-gen] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
  1518. 1170.79 s [really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
  1519. 1170.79 s [really-safe-money-gen] Just a -> Right a
  1520. 1170.79 s [really-safe-money-gen] g :: Account -> String
  1521. 1170.79 s [really-safe-money-gen] g = show . Account.toMinimalQuantisations
  1522. 1170.81 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:79:11-24
  1523. 1170.81 s [really-safe-money-gen] @@ -76,6 +76,5 @@
  1524. 1170.81 s [really-safe-money-gen] <?> "Account"
  1525. 1170.81 s [really-safe-money-gen] where
  1526. 1170.81 s [really-safe-money-gen] f :: Integer -> Either String Account
  1527. 1170.81 s [really-safe-money-gen] f i = case Account.fromMinimalQuantisations i of
  1528. 1170.81 s [really-safe-money-gen] Nothing -> Left $ "Number did not fit into an account value: " <> show i
  1529. 1170.81 s [really-safe-money-gen] - Just a -> Right a
  1530. 1170.81 s [really-safe-money-gen] Testing mutation ListLit at src/Numeric/DecimalLiteral/Codec.hs:40:33-82
  1531. 1170.81 s [really-safe-money-gen] @@ -37,5 +37,4 @@
  1532. 1170.81 s [really-safe-money-gen] where
  1533. 1170.81 s [really-safe-money-gen] f :: String -> Either String DecimalLiteral
  1534. 1170.81 s [really-safe-money-gen] f s = case DecimalLiteral.fromString s of
  1535. 1170.81 s [really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
  1536. 1170.81 s [really-safe-money-gen] Just a -> Right a
  1537. 1170.81 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:50:11-24
  1538. 1170.81 s [really-safe-money-gen] @@ -47,9 +47,8 @@
  1539. 1170.81 s [really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Account"
  1540. 1170.81 s [really-safe-money-gen] where
  1541. 1170.81 s [really-safe-money-gen] f :: String -> Either String Account
  1542. 1170.81 s [really-safe-money-gen] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
  1543. 1170.81 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Account:", s]
  1544. 1170.81 s [really-safe-money-gen] - Just a -> Right a
  1545. 1170.82 s [really-safe-money-gen] g :: Account -> String
  1546. 1170.82 s [really-safe-money-gen] g = show . Account.toMinimalQuantisations
  1547. 1170.82 s [really-safe-money-gen]
  1548. 1170.82 s [really-safe-money-gen] Testing mutation ListLit at src/Numeric/DecimalLiteral/Codec.hs:40:33-82
  1549. 1170.82 s [really-safe-money-gen] @@ -37,5 +37,4 @@
  1550. 1170.82 s [really-safe-money-gen] where
  1551. 1170.82 s [really-safe-money-gen] f :: String -> Either String DecimalLiteral
  1552. 1170.82 s [really-safe-money-gen] f s = case DecimalLiteral.fromString s of
  1553. 1170.82 s [really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
  1554. 1170.82 s [really-safe-money-gen] Just a -> Right a
  1555. 1170.82 s [really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral/Codec.hs:39:11-24
  1556. 1170.82 s [really-safe-money-gen] @@ -36,6 +36,5 @@
  1557. 1170.82 s [really-safe-money-gen] codecViaString = bimapCodec f DecimalLiteral.toString stringCodec <?> "DecimalLiteral"
  1558. 1170.82 s [really-safe-money-gen] where
  1559. 1170.82 s [really-safe-money-gen] f :: String -> Either String DecimalLiteral
  1560. 1170.82 s [really-safe-money-gen] f s = case DecimalLiteral.fromString s of
  1561. 1170.82 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
  1562. 1170.82 s [really-safe-money-gen] - Just a -> Right a
  1563. 1170.82 s [really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:53:35-90
  1564. 1170.82 s [really-safe-money-gen] @@ -50,7 +50,6 @@
  1565. 1170.82 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1566. 1170.82 s [really-safe-money-gen] else
  1567. 1170.82 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  1568. 1170.82 s [really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  1569. 1170.82 s [really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
  1570. 1170.82 s [really-safe-money-gen] g :: Amount -> String
  1571. 1170.82 s [really-safe-money-gen] g = show . Amount.toMinimalQuantisations
  1572. 1170.82 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:52:16-63
  1573. 1170.82 s [really-safe-money-gen] @@ -49,7 +49,7 @@
  1574. 1170.82 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  1575. 1170.82 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1576. 1170.82 s [really-safe-money-gen] else
  1577. 1170.82 s [really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
  1578. 1170.82 s [really-safe-money-gen] + if False
  1579. 1170.82 s [really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  1580. 1170.82 s [really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
  1581. 1170.82 s [really-safe-money-gen] g :: Amount -> String
  1582. 1170.82 s [really-safe-money-gen] Testing mutation Negate at src/Money/Amount/Codec.hs:52:16-63
  1583. 1170.82 s [really-safe-money-gen] @@ -49,7 +49,7 @@
  1584. 1170.82 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  1585. 1170.82 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1586. 1170.82 s [really-safe-money-gen] else
  1587. 1170.83 s [really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
  1588. 1170.83 s [really-safe-money-gen] + if not ((i :: Integer) > toInteger (maxBound :: Word64))
  1589. 1170.83 s [really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  1590. 1170.83 s [really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
  1591. 1170.83 s [really-safe-money-gen] g :: Amount -> String
  1592. 1170.83 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:50:11-24
  1593. 1170.83 s [really-safe-money-gen] @@ -47,9 +47,8 @@
  1594. 1170.83 s [really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Account"
  1595. 1170.83 s [really-safe-money-gen] where
  1596. 1170.83 s [really-safe-money-gen] f :: String -> Either String Account
  1597. 1170.83 s [really-safe-money-gen] f s = case readMaybe s >>= Account.fromMinimalQuantisations of
  1598. 1170.83 s [really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Account:", s]
  1599. 1170.83 s [really-safe-money-gen] Just a -> Right a
  1600. 1170.83 s [really-safe-money-gen] g :: Account -> String
  1601. 1170.83 s [really-safe-money-gen] g = show . Account.toMinimalQuantisations
  1602. 1170.83 s [really-safe-money-gen]
  1603. 1170.83 s [really-safe-money-gen] Testing mutation RemoveCase at src/Numeric/DecimalLiteral/Codec.hs:39:11-24
  1604. 1170.83 s [really-safe-money-gen] @@ -36,6 +36,5 @@
  1605. 1170.83 s [really-safe-money-gen] codecViaString = bimapCodec f DecimalLiteral.toString stringCodec <?> "DecimalLiteral"
  1606. 1170.83 s [really-safe-money-gen] where
  1607. 1170.83 s [really-safe-money-gen] f :: String -> Either String DecimalLiteral
  1608. 1170.83 s [really-safe-money-gen] f s = case DecimalLiteral.fromString s of
  1609. 1170.83 s [really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as a DecimalLiteral:", s]
  1610. 1170.83 s [really-safe-money-gen] Just a -> Right a
  1611. 1170.83 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:49:12-59
  1612. 1170.83 s [really-safe-money-gen] @@ -46,7 +46,7 @@
  1613. 1170.83 s [really-safe-money-gen] f s = case readMaybe s of
  1614. 1170.83 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  1615. 1170.83 s [really-safe-money-gen] Just i ->
  1616. 1170.83 s [really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
  1617. 1170.83 s [really-safe-money-gen] + if (i :: Integer) >= toInteger (minBound :: Word64)
  1618. 1170.83 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1619. 1170.83 s [really-safe-money-gen] else
  1620. 1170.83 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  1621. 1170.83 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Account/Codec.hs:79:11-24
  1622. 1170.83 s [really-safe-money-gen] @@ -76,6 +76,5 @@
  1623. 1170.83 s [really-safe-money-gen] <?> "Account"
  1624. 1170.83 s [really-safe-money-gen] where
  1625. 1170.83 s [really-safe-money-gen] f :: Integer -> Either String Account
  1626. 1170.83 s [really-safe-money-gen] f i = case Account.fromMinimalQuantisations i of
  1627. 1170.83 s [really-safe-money-gen] - Nothing -> Left $ "Number did not fit into an account value: " <> show i
  1628. 1170.83 s [really-safe-money-gen] Just a -> Right a
  1629. 1170.83 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount/Codec.hs:46:11-86
  1630. 1170.83 s [really-safe-money-gen] @@ -43,15 +43,8 @@
  1631. 1170.83 s [really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Amount"
  1632. 1170.83 s [really-safe-money-gen] where
  1633. 1170.83 s [really-safe-money-gen] f :: String -> Either String Amount
  1634. 1170.83 s [really-safe-money-gen] f s = case readMaybe s of
  1635. 1170.83 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  1636. 1170.83 s [really-safe-money-gen] - Just i ->
  1637. 1170.83 s [really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
  1638. 1170.83 s [really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1639. 1170.83 s [really-safe-money-gen] - else
  1640. 1170.83 s [really-safe-money-gen] - if (i :: Integer) > toInteger (maxBound :: Word64)
  1641. 1170.83 s [really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  1642. 1170.83 s [really-safe-money-gen] - else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
  1643. 1170.83 s [really-safe-money-gen] g :: Amount -> String
  1644. 1170.83 s [really-safe-money-gen] g = show . Amount.toMinimalQuantisations
  1645. 1170.83 s [really-safe-money-gen]
  1646. 1170.83 s [really-safe-money-gen] Testing mutation RemoveCase at src/Money/Amount/Codec.hs:46:11-86
  1647. 1170.84 s [really-safe-money-gen] @@ -43,15 +43,14 @@
  1648. 1170.84 s [really-safe-money-gen] codecViaString = bimapCodec f g stringCodec <?> "Amount"
  1649. 1170.84 s [really-safe-money-gen] where
  1650. 1170.84 s [really-safe-money-gen] f :: String -> Either String Amount
  1651. 1170.84 s [really-safe-money-gen] f s = case readMaybe s of
  1652. 1170.84 s [really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  1653. 1170.84 s [really-safe-money-gen] Just i ->
  1654. 1170.84 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  1655. 1170.84 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1656. 1170.84 s [really-safe-money-gen] else
  1657. 1170.84 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  1658. 1170.84 s [really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  1659. 1170.84 s [really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
  1660. 1170.84 s [really-safe-money-gen] g :: Amount -> String
  1661. 1170.84 s [really-safe-money-gen] g = show . Amount.toMinimalQuantisations
  1662. 1170.84 s [really-safe-money-gen]
  1663. 1170.84 s [really-safe-money-gen] Testing mutation ConstBool at src/Money/Amount/Codec.hs:49:12-59
  1664. 1170.84 s [really-safe-money-gen] @@ -46,7 +46,7 @@
  1665. 1170.84 s [really-safe-money-gen] f s = case readMaybe s of
  1666. 1170.84 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  1667. 1170.84 s [really-safe-money-gen] Just i ->
  1668. 1170.84 s [really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
  1669. 1170.84 s [really-safe-money-gen] + if True
  1670. 1170.84 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1671. 1170.84 s [really-safe-money-gen] else
  1672. 1170.84 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  1673. 1170.84 s [really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:53:35-90
  1674. 1170.84 s [really-safe-money-gen] @@ -50,7 +50,6 @@
  1675. 1170.84 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  1676. 1170.84 s [really-safe-money-gen] else
  1677. 1170.84 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  1678. 1187.64 s [really-safe-money-gen] - then Left $ unwords ["Number of minimal quantisations Killed: 426
  1679. 1187.67 s [really-safe-money-gen] (of which timed out: 0)
  1680. 1187.67 s [really-safe-money-gen] Survived: 58
  1681. 1187.67 s [really-safe-money-gen] Uncovered: 40
  1682. 1187.67 s [really-safe-money-gen]
  1683. 1187.67 s [really-safe-money-gen] Surviving mutations:
  1684. 1187.67 s [really-safe-money-gen]
  1685. 1187.67 s [really-safe-money-gen] ListLit at src/Money/MultiAccount.hs:66:7-8
  1686. 1187.67 s [really-safe-money-gen] @@ -63,11 +63,10 @@
  1687. 1187.67 s [really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
  1688. 1187.67 s [really-safe-money-gen] validate ma@(MultiAccount m) =
  1689. 1187.67 s [really-safe-money-gen] mconcat
  1690. 1187.67 s [really-safe-money-gen] - [ genericValidate ma,
  1691. 1187.67 s [really-safe-money-gen] decorateMap m $ \_ a ->
  1692. 1187.68 s [really-safe-money-gen] declare "The account is not zero" $
  1693. 1187.68 s [really-safe-money-gen] a /= Account.zero
  1694. 1187.68 s [really-safe-money-gen] ]
  1695. 1187.68 s [really-safe-money-gen]
  1696. 1187.68 s [really-safe-money-gen] -- TODO no empty currencies
  1697. 1187.68 s [really-safe-money-gen]
  1698. 1187.68 s [really-safe-money-gen]
  1699. 1187.68 s [really-safe-money-gen] ListLit at src/Money/MultiAccount.hs:66:7-8
  1700. 1187.68 s [really-safe-money-gen] @@ -63,11 +63,7 @@
  1701. 1187.68 s [really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAccount currency) where
  1702. 1187.68 s [really-safe-money-gen] validate ma@(MultiAccount m) =
  1703. 1187.68 s [really-safe-money-gen] mconcat
  1704. 1187.68 s [really-safe-money-gen] - [ genericValidate ma,
  1705. 1187.68 s [really-safe-money-gen] - decorateMap m $ \_ a ->
  1706. 1187.68 s [really-safe-money-gen] - declare "The account is not zero" $
  1707. 1187.68 s [really-safe-money-gen] - a /= Account.zero
  1708. 1187.68 s [really-safe-money-gen] ]
  1709. 1187.68 s [really-safe-money-gen]
  1710. 1187.68 s [really-safe-money-gen] -- TODO no empty currencies
  1711. 1187.68 s [really-safe-money-gen]
  1712. 1187.68 s [really-safe-money-gen]
  1713. 1187.68 s [really-safe-money-gen] ConstBool at src/Money/MultiAccount.hs:69:13-30
  1714. 1187.68 s [really-safe-money-gen] @@ -66,7 +66,7 @@
  1715. 1187.68 s [really-safe-money-gen] [ genericValidate ma,
  1716. 1187.68 s [really-safe-money-gen] decorateMap m $ \_ a ->
  1717. 1187.68 s [really-safe-money-gen] declare "The account is not zero" $
  1718. 1187.68 s [really-safe-money-gen] - a /= Account.zero
  1719. 1187.68 s [really-safe-money-gen] + True
  1720. 1187.68 s [really-safe-money-gen] ]
  1721. 1187.68 s [really-safe-money-gen]
  1722. 1187.68 s [really-safe-money-gen] -- TODO no empty currencies
  1723. 1187.68 s [really-safe-money-gen]
  1724. 1187.68 s [really-safe-money-gen] ConstBool at src/Money/MultiAccount.hs:78:6-28
  1725. 1187.68 s [really-safe-money-gen] @@ -75,7 +75,7 @@
  1726. 1187.68 s [really-safe-money-gen]
  1727. 1187.68 s [really-safe-money-gen] fromAccount :: currency -> Account -> MultiAccount currency
  1728. 1187.68 s [really-safe-money-gen] fromAccount currency amount =
  1729. 1187.68 s [really-safe-money-gen] - if amount == Account.zero
  1730. 1187.68 s [really-safe-money-gen] + if True
  1731. 1187.68 s [really-safe-money-gen] then zero
  1732. 1187.68 s [really-safe-money-gen] else MultiAccount $ M.singleton currency amount
  1733. 1187.68 s [really-safe-money-gen]
  1734. 1187.68 s [really-safe-money-gen]
  1735. 1187.68 s [really-safe-money-gen] MaybeOp at src/Money/MultiAccount.hs:113:40-46
  1736. 1187.68 s [really-safe-money-gen] @@ -110,7 +110,7 @@
  1737. 1187.68 s [really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
  1738. 1187.68 s [really-safe-money-gen] addAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
  1739. 1187.68 s [really-safe-money-gen] addAccount m _ (Positive (Amount 0)) = Just m
  1740. 1187.68 s [really-safe-money-gen] -addAccount m _ (Negative (Amount 0)) = Just m
  1741. 1187.68 s [really-safe-money-gen] +addAccount m _ (Negative (Amount 0)) = Nothing
  1742. 1187.68 s [really-safe-money-gen] addAccount (MultiAccount m) currency account =
  1743. 1187.68 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1744. 1187.68 s [really-safe-money-gen] Nothing -> Just $ M.insert currency account m
  1745. 1187.68 s [really-safe-money-gen]
  1746. 1187.68 s [really-safe-money-gen] MaybeOp at src/Money/MultiAccount.hs:127:45-51
  1747. 1187.68 s [really-safe-money-gen] @@ -124,7 +124,7 @@
  1748. 1187.68 s [really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
  1749. 1187.68 s [really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
  1750. 1187.68 s [really-safe-money-gen] subtractAccount m _ (Positive (Amount 0)) = Just m
  1751. 1187.68 s [really-safe-money-gen] -subtractAccount m _ (Negative (Amount 0)) = Just m
  1752. 1187.69 s [really-safe-money-gen] +subtractAccount m _ (Negative (Amount 0)) = Nothing
  1753. 1187.69 s [really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
  1754. 1187.69 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1755. 1187.69 s [really-safe-money-gen] Nothing -> Just $ M.insert currency (Account.negate account) m
  1756. 1187.69 s [really-safe-money-gen]
  1757. 1187.69 s [really-safe-money-gen] MaybeOp at src/Money/MultiAccount.hs:126:45-51
  1758. 1187.69 s [really-safe-money-gen] @@ -123,7 +123,7 @@
  1759. 1187.69 s [really-safe-money-gen]
  1760. 1187.69 s [really-safe-money-gen] -- | Add an 'Account' to a 'MultiAccount'
  1761. 1187.69 s [really-safe-money-gen] subtractAccount :: (Ord currency) => MultiAccount currency -> currency -> Account -> Maybe (MultiAccount currency)
  1762. 1187.69 s [really-safe-money-gen] -subtractAccount m _ (Positive (Amount 0)) = Just m
  1763. 1187.69 s [really-safe-money-gen] +subtractAccount m _ (Positive (Amount 0)) = Nothing
  1764. 1187.69 s [really-safe-money-gen] subtractAccount m _ (Negative (Amount 0)) = Just m
  1765. 1187.69 s [really-safe-money-gen] subtractAccount (MultiAccount m) currency account =
  1766. 1187.69 s [really-safe-money-gen] fmap MultiAccount $ case M.lookup currency m of
  1767. 1187.69 s [really-safe-money-gen]
  1768. 1187.69 s [really-safe-money-gen] ListLit at src/Money/MultiAmount.hs:63:7-8
  1769. 1187.69 s [really-safe-money-gen] @@ -60,11 +60,10 @@
  1770. 1187.69 s [really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
  1771. 1187.69 s [really-safe-money-gen] validate ma@(MultiAmount m) =
  1772. 1187.69 s [really-safe-money-gen] mconcat
  1773. 1187.69 s [really-safe-money-gen] - [ genericValidate ma,
  1774. 1187.69 s [really-safe-money-gen] decorateMap m $ \_ a ->
  1775. 1187.69 s [really-safe-money-gen] declare "The amount is not zero" $
  1776. 1187.69 s [really-safe-money-gen] a /= Amount.zero
  1777. 1187.69 s [really-safe-money-gen] ]
  1778. 1187.69 s [really-safe-money-gen]
  1779. 1187.69 s [really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
  1780. 1187.69 s [really-safe-money-gen]
  1781. 1187.69 s [really-safe-money-gen]
  1782. 1187.69 s [really-safe-money-gen] ListLit at src/Money/MultiAmount.hs:63:7-8
  1783. 1187.69 s [really-safe-money-gen] @@ -60,11 +60,7 @@
  1784. 1187.69 s [really-safe-money-gen] instance (Validity currency, Show currency, Ord currency) => Validity (MultiAmount currency) where
  1785. 1187.69 s [really-safe-money-gen] validate ma@(MultiAmount m) =
  1786. 1187.69 s [really-safe-money-gen] mconcat
  1787. 1187.69 s [really-safe-money-gen] - [ genericValidate ma,
  1788. 1187.69 s [really-safe-money-gen] - decorateMap m $ \_ a ->
  1789. 1187.69 s [really-safe-money-gen] - declare "The amount is not zero" $
  1790. 1187.69 s [really-safe-money-gen] - a /= Amount.zero
  1791. 1187.69 s [really-safe-money-gen] ]
  1792. 1187.69 s [really-safe-money-gen]
  1793. 1187.69 s [really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
  1794. 1187.69 s [really-safe-money-gen]
  1795. 1187.69 s [really-safe-money-gen]
  1796. 1187.69 s [really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:66:13-29
  1797. 1187.69 s [really-safe-money-gen] @@ -63,7 +63,7 @@
  1798. 1187.69 s [really-safe-money-gen] [ genericValidate ma,
  1799. 1187.69 s [really-safe-money-gen] decorateMap m $ \_ a ->
  1800. 1187.69 s [really-safe-money-gen] declare "The amount is not zero" $
  1801. 1187.69 s [really-safe-money-gen] - a /= Amount.zero
  1802. 1187.69 s [really-safe-money-gen] + True
  1803. 1187.69 s [really-safe-money-gen] ]
  1804. 1187.69 s [really-safe-money-gen]
  1805. 1187.69 s [really-safe-money-gen] instance (NFData currency) => NFData (MultiAmount currency)
  1806. 1187.69 s [really-safe-money-gen]
  1807. 1187.69 s [really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:106:12-28
  1808. 1187.69 s [really-safe-money-gen] @@ -103,7 +103,7 @@
  1809. 1187.69 s [really-safe-money-gen] Just a -> do
  1810. 1187.69 s [really-safe-money-gen] r <- Amount.add a amount
  1811. 1187.69 s [really-safe-money-gen] Just $
  1812. 1187.69 s [really-safe-money-gen] - if r == Amount.zero
  1813. 1187.69 s [really-safe-money-gen] + if False
  1814. 1187.69 s [really-safe-money-gen] then M.delete currency m
  1815. 1187.69 s [really-safe-money-gen] else M.insert currency r m
  1816. 1187.69 s [really-safe-money-gen]
  1817. 1187.69 s [really-safe-money-gen]
  1818. 1187.69 s [really-safe-money-gen] Negate at src/Money/MultiAmount.hs:119:12-28
  1819. 1187.69 s [really-safe-money-gen] @@ -116,7 +116,7 @@
  1820. 1187.69 s [really-safe-money-gen] Just a -> do
  1821. 1187.69 s [really-safe-money-gen] r <- Amount.subtract a amount
  1822. 1187.69 s [really-safe-money-gen] Just $
  1823. 1187.69 s [really-safe-money-gen] - if r == Amount.zero
  1824. 1187.69 s [really-safe-money-gen] + if not (r == Amount.zero)
  1825. 1187.69 s [really-safe-money-gen] then M.delete currency m
  1826. 1187.69 s [really-safe-money-gen] else M.insert currency r m
  1827. 1187.69 s [really-safe-money-gen]
  1828. 1187.69 s [really-safe-money-gen]
  1829. 1187.69 s [really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:119:12-28
  1830. 1187.69 s [really-safe-money-gen] @@ -116,7 +116,7 @@
  1831. 1187.70 s [really-safe-money-gen] Just a -> do
  1832. 1187.70 s [really-safe-money-gen] r <- Amount.subtract a amount
  1833. 1187.70 s [really-safe-money-gen] Just $
  1834. 1187.70 s [really-safe-money-gen] - if r == Amount.zero
  1835. 1187.70 s [really-safe-money-gen] + if False
  1836. 1187.70 s [really-safe-money-gen] then M.delete currency m
  1837. 1187.70 s [really-safe-money-gen] else M.insert currency r m
  1838. 1187.70 s [really-safe-money-gen]
  1839. 1187.70 s [really-safe-money-gen]
  1840. 1187.70 s [really-safe-money-gen] ConstBool at src/Money/MultiAmount.hs:119:12-28
  1841. 1187.70 s [really-safe-money-gen] @@ -116,7 +116,7 @@
  1842. 1187.70 s [really-safe-money-gen] Just a -> do
  1843. 1187.70 s [really-safe-money-gen] r <- Amount.subtract a amount
  1844. 1187.70 s [really-safe-money-gen] Just $
  1845. 1187.70 s [really-safe-money-gen] - if r == Amount.zero
  1846. 1187.70 s [really-safe-money-gen] + if True
  1847. 1187.70 s [really-safe-money-gen] then M.delete currency m
  1848. 1187.70 s [really-safe-money-gen] else M.insert currency r m
  1849. 1187.70 s [really-safe-money-gen]
  1850. 1187.70 s [really-safe-money-gen]
  1851. 1187.70 s [really-safe-money-gen] MaybeOp at src/Money/MultiAmount.hs:112:33-39
  1852. 1187.70 s [really-safe-money-gen] @@ -109,7 +109,7 @@
  1853. 1187.70 s [really-safe-money-gen]
  1854. 1187.70 s [really-safe-money-gen] -- | Subtract an 'Amount' from a 'MultiAmount'
  1855. 1187.70 s [really-safe-money-gen] subtractAmount :: (Ord currency) => MultiAmount currency -> currency -> Amount -> Maybe (MultiAmount currency)
  1856. 1187.70 s [really-safe-money-gen] -subtractAmount m _ (Amount 0) = Just m
  1857. 1187.70 s [really-safe-money-gen] +subtractAmount m _ (Amount 0) = Nothing
  1858. 1187.70 s [really-safe-money-gen] subtractAmount (MultiAmount m) currency amount =
  1859. 1187.70 s [really-safe-money-gen] fmap MultiAmount $ case M.lookup currency m of
  1860. 1187.70 s [really-safe-money-gen] Nothing -> Nothing -- Can't go below zero
  1861. 1187.70 s [really-safe-money-gen]
  1862. 1187.70 s [really-safe-money-gen] Cmp at src/Money/MultiAmount.hs:168:20-45
  1863. 1187.70 s [really-safe-money-gen] @@ -165,7 +165,7 @@
  1864. 1187.70 s [really-safe-money-gen] maxBoundN :: Natural
  1865. 1187.70 s [really-safe-money-gen] maxBoundN = fromIntegral (maxBound :: Word64)
  1866. 1187.70 s [really-safe-money-gen] actualResult =
  1867. 1187.70 s [really-safe-money-gen] - if roundedResult > maxBoundN
  1868. 1187.70 s [really-safe-money-gen] + if roundedResult >= maxBoundN
  1869. 1187.70 s [really-safe-money-gen] then Nothing
  1870. 1187.70 s [really-safe-money-gen] else Just (fromIntegral roundedResult)
  1871. 1187.70 s [really-safe-money-gen] rounded = case compare (fromIntegral roundedResult) theoreticalResult of
  1872. 1187.70 s [really-safe-money-gen]
  1873. 1187.70 s [really-safe-money-gen] ListLit at src/Money/Amount.hs:603:7-8
  1874. 1187.70 s [really-safe-money-gen] @@ -600,13 +600,12 @@
  1875. 1187.70 s [really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
  1876. 1187.70 s [really-safe-money-gen] validate ad =
  1877. 1187.70 s [really-safe-money-gen] mconcat
  1878. 1187.70 s [really-safe-money-gen] - [ genericValidate ad,
  1879. 1187.70 s [really-safe-money-gen] case ad of
  1880. 1187.71 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  1881. 1187.71 s [really-safe-money-gen] declare "The larger chunks are larger" $
  1882. 1187.71 s [really-safe-money-gen] a1 > a2
  1883. 1187.71 s [really-safe-money-gen] _ -> valid
  1884. 1187.71 s [really-safe-money-gen] ]
  1885. 1187.71 s [really-safe-money-gen]
  1886. 1187.71 s [really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
  1887. 1187.71 s [really-safe-money-gen]
  1888. 1187.71 s [really-safe-money-gen]
  1889. 1187.71 s [really-safe-money-gen] ListLit at src/Money/Amount.hs:603:7-8
  1890. 1187.71 s [really-safe-money-gen] @@ -600,13 +600,7 @@
  1891. 1187.71 s [really-safe-money-gen] instance (Validity amount, Ord amount) => Validity (Distribution amount) where
  1892. 1187.71 s [really-safe-money-gen] validate ad =
  1893. 1187.71 s [really-safe-money-gen] mconcat
  1894. 1187.71 s [really-safe-money-gen] - [ genericValidate ad,
  1895. 1187.71 s [really-safe-money-gen] - case ad of
  1896. 1187.71 s [really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
  1897. 1187.71 s [really-safe-money-gen] - declare "The larger chunks are larger" $
  1898. 1187.71 s [really-safe-money-gen] - a1 > a2
  1899. 1187.71 s [really-safe-money-gen] - _ -> valid
  1900. 1187.71 s [really-safe-money-gen] ]
  1901. 1187.71 s [really-safe-money-gen]
  1902. 1187.71 s [really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
  1903. 1187.71 s [really-safe-money-gen]
  1904. 1187.71 s [really-safe-money-gen]
  1905. 1187.71 s [really-safe-money-gen] RemoveCase at src/Money/Amount.hs:604:9-21
  1906. 1187.71 s [really-safe-money-gen] @@ -601,11 +601,8 @@
  1907. 1187.71 s [really-safe-money-gen] validate ad =
  1908. 1187.71 s [really-safe-money-gen] mconcat
  1909. 1187.71 s [really-safe-money-gen] [ genericValidate ad,
  1910. 1187.71 s [really-safe-money-gen] case ad of
  1911. 1187.71 s [really-safe-money-gen] - DistributedIntoUnequalChunks _ a1 _ a2 ->
  1912. 1187.71 s [really-safe-money-gen] - declare "The larger chunks are larger" $
  1913. 1187.71 s [really-safe-money-gen] - a1 > a2
  1914. 1187.71 s [really-safe-money-gen] _ -> valid
  1915. 1187.71 s [really-safe-money-gen] ]
  1916. 1187.71 s [really-safe-money-gen]
  1917. 1187.71 s [really-safe-money-gen] instance (NFData amount) => NFData (Distribution amount)
  1918. 1187.71 s [really-safe-money-gen]
  1919. 1187.71 s [really-safe-money-gen] ConstBool at src/Money/Amount.hs:607:15-22
  1920. 1187.71 s [really-safe-money-gen] @@ -604,7 +604,7 @@
  1921. 1187.71 s [really-safe-money-gen] case ad of
  1922. 1187.71 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  1923. 1187.71 s [really-safe-money-gen] declare "The larger chunks are larger" $
  1924. 1187.71 s [really-safe-money-gen] - a1 > a2
  1925. 1187.71 s [really-safe-money-gen] + True
  1926. 1187.71 s [really-safe-money-gen] _ -> valid
  1927. 1187.71 s [really-safe-money-gen] ]
  1928. 1187.71 s [really-safe-money-gen]
  1929. 1187.71 s [really-safe-money-gen]
  1930. 1187.71 s [really-safe-money-gen] Cmp at src/Money/Amount.hs:607:15-22
  1931. 1187.71 s [really-safe-money-gen] @@ -604,7 +604,7 @@
  1932. 1187.71 s [really-safe-money-gen] case ad of
  1933. 1187.71 s [really-safe-money-gen] DistributedIntoUnequalChunks _ a1 _ a2 ->
  1934. 1187.71 s [really-safe-money-gen] declare "The larger chunks are larger" $
  1935. 1187.71 s [really-safe-money-gen] - a1 > a2
  1936. 1187.71 s [really-safe-money-gen] + a1 >= a2
  1937. 1187.71 s [really-safe-money-gen] _ -> valid
  1938. 1187.72 s [really-safe-money-gen] ]
  1939. 1187.72 s [really-safe-money-gen]
  1940. 1187.72 s [really-safe-money-gen]
  1941. 1187.72 s [really-safe-money-gen] MaybeOp at src/Money/Amount.hs:661:19-28
  1942. 1187.72 s [really-safe-money-gen] @@ -658,7 +658,7 @@
  1943. 1187.72 s [really-safe-money-gen] -- | The amount and the real rate that was used, considering the 'Rounding'
  1944. 1187.72 s [really-safe-money-gen] (Maybe Amount, Ratio Natural)
  1945. 1187.72 s [really-safe-money-gen] fraction _ (Amount 0) f = (Just zero, f)
  1946. 1187.72 s [really-safe-money-gen] -fraction _ _ 0 = (Just zero, 0)
  1947. 1187.72 s [really-safe-money-gen] +fraction _ _ 0 = (Nothing, 0)
  1948. 1187.72 s [really-safe-money-gen] fraction r (Amount a) f =
  1949. 1187.72 s [really-safe-money-gen] let amountAsRatio :: Ratio Natural
  1950. 1187.72 s [really-safe-money-gen] amountAsRatio = (fromIntegral :: Word64 -> Ratio Natural) a
  1951. 1187.72 s [really-safe-money-gen]
  1952. 1187.72 s [really-safe-money-gen] Cmp at src/Money/Amount.hs:495:10-23
  1953. 1187.72 s [really-safe-money-gen] @@ -492,7 +492,7 @@
  1954. 1187.72 s [really-safe-money-gen] maxBoundI = fromIntegral (maxBound :: Word64)
  1955. 1187.72 s [really-safe-money-gen] r :: Integer
  1956. 1187.72 s [really-safe-money-gen] r = foldl' (\acc a -> (toInteger :: Word64 -> Integer) (toMinimalQuantisations a) + acc) 0 l
  1957. 1187.72 s [really-safe-money-gen] - in if r > maxBoundI
  1958. 1187.72 s [really-safe-money-gen] + in if r >= maxBoundI
  1959. 1187.72 s [really-safe-money-gen] then Nothing
  1960. 1187.72 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  1961. 1187.72 s [really-safe-money-gen]
  1962. 1187.72 s [really-safe-money-gen]
  1963. 1187.72 s [really-safe-money-gen] Cmp at src/Money/Amount.hs:341:26-91
  1964. 1187.72 s [really-safe-money-gen] @@ -338,7 +338,7 @@
  1965. 1187.72 s [really-safe-money-gen] floored = (floor :: Double -> Natural) resultDouble
  1966. 1187.72 s [really-safe-money-gen] in if ceiled == floored
  1967. 1187.72 s [really-safe-money-gen] then
  1968. 1187.72 s [really-safe-money-gen] - if ceiled > (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  1969. 1187.72 s [really-safe-money-gen] + if ceiled >= (fromIntegral :: Word64 -> Natural) (maxBound :: Word64)
  1970. 1187.72 s [really-safe-money-gen] then Nothing
  1971. 1187.72 s [really-safe-money-gen] else Just $ Amount (fromIntegral ceiled)
  1972. 1187.72 s [really-safe-money-gen] else Nothing
  1973. 1187.72 s [really-safe-money-gen]
  1974. 1187.72 s [really-safe-money-gen] ConstBool at src/Money/Amount.hs:332:14-40
  1975. 1187.72 s [really-safe-money-gen] @@ -329,7 +329,7 @@
  1976. 1187.72 s [really-safe-money-gen] | otherwise =
  1977. 1187.72 s [really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
  1978. 1187.72 s [really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
  1979. 1187.72 s [really-safe-money-gen] - if exponent resultDouble > 65
  1980. 1187.72 s [really-safe-money-gen] + if False
  1981. 1187.72 s [really-safe-money-gen] then Nothing
  1982. 1187.72 s [really-safe-money-gen] else
  1983. 1187.72 s [really-safe-money-gen] let ceiled :: Natural
  1984. 1187.72 s [really-safe-money-gen]
  1985. 1187.72 s [really-safe-money-gen] Cmp at src/Money/Amount.hs:332:14-40
  1986. 1187.72 s [really-safe-money-gen] @@ -329,7 +329,7 @@
  1987. 1187.72 s [really-safe-money-gen] | otherwise =
  1988. 1187.72 s [really-safe-money-gen] -- Shortcut for numbers that are way too big anyway
  1989. 1187.72 s [really-safe-money-gen] -- so that we don't have to compute the according 'Natural' values.
  1990. 1187.72 s [really-safe-money-gen] - if exponent resultDouble > 65
  1991. 1187.72 s [really-safe-money-gen] + if exponent resultDouble >= 65
  1992. 1187.72 s [really-safe-money-gen] then Nothing
  1993. 1187.72 s [really-safe-money-gen] else
  1994. 1187.72 s [really-safe-money-gen] let ceiled :: Natural
  1995. 1187.72 s [really-safe-money-gen]
  1996. 1187.72 s [really-safe-money-gen] MaybeOp at src/Money/Amount.hs:520:14-66
  1997. 1187.72 s [really-safe-money-gen] @@ -517,7 +517,7 @@
  1998. 1187.72 s [really-safe-money-gen] r = i1 - i2
  1999. 1187.72 s [really-safe-money-gen] in if r < 0
  2000. 1187.72 s [really-safe-money-gen] then Nothing
  2001. 1187.72 s [really-safe-money-gen] - else Just (Amount ((fromInteger :: Integer -> Word64) r))
  2002. 1187.72 s [really-safe-money-gen] + else Nothing
  2003. 1187.72 s [really-safe-money-gen]
  2004. 1187.73 s [really-safe-money-gen] -- | Multiply an amount of money by an integer scalar
  2005. 1187.73 s [really-safe-money-gen] --
  2006. 1187.73 s [really-safe-money-gen]
  2007. 1187.73 s [really-safe-money-gen] ConstBool at src/Money/Amount.hs:518:10-15
  2008. 1187.73 s [really-safe-money-gen] @@ -515,7 +515,7 @@
  2009. 1187.73 s [really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
  2010. 1187.73 s [really-safe-money-gen] r :: Integer
  2011. 1187.73 s [really-safe-money-gen] r = i1 - i2
  2012. 1187.73 s [really-safe-money-gen] - in if r < 0
  2013. 1187.73 s [really-safe-money-gen] + in if True
  2014. 1187.73 s [really-safe-money-gen] then Nothing
  2015. 1187.73 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  2016. 1187.73 s [really-safe-money-gen]
  2017. 1187.73 s [really-safe-money-gen]
  2018. 1187.73 s [really-safe-money-gen] Cmp at src/Money/Amount.hs:518:10-15
  2019. 1187.73 s [really-safe-money-gen] @@ -515,7 +515,7 @@
  2020. 1187.73 s [really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
  2021. 1187.73 s [really-safe-money-gen] r :: Integer
  2022. 1187.73 s [really-safe-money-gen] r = i1 - i2
  2023. 1187.73 s [really-safe-money-gen] - in if r < 0
  2024. 1187.73 s [really-safe-money-gen] + in if r <= 0
  2025. 1187.73 s [really-safe-money-gen] then Nothing
  2026. 1187.73 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  2027. 1187.73 s [really-safe-money-gen]
  2028. 1187.73 s [really-safe-money-gen]
  2029. 1187.73 s [really-safe-money-gen] IntLit at src/Money/Amount.hs:518:14-15
  2030. 1187.73 s [really-safe-money-gen] @@ -515,7 +515,7 @@
  2031. 1187.73 s [really-safe-money-gen] i2 = (fromIntegral :: Word64 -> Integer) a2
  2032. 1187.73 s [really-safe-money-gen] r :: Integer
  2033. 1187.73 s [really-safe-money-gen] r = i1 - i2
  2034. 1187.73 s [really-safe-money-gen] - in if r < 0
  2035. 1187.73 s [really-safe-money-gen] + in if r < 1
  2036. 1187.73 s [really-safe-money-gen] then Nothing
  2037. 1187.73 s [really-safe-money-gen] else Just (Amount ((fromInteger :: Integer -> Word64) r))
  2038. 1187.73 s [really-safe-money-gen]
  2039. 1187.73 s [really-safe-money-gen]
  2040. 1187.73 s [really-safe-money-gen] ListLit at src/Money/QuantisationFactor.hs:39:7-8
  2041. 1187.73 s [really-safe-money-gen] @@ -36,9 +36,8 @@
  2042. 1187.73 s [really-safe-money-gen] instance Validity QuantisationFactor where
  2043. 1187.73 s [really-safe-money-gen] validate qf@(QuantisationFactor w) =
  2044. 1187.73 s [really-safe-money-gen] mconcat
  2045. 1187.73 s [really-safe-money-gen] - [ genericValidate qf,
  2046. 1187.73 s [really-safe-money-gen] declare "The quantisation factor is not zero" $ w /= 0
  2047. 1187.73 s [really-safe-money-gen] ]
  2048. 1187.73 s [really-safe-money-gen]
  2049. 1187.73 s [really-safe-money-gen] instance NFData QuantisationFactor
  2050. 1187.73 s [really-safe-money-gen]
  2051. 1187.73 s [really-safe-money-gen]
  2052. 1187.73 s [really-safe-money-gen] ListLit at src/Money/QuantisationFactor.hs:39:7-8
  2053. 1187.73 s [really-safe-money-gen] @@ -36,9 +36,7 @@
  2054. 1187.73 s [really-safe-money-gen] instance Validity QuantisationFactor where
  2055. 1187.73 s [really-safe-money-gen] validate qf@(QuantisationFactor w) =
  2056. 1187.73 s [really-safe-money-gen] mconcat
  2057. 1187.73 s [really-safe-money-gen] - [ genericValidate qf,
  2058. 1187.73 s [really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
  2059. 1187.73 s [really-safe-money-gen] ]
  2060. 1187.73 s [really-safe-money-gen]
  2061. 1187.73 s [really-safe-money-gen] instance NFData QuantisationFactor
  2062. 1187.73 s [really-safe-money-gen]
  2063. 1187.73 s [really-safe-money-gen]
  2064. 1187.73 s [really-safe-money-gen] ConstBool at src/Money/QuantisationFactor.hs:40:57-63
  2065. 1187.73 s [really-safe-money-gen] @@ -37,7 +37,7 @@
  2066. 1187.73 s [really-safe-money-gen] validate qf@(QuantisationFactor w) =
  2067. 1187.73 s [really-safe-money-gen] mconcat
  2068. 1187.73 s [really-safe-money-gen] [ genericValidate qf,
  2069. 1187.73 s [really-safe-money-gen] - declare "The quantisation factor is not zero" $ w /= 0
  2070. 1187.73 s [really-safe-money-gen] + declare "The quantisation factor is not zero" $ True
  2071. 1187.73 s [really-safe-money-gen] ]
  2072. 1187.73 s [really-safe-money-gen]
  2073. 1187.73 s [really-safe-money-gen] instance NFData QuantisationFactor
  2074. 1187.73 s [really-safe-money-gen]
  2075. 1187.73 s [really-safe-money-gen] ListLit at src/Money/ConversionRate.hs:37:7-8
  2076. 1187.74 s [really-safe-money-gen] @@ -34,9 +34,8 @@
  2077. 1187.74 s [really-safe-money-gen] instance Validity ConversionRate where
  2078. 1187.74 s [really-safe-money-gen] validate cr@(ConversionRate r) =
  2079. 1187.74 s [really-safe-money-gen] mconcat
  2080. 1187.74 s [really-safe-money-gen] - [ genericValidate cr,
  2081. 1187.74 s [really-safe-money-gen] declare "The rate is nonzero" $ numerator r /= 0
  2082. 1187.74 s [really-safe-money-gen] ]
  2083. 1187.74 s [really-safe-money-gen]
  2084. 1187.74 s [really-safe-money-gen] instance NFData ConversionRate
  2085. 1187.74 s [really-safe-money-gen]
  2086. 1187.74 s [really-safe-money-gen]
  2087. 1187.74 s [really-safe-money-gen] IntLit at src/Money/ConversionRate.hs:109:27-28
  2088. 1187.74 s [really-safe-money-gen] @@ -106,7 +106,7 @@
  2089. 1187.74 s [really-safe-money-gen]
  2090. 1187.74 s [really-safe-money-gen] -- | One-to-one conversion rate
  2091. 1187.74 s [really-safe-money-gen] oneToOne :: ConversionRate
  2092. 1187.74 s [really-safe-money-gen] -oneToOne = ConversionRate 1
  2093. 1187.74 s [really-safe-money-gen] +oneToOne = ConversionRate 0
  2094. 1187.74 s [really-safe-money-gen]
  2095. 1187.74 s [really-safe-money-gen] -- | Invert a 'ConversionRate', to convert in the other direction.
  2096. 1187.74 s [really-safe-money-gen] --
  2097. 1187.74 s [really-safe-money-gen]
  2098. 1187.74 s [really-safe-money-gen] Arith at src/Money/ConversionRate.hs:127:70-79
  2099. 1187.74 s [really-safe-money-gen] @@ -124,7 +124,7 @@
  2100. 1187.74 s [really-safe-money-gen] -- >>> compose (ConversionRate (2 % 1)) (ConversionRate (1 % 2))
  2101. 1187.74 s [really-safe-money-gen] -- ConversionRate {unConversionRate = 1 % 1}
  2102. 1187.74 s [really-safe-money-gen] compose :: ConversionRate -> ConversionRate -> ConversionRate
  2103. 1187.74 s [really-safe-money-gen] -compose (ConversionRate cr1) (ConversionRate cr2) = ConversionRate $ cr1 * cr2
  2104. 1187.74 s [really-safe-money-gen] +compose (ConversionRate cr1) (ConversionRate cr2) = ConversionRate $ cr1 + cr2
  2105. 1187.74 s [really-safe-money-gen]
  2106. 1187.74 s [really-safe-money-gen] -- | The factor to multiply by when converting currencies.
  2107. 1187.74 s [really-safe-money-gen] conversionFactor :: QuantisationFactor -> ConversionRate -> QuantisationFactor -> Ratio Natural
  2108. 1187.74 s [really-safe-money-gen]
  2109. 1187.74 s [really-safe-money-gen] RemoveCase at src/Money/AccountOf.hs:180:30-115is too big:", show i]
  2110. 1187.74 s [really-safe-money-gen] else Right $ Amount.fromMinimalQuantisations (fromIntegral i :: Word64)
  2111. 1187.74 s [really-safe-money-gen] g :: Amount -> String
  2112. 1187.74 s [really-safe-money-gen] g = show . Amount.toMinimalQuantisations
  2113. 1187.74 s [really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:50:31-84
  2114. 1187.74 s [really-safe-money-gen] @@ -47,7 +47,6 @@
  2115. 1187.74 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  2116. 1187.74 s [really-safe-money-gen] Just i ->
  2117. 1187.74 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  2118. 1187.74 s [really-safe-money-gen] - then Left $ unwords ["Negative number of minimal quantisations:", show i]
  2119. 1187.74 s [really-safe-money-gen] else
  2120. 1187.74 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  2121. 1187.74 s [really-safe-money-gen] then Left $ unwords ["Number of minimal quantisations is too big:", show i]
  2122. 1187.74 s [really-safe-money-gen] Testing mutation ListLit at src/Money/Amount/Codec.hs:47:33-75
  2123. 1187.74 s [really-safe-money-gen] @@ -44,7 +44,6 @@
  2124. 1187.74 s [really-safe-money-gen] where
  2125. 1187.74 s [really-safe-money-gen] f :: String -> Either String Amount
  2126. 1187.74 s [really-safe-money-gen] f s = case readMaybe s of
  2127. 1187.74 s [really-safe-money-gen] - Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  2128. 1187.74 s [really-safe-money-gen] Just i ->
  2129. 1187.74 s [really-safe-money-gen] if (i :: Integer) < toInteger (minBound :: Word64)
  2130. 1187.74 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  2131. 1187.74 s [really-safe-money-gen] Testing mutation Cmp at src/Money/Amount/Codec.hs:49:12-59
  2132. 1187.74 s [really-safe-money-gen] @@ -46,7 +46,7 @@
  2133. 1187.74 s [really-safe-money-gen] f s = case readMaybe s of
  2134. 1187.74 s [really-safe-money-gen] Nothing -> Left $ unwords ["Could not read string as an Amount:", s]
  2135. 1187.74 s [really-safe-money-gen] Just i ->
  2136. 1187.74 s [really-safe-money-gen] - if (i :: Integer) < toInteger (minBound :: Word64)
  2137. 1187.74 s [really-safe-money-gen] + if (i :: Integer) > toInteger (minBound :: Word64)
  2138. 1187.74 s [really-safe-money-gen] then Left $ unwords ["Negative number of minimal quantisations:", show i]
  2139. 1187.74 s [really-safe-money-gen] else
  2140. 1187.74 s [really-safe-money-gen] if (i :: Integer) > toInteger (maxBound :: Word64)
  2141. 1187.74 s [really-safe-money-gen]
  2142. 1187.74 s [really-safe-money-gen] @@ -177,11 +177,10 @@
  2143. 1187.74 s [really-safe-money-gen]
  2144. 1187.74 s [really-safe-money-gen] -- | See 'Account.distribute'
  2145. 1187.74 s [really-safe-money-gen] distribute :: AccountOf currency -> Word16 -> AccountDistributionOf currency
  2146. 1187.74 s [really-safe-money-gen] distribute (AccountOf a) w = case Account.distribute a w of
  2147. 1187.74 s [really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
  2148. 1187.74 s [really-safe-money-gen] DistributedZero -> DistributedZero
  2149. 1187.74 s [really-safe-money-gen] - DistributedIntoEqualChunks w' a' -> DistributedIntoEqualChunks w' (fromAccount a')
  2150. 1187.74 s [really-safe-money-gen] DistributedIntoUnequalChunks w1 a1 w2 a2 -> DistributedIntoUnequalChunks w1 (fromAccount a1) w2 (fromAccount a2)
  2151. 1187.75 s [really-safe-money-gen]
  2152. 1187.75 s [really-safe-money-gen] -- | The result of 'distribute'
  2153. 1187.75 s [really-safe-money-gen] type AccountDistributionOf (currency :: k) = Distribution (AccountOf currency)
  2154. 1187.75 s [really-safe-money-gen]
  2155. 1187.75 s [really-safe-money-gen] RemoveCase at src/Numeric/DecimalLiteral.hs:112:17-21
  2156. 1187.75 s [really-safe-money-gen] @@ -109,9 +109,8 @@
  2157. 1187.75 s [really-safe-money-gen]
  2158. 1187.75 s [really-safe-money-gen] -- | Like 'fromString' but in a 'MonadFail'
  2159. 1187.75 s [really-safe-money-gen] fromStringM :: (MonadFail m) => String -> m DecimalLiteral
  2160. 1187.75 s [really-safe-money-gen] fromStringM s = case Numeric.DecimalLiteral.fromString s of
  2161. 1187.75 s [really-safe-money-gen] Nothing -> fail $ "Failed to parse decimal literal from: " <> show s
  2162. 1187.75 s [really-safe-money-gen] - Just dl -> pure dl
  2163. 1187.75 s [really-safe-money-gen]
  2164. 1187.75 s [really-safe-money-gen] decimalLiteralP :: ReadP DecimalLiteral
  2165. 1187.75 s [really-safe-money-gen] decimalLiteralP = do
  2166. 1187.75 s [really-safe-money-gen]
  2167. 1187.75 s [really-safe-money-gen] RemoveCase at src/Numeric/DecimalLiteral.hs:287:38-40
  2168. 1187.75 s [really-safe-money-gen] @@ -284,9 +284,8 @@
  2169. 1187.75 s [really-safe-money-gen] -- >>> toRatio (DecimalLiteral (Just False) 3 1)
  2170. 1187.75 s [really-safe-money-gen] -- Nothing
  2171. 1187.75 s [really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
  2172. 1187.75 s [really-safe-money-gen] toRatio (DecimalLiteral mSign m e) = case mSign of
  2173. 1187.75 s [really-safe-money-gen] - Just False -> Nothing
  2174. 1187.75 s [really-safe-money-gen] _ -> Just $ fromIntegral m / (10 ^ e)
  2175. 1187.75 s [really-safe-money-gen]
  2176. 1187.75 s [really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
  2177. 1187.75 s [really-safe-money-gen] fromWord :: Word -> DecimalLiteral
  2178. 1187.75 s [really-safe-money-gen]
  2179. 1187.75 s [really-safe-money-gen] IntLit at src/Numeric/DecimalLiteral.hs:289:33-35
  2180. 1187.75 s [really-safe-money-gen] @@ -286,7 +286,7 @@
  2181. 1187.75 s [really-safe-money-gen] toRatio :: DecimalLiteral -> Maybe (Ratio Natural)
  2182. 1187.75 s [really-safe-money-gen] toRatio (DecimalLiteral mSign m e) = case mSign of
  2183. 1187.75 s [really-safe-money-gen] Just False -> Nothing
  2184. 1187.75 s [really-safe-money-gen] - _ -> Just $ fromIntegral m / (10 ^ e)
  2185. 1187.75 s [really-safe-money-gen] + _ -> Just $ fromIntegral m / (1 ^ e)
  2186. 1187.75 s [really-safe-money-gen]
  2187. 1187.75 s [really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Word'
  2188. 1187.75 s [really-safe-money-gen] fromWord :: Word -> DecimalLiteral
  2189. 1187.75 s [really-safe-money-gen]
  2190. 1187.75 s [really-safe-money-gen] RemoveAction at src/Numeric/DecimalLiteral.hs:299:3-47
  2191. 1187.75 s [really-safe-money-gen] @@ -296,7 +296,6 @@
  2192. 1187.75 s [really-safe-money-gen] toWord :: DecimalLiteral -> Maybe Word
  2193. 1187.75 s [really-safe-money-gen] toWord dl = do
  2194. 1187.75 s [really-safe-money-gen] n <- toNatural dl
  2195. 1187.75 s [really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Word)
  2196. 1187.75 s [really-safe-money-gen] pure $ fromIntegral n
  2197. 1187.75 s [really-safe-money-gen]
  2198. 1187.75 s [really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Natural'
  2199. 1187.75 s [really-safe-money-gen]
  2200. 1187.75 s [really-safe-money-gen] ConstBool at src/Numeric/DecimalLiteral.hs:299:11-47
  2201. 1187.75 s [really-safe-money-gen] @@ -296,7 +296,7 @@
  2202. 1187.75 s [really-safe-money-gen] toWord :: DecimalLiteral -> Maybe Word
  2203. 1187.75 s [really-safe-money-gen] toWord dl = do
  2204. 1187.75 s [really-safe-money-gen] n <- toNatural dl
  2205. 1187.75 s [really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Word)
  2206. 1187.75 s [really-safe-money-gen] + guard $ True
  2207. 1187.75 s [really-safe-money-gen] pure $ fromIntegral n
  2208. 1187.75 s [really-safe-money-gen]
  2209. 1187.75 s [really-safe-money-gen] -- | Construct a 'DecimalLiteral' from a 'Natural'
  2210. 1187.75 s [really-safe-money-gen]
  2211. 1187.75 s [really-safe-money-gen] RemoveAction at src/Numeric/DecimalLiteral.hs:332:3-46
  2212. 1187.75 s [really-safe-money-gen] @@ -329,7 +329,6 @@
  2213. 1187.75 s [really-safe-money-gen] toInt :: DecimalLiteral -> Maybe Int
  2214. 1187.75 s [really-safe-money-gen] toInt dl = do
  2215. 1187.75 s [really-safe-money-gen] n <- toInteger dl
  2216. 1187.75 s [really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Int)
  2217. 1187.75 s [really-safe-money-gen] guard $ n >= fromIntegral (minBound :: Int)
  2218. 1187.75 s [really-safe-money-gen] pure $ fromIntegral n
  2219. 1187.75 s [really-safe-money-gen]
  2220. 1187.75 s [really-safe-money-gen]
  2221. 1187.75 s [really-safe-money-gen] RemoveAction at src/Numeric/DecimalLiteral.hs:333:3-46
  2222. 1187.75 s [really-safe-money-gen] @@ -330,7 +330,6 @@
  2223. 1187.75 s [really-safe-money-gen] toInt dl = do
  2224. 1187.75 s [really-safe-money-gen] n <- toInteger dl
  2225. 1187.75 s [really-safe-money-gen] guard $ n <= fromIntegral (maxBound :: Int)
  2226. 1187.75 s [really-safe-money-gen] - guard $ n >= fromIntegral (minBound :: Int)
  2227. 1187.75 s [really-safe-money-gen] pure $ fromIntegral n
  2228. 1187.75 s [really-safe-money-gen]
  2229. 1187.75 s [really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
  2230. 1187.75 s [really-safe-money-gen]
  2231. 1187.75 s [really-safe-money-gen] ConstBool at src/Numeric/DecimalLiteral.hs:333:11-46
  2232. 1187.75 s [really-safe-money-gen] @@ -330,7 +330,7 @@
  2233. 1187.75 s [really-safe-money-gen] toInt dl = do
  2234. 1187.75 s [really-safe-money-gen] n <- toInteger dl
  2235. 1187.75 s [really-safe-money-gen] guard $ n <= fromIntegral (maxBound :: Int)
  2236. 1187.75 s [really-safe-money-gen] - guard $ n >= fromIntegral (minBound :: Int)
  2237. 1187.75 s [really-safe-money-gen] + guard $ True
  2238. 1187.75 s [really-safe-money-gen] pure $ fromIntegral n
  2239. 1187.75 s [really-safe-money-gen]
  2240. 1187.75 s [really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
  2241. 1187.75 s [really-safe-money-gen]
  2242. 1187.75 s [really-safe-money-gen] ConstBool at src/Numeric/DecimalLiteral.hs:332:11-46
  2243. 1187.75 s [really-safe-money-gen] @@ -329,7 +329,7 @@
  2244. 1187.75 s [really-safe-money-gen] toInt :: DecimalLiteral -> Maybe Int
  2245. 1187.75 s [really-safe-money-gen] toInt dl = do
  2246. 1187.75 s [really-safe-money-gen] n <- toInteger dl
  2247. 1187.75 s [really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Int)
  2248. 1187.75 s [really-safe-money-gen] + guard $ True
  2249. 1187.75 s [really-safe-money-gen] guard $ n >= fromIntegral (minBound :: Int)
  2250. 1187.75 s [really-safe-money-gen] pure $ fromIntegral n
  2251. 1187.75 s [really-safe-money-gen]
  2252. 1187.75 s [really-safe-money-gen]
  2253. 1187.75 s [really-safe-money-gen] Cmp at src/Numeric/DecimalLiteral.hs:332:11-46
  2254. 1187.75 s [really-safe-money-gen] @@ -329,7 +329,7 @@
  2255. 1187.76 s [really-safe-money-gen] toInt :: DecimalLiteral -> Maybe Int
  2256. 1187.76 s [really-safe-money-gen] toInt dl = do
  2257. 1187.76 s [really-safe-money-gen] n <- toInteger dl
  2258. 1187.76 s [really-safe-money-gen] - guard $ n <= fromIntegral (maxBound :: Int)
  2259. 1187.76 s [really-safe-money-gen] + guard $ n < fromIntegral (maxBound :: Int)
  2260. 1187.76 s [really-safe-money-gen] guard $ n >= fromIntegral (minBound :: Int)
  2261. 1187.76 s [really-safe-money-gen] pure $ fromIntegral n
  2262. 1187.76 s [really-safe-money-gen]
  2263. 1187.76 s [really-safe-money-gen]
  2264. 1187.76 s [really-safe-money-gen] Cmp at src/Numeric/DecimalLiteral.hs:337:16-22
  2265. 1187.76 s [really-safe-money-gen] @@ -334,7 +334,7 @@
  2266. 1187.76 s [really-safe-money-gen] pure $ fromIntegral n
  2267. 1187.76 s [really-safe-money-gen]
  2268. 1187.76 s [really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
  2269. 1187.76 s [really-safe-money-gen] -numSign a = if a >= 0 then Nothing else Just False
  2270. 1187.76 s [really-safe-money-gen] +numSign a = if a > 0 then Nothing else Just False
  2271. 1187.76 s [really-safe-money-gen]
  2272. 1187.76 s [really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
  2273. 1187.76 s [really-safe-money-gen] signSignum = \case
  2274. 1187.76 s [really-safe-money-gen]
  2275. 1187.76 s [really-safe-money-gen] IntLit at src/Numeric/DecimalLiteral.hs:337:21-22
  2276. 1187.76 s [really-safe-money-gen] @@ -334,7 +334,7 @@
  2277. 1187.76 s [really-safe-money-gen] pure $ fromIntegral n
  2278. 1187.76 s [really-safe-money-gen]
  2279. 1187.76 s [really-safe-money-gen] numSign :: (Ord a, Num a) => a -> Maybe Bool
  2280. 1187.76 s [really-safe-money-gen] -numSign a = if a >= 0 then Nothing else Just False
  2281. 1187.76 s [really-safe-money-gen] +numSign a = if a >= 1 then Nothing else Just False
  2282. 1187.76 s [really-safe-money-gen]
  2283. 1187.76 s [really-safe-money-gen] signSignum :: (Num a) => Maybe Bool -> (a -> a)
  2284. 1187.76 s [really-safe-money-gen] signSignum = \case
  2285. 1187.76 s [really-safe-money-gen]
  2286. 1187.76 s [really-safe-money-gen] Cmp at src/Money/Account.hs:131:20-26
  2287. 1187.76 s [really-safe-money-gen] @@ -128,7 +128,7 @@
  2288. 1187.76 s [really-safe-money-gen] amount :: Amount
  2289. 1187.76 s [really-safe-money-gen] amount = Amount.fromMinimalQuantisations w
  2290. 1187.76 s [really-safe-money-gen] in Just $
  2291. 1187.76 s [really-safe-money-gen] - if i >= 0
  2292. 1187.76 s [really-safe-money-gen] + if i > 0
  2293. 1187.76 s [really-safe-money-gen] then Positive amount
  2294. 1187.76 s [really-safe-money-gen] else Negative amount
  2295. 1187.76 s [really-safe-money-gen]
  2296. 1187.76 s [really-safe-money-gen]
  2297. 1187.76 s [really-safe-money-gen] IntLit at src/Money/Account.hs:131:25-26
  2298. 1187.76 s [really-safe-money-gen] @@ -128,7 +128,7 @@
  2299. 1187.76 s [really-safe-money-gen] amount :: Amount
  2300. 1187.76 s [really-safe-money-gen] amount = Amount.fromMinimalQuantisations w
  2301. 1187.76 s [really-safe-money-gen] in Just $
  2302. 1187.76 s [really-safe-money-gen] - if i >= 0
  2303. 1187.76 s [really-safe-money-gen] + if i >= 1
  2304. 1187.76 s [really-safe-money-gen] then Positive amount
  2305. 1187.76 s [really-safe-money-gen] else Negative amount
  2306. 1187.76 s [really-safe-money-gen]
  2307. 1187.76 s [really-safe-money-gen]
  2308. 1187.76 s [really-safe-money-gen] ConstBool at src/Money/Account.hs:123:10-23
  2309. 1187.76 s [really-safe-money-gen] @@ -120,7 +120,7 @@
  2310. 1187.76 s [really-safe-money-gen] maxBoundI = (toInteger :: Word64 -> Integer) (maxBound :: Word64)
  2311. 1187.76 s [really-safe-money-gen] a :: Integer
  2312. 1187.76 s [really-safe-money-gen] a = (Prelude.abs :: Integer -> Integer) i
  2313. 1187.76 s [really-safe-money-gen] - in if a > maxBoundI
  2314. 1187.76 s [really-safe-money-gen] + in if False
  2315. 1187.76 s [really-safe-money-gen] then Nothing
  2316. 1187.76 s [really-safe-money-gen] else
  2317. 1187.76 s [really-safe-money-gen] let w :: Word64
  2318. 1187.76 s [really-safe-money-gen]
  2319. 1187.76 s [really-safe-money-gen] Cmp at src/Money/Account.hs:197:14-20
  2320. 1187.76 s [really-safe-money-gen] @@ -194,7 +194,7 @@
  2321. 1187.76 s [really-safe-money-gen] fromDouble :: QuantisationFactor -> Double -> Maybe Account
  2322. 1187.76 s [really-safe-money-gen] fromDouble quantisationFactor d =
  2323. 1187.76 s [really-safe-money-gen] let d' = Prelude.abs d
  2324. 1187.76 s [really-safe-money-gen] - f = if d >= 0 then Positive else Negative
  2325. 1187.76 s [really-safe-money-gen] + f = if d > 0 then Positive else Negative
  2326. 1187.76 s [really-safe-money-gen] in f <$> Amount.fromDouble quantisationFactor d'
  2327. 1187.76 s [really-safe-money-gen]
  2328. 1187.76 s [really-safe-money-gen] -- | Turn an amount of money into a 'Rational'.
  2329. 1187.76 s [really-safe-money-gen]
  2330. 1187.76 s [really-safe-money-gen] Cmp at src/Money/Account.hs:503:10-16
  2331. 1187.76 s [really-safe-money-gen] @@ -500,7 +500,7 @@
  2332. 1187.76 s [really-safe-money-gen] RoundNearest -> RoundNearest
  2333. 1187.76 s [really-safe-money-gen] (ma, ar) = fractionRatio ro account af
  2334. 1187.76 s [really-safe-money-gen] r = (realToFrac :: Ratio Natural -> Rational) ar
  2335. 1187.76 s [really-safe-money-gen] - in if f >= 0
  2336. 1187.76 s [really-safe-money-gen] + in if f > 0
  2337. 1187.76 s [really-safe-money-gen] then (ma, r)
  2338. 1187.77 s [really-safe-money-gen] else (negate <$> ma, -r)
  2339. 1187.77 s [really-safe-money-gen]
  2340. 1187.77 s [really-safe-money-gen]
  2341. 1187.77 s [really-safe-money-gen] Cmp at src/Money/Account.hs:495:12-18
  2342. 1187.77 s [really-safe-money-gen] @@ -492,7 +492,7 @@
  2343. 1187.77 s [really-safe-money-gen] fraction rounding account f =
  2344. 1187.77 s [really-safe-money-gen] let af = (realToFrac :: Rational -> Ratio Natural) ((Prelude.abs :: Rational -> Rational) f)
  2345. 1187.77 s [really-safe-money-gen] ro =
  2346. 1187.77 s [really-safe-money-gen] - if f >= 0
  2347. 1187.77 s [really-safe-money-gen] + if f > 0
  2348. 1187.77 s [really-safe-money-gen] then rounding
  2349. 1187.77 s [really-safe-money-gen] else case rounding of
  2350. 1187.77 s [really-safe-money-gen] RoundUp -> RoundDown
  2351. 1187.77 s [really-safe-money-gen]
  2352. 1187.77 s [really-safe-money-gen] MaybeOp at src/Money/Account.hs:523:16-25
  2353. 1187.77 s [really-safe-money-gen] @@ -520,7 +520,7 @@
  2354. 1187.77 s [really-safe-money-gen] (amount, actualFraction) = Amount.fraction ro aa af
  2355. 1187.77 s [really-safe-money-gen] func :: Maybe Amount -> Ratio Natural -> (Maybe Account, Ratio Natural)
  2356. 1187.77 s [really-safe-money-gen] func ma r = case compare account zero of
  2357. 1187.77 s [really-safe-money-gen] - EQ -> (Just zero, r)
  2358. 1187.77 s [really-safe-money-gen] + EQ -> (Nothing, r)
  2359. 1187.77 s [really-safe-money-gen] GT -> (Positive <$> ma, r)
  2360. 1187.77 s [really-safe-money-gen] LT -> (Negative <$> ma, r)
  2361. 1187.77 s [really-safe-money-gen] in func amount actualFraction
  2362. 1187.77 s [really-safe-money-gen]
  2363. 1187.77 s [really-safe-money-gen] Cmp at src/Money/Account.hs:455:14-23
  2364. 1187.77 s [really-safe-money-gen] @@ -452,7 +452,7 @@
  2365. 1187.77 s [really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
  2366. 1187.77 s [really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
  2367. 1187.77 s [really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
  2368. 1187.77 s [really-safe-money-gen] - if a >= zero
  2369. 1187.77 s [really-safe-money-gen] + if a > zero
  2370. 1187.77 s [really-safe-money-gen] then DistributedIntoUnequalChunks numberOfLargerChunks (Positive largerChunk) numberOfSmallerChunks (Positive smallerChunk)
  2371. 1187.77 s [really-safe-money-gen] else DistributedIntoUnequalChunks numberOfSmallerChunks (Negative smallerChunk) numberOfLargerChunks (Negative largerChunk)
  2372. 1187.77 s [really-safe-money-gen]
  2373. 1187.77 s [really-safe-money-gen]
  2374. 1187.77 s [really-safe-money-gen] Cmp at src/Money/Account.hs:451:14-23
  2375. 1187.77 s [really-safe-money-gen] @@ -448,7 +448,7 @@
  2376. 1187.77 s [really-safe-money-gen] DistributedIntoZeroChunks -> DistributedIntoZeroChunks
  2377. 1187.77 s [really-safe-money-gen] DistributedZero -> DistributedZero
  2378. 1187.77 s [really-safe-money-gen] DistributedIntoEqualChunks numberOfChunks chunk ->
  2379. 1187.77 s [really-safe-money-gen] - if a >= zero
  2380. 1187.77 s [really-safe-money-gen] + if a > zero
  2381. 1187.77 s [really-safe-money-gen] then DistributedIntoEqualChunks numberOfChunks (Positive chunk)
  2382. 1187.77 s [really-safe-money-gen] else DistributedIntoEqualChunks numberOfChunks (Negative chunk)
  2383. 1187.77 s [really-safe-money-gen] DistributedIntoUnequalChunks numberOfLargerChunks largerChunk numberOfSmallerChunks smallerChunk ->
  2384. 1187.77 s [really-safe-money-gen] checkPhase completed in 18 minutes 34 seconds
  2385. 1187.77 s [really-safe-money-gen] Phase: haddockPhase
  2386. 1188.38 s [really-safe-money-gen] Preprocessing library for really-safe-money-gen-0.0.0.0...
  2387. 1188.39 s [really-safe-money-gen] Running Haddock on library for really-safe-money-gen-0.0.0.0...
  2388. 1188.39 s [really-safe-money-gen] Warning: The documentation for the following packages are not installed. No
  2389. 1188.39 s [really-safe-money-gen] links will be generated to these packages: really-safe-money-0.0.0.0
  2390. 1189.17 s [really-safe-money-gen] [ 1 of 13] Compiling Money.Amount.Gen ( src/Money/Amount/Gen.hs, nothing )
  2391. 1189.55 s [really-safe-money-gen] [ 2 of 13] Compiling Money.Account.Gen ( src/Money/Account/Gen.hs, nothing )
  2392. 1189.59 s [really-safe-money-gen] [ 3 of 13] Compiling Money.AccountOf.Gen ( src/Money/AccountOf/Gen.hs, nothing )
  2393. 1189.61 s [really-safe-money-gen] [ 4 of 13] Compiling Money.AmountOf.Gen ( src/Money/AmountOf/Gen.hs, nothing )
  2394. 1189.63 s [really-safe-money-gen] [ 5 of 13] Compiling Money.ConversionRate.Gen ( src/Money/ConversionRate/Gen.hs, nothing )
  2395. 1189.68 s [really-safe-money-gen] [ 6 of 13] Compiling Money.ConversionRateOf.Gen ( src/Money/ConversionRateOf/Gen.hs, nothing )
  2396. 1189.70 s [really-safe-money-gen] [ 7 of 13] Compiling Money.QuantisationFactor.Gen ( src/Money/QuantisationFactor/Gen.hs, nothing )
  2397. 1189.73 s [really-safe-money-gen] [ 8 of 13] Compiling Money.Currency.Gen ( src/Money/Currency/Gen.hs, nothing )
  2398. 1189.77 s [really-safe-money-gen] [ 9 of 13] Compiling Money.MultiAmount.Gen ( src/Money/MultiAmount/Gen.hs, nothing )
  2399. 1189.88 s [really-safe-money-gen] [10 of 13] Compiling Money.MultiAccount.Gen ( src/Money/MultiAccount/Gen.hs, nothing )
  2400. 1189.92 s [really-safe-money-gen] [11 of 13] Compiling Money.Gen ( src/Money/Gen.hs, nothing )
  2401. 1189.93 s [really-safe-money-gen] [12 of 13] Compiling Numeric.DecimalLiteral.Gen ( src/Numeric/DecimalLiteral/Gen.hs, nothing )
  2402. 1189.97 s [really-safe-money-gen] [13 of 13] Compiling Paths_really_safe_money_gen ( dist/build/autogen/Paths_really_safe_money_gen.hs, nothing )
  2403. 1190.08 s [really-safe-money-gen] Haddock coverage:
  2404. 1190.08 s [really-safe-money-gen] 0% ( 0 / 1) in 'Money.Amount.Gen'
  2405. 1190.08 s [really-safe-money-gen] Missing documentation for:
  2406. 1190.08 s [really-safe-money-gen] Module header
  2407. 1190.08 s [really-safe-money-gen] 0% ( 0 / 1) in 'Money.Account.Gen'
  2408. 1190.08 s [really-safe-money-gen] Missing documentation for:
  2409. 1190.08 s [really-safe-money-gen] Module header
  2410. 1190.08 s [really-safe-money-gen] 0% ( 0 / 1) in 'Money.AccountOf.Gen'
  2411. 1190.08 s [really-safe-money-gen] Missing documentation for:
  2412. 1190.08 s [really-safe-money-gen] Module header
  2413. 1190.08 s [really-safe-money-gen] 0% ( 0 / 1) in 'Money.AmountOf.Gen'
  2414. 1190.09 s [really-safe-money-gen] Missing documentation for:
  2415. 1190.09 s [really-safe-money-gen] Module header
  2416. 1190.09 s [really-safe-money-gen] 0% ( 0 / 1) in 'Money.ConversionRate.Gen'
  2417. 1190.09 s [really-safe-money-gen] Missing documentation for:
  2418. 1190.09 s [really-safe-money-gen] Module header
  2419. 1190.09 s [really-safe-money-gen] 0% ( 0 / 1) in 'Money.ConversionRateOf.Gen'
  2420. 1190.09 s [really-safe-money-gen] Missing documentation for:
  2421. 1190.09 s [really-safe-money-gen] Module header
  2422. 1190.09 s [really-safe-money-gen] 0% ( 0 / 1) in 'Money.QuantisationFactor.Gen'
  2423. 1190.09 s [really-safe-money-gen] Missing documentation for:
  2424. 1190.09 s [really-safe-money-gen] Module header
  2425. 1190.09 s [really-safe-money-gen] 0% ( 0 / 1) in 'Money.Currency.Gen'
  2426. 1190.09 s [really-safe-money-gen] Missing documentation for:
  2427. 1190.09 s [really-safe-money-gen] Module header
  2428. 1190.09 s [really-safe-money-gen] 0% ( 0 / 1) in 'Money.MultiAmount.Gen'
  2429. 1190.09 s [really-safe-money-gen] Missing documentation for:
  2430. 1190.09 s [really-safe-money-gen] Module header
  2431. 1190.09 s [really-safe-money-gen] 0% ( 0 / 1) in 'Money.MultiAccount.Gen'
  2432. 1190.09 s [really-safe-money-gen] Missing documentation for:
  2433. 1190.09 s [really-safe-money-gen] Module header
  2434. 1190.09 s [really-safe-money-gen] Warning: Money.Gen: Could not find documentation for exported module: Money.Gen
  2435. 1190.09 s [really-safe-money-gen] 90% ( 10 / 11) in 'Money.Gen'
  2436. 1190.09 s [really-safe-money-gen] Missing documentation for:
  2437. 1190.09 s [really-safe-money-gen] Module header
  2438. 1190.09 s [really-safe-money-gen] 0% ( 0 / 2) in 'Numeric.DecimalLiteral.Gen'
  2439. 1190.09 s [really-safe-money-gen] Missing documentation for:
  2440. 1190.09 s [really-safe-money-gen] Module header
  2441. 1190.09 s [really-safe-money-gen] shrinkSign (src/Numeric/DecimalLiteral/Gen.hs:16)
  2442. 1190.51 s [really-safe-money-gen] Warning: Money.Amount.Gen: could not find link destinations for:
  2443. 1190.51 s [really-safe-money-gen] - Money.Amount.Amount
  2444. 1190.52 s [really-safe-money-gen] - Money.Amount.Distribution
  2445. 1190.52 s [really-safe-money-gen] - Money.Amount.Rounding
  2446. 1190.52 s [really-safe-money-gen] Warning: Money.Account.Gen: could not find link destinations for:
  2447. 1190.52 s [really-safe-money-gen] - Money.Account.Account
  2448. 1190.52 s [really-safe-money-gen] Warning: Money.AccountOf.Gen: could not find link destinations for:
  2449. 1190.52 s [really-safe-money-gen] - Money.AccountOf.AccountOf
  2450. 1190.52 s [really-safe-money-gen] Warning: Money.AmountOf.Gen: could not find link destinations for:
  2451. 1190.52 s [really-safe-money-gen] - Money.AmountOf.AmountOf
  2452. 1190.52 s [really-safe-money-gen] Warning: Money.ConversionRate.Gen: could not find link destinations for:
  2453. 1190.52 s [really-safe-money-gen] - Money.ConversionRate.ConversionRate
  2454. 1190.52 s [really-safe-money-gen] Warning: Money.ConversionRateOf.Gen: could not find link destinations for:
  2455. 1190.52 s [really-safe-money-gen] - Money.ConversionRateOf.ConversionRateOf
  2456. 1190.52 s [really-safe-money-gen] Warning: Money.QuantisationFactor.Gen: could not find link destinations for:
  2457. 1190.52 s [really-safe-money-gen] - Money.QuantisationFactor.QuantisationFactor
  2458. 1190.52 s [really-safe-money-gen] Warning: Money.Currency.Gen: could not find link destinations for:
  2459. 1190.52 s [really-safe-money-gen] - Money.Currency.Currency
  2460. 1190.52 s [really-safe-money-gen] Warning: Money.MultiAmount.Gen: could not find link destinations for:
  2461. 1190.52 s [really-safe-money-gen] - Money.MultiAmount.MultiAmount
  2462. 1190.52 s [really-safe-money-gen] Warning: Money.MultiAccount.Gen: could not find link destinations for:
  2463. 1190.52 s [really-safe-money-gen] - Money.MultiAccount.MultiAccount
  2464. 1190.52 s [really-safe-money-gen] Warning: Numeric.DecimalLiteral.Gen: could not find link destinations for:
  2465. 1190.52 s [really-safe-money-gen] - Numeric.DecimalLiteral.DecimalLiteral
  2466. 1204.44 s [really-safe-money-gen] Documentation created: dist/doc/html/really-safe-money-gen/,
  2467. 1204.45 s [really-safe-money-gen] dist/doc/html/really-safe-money-gen/really-safe-money-gen.txt
  2468. 1204.62 s [really-safe-money-gen] Preprocessing test suite 'really-safe-money-test' for really-safe-money-gen-0.0.0.0...
  2469. 1204.65 s [really-safe-money-gen] Phase: installPhase
  2470. 1205.07 s [really-safe-money-gen] Installing library in /nix/store/cdvvxk19mmf25krj1cj1ksb53fsjw64r-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
  2471. 1206.41 s [really-safe-money-gen] Phase: fixupPhase
  2472. 1206.45 s [really-safe-money-gen] shrinking RPATHs of ELF executables and libraries in /nix/store/cdvvxk19mmf25krj1cj1ksb53fsjw64r-really-safe-money-gen-0.0.0.0
  2473. 1206.47 s [really-safe-money-gen] shrinking /nix/store/cdvvxk19mmf25krj1cj1ksb53fsjw64r-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
  2474. 1206.49 s [really-safe-money-gen] checking for references to /build/ in /nix/store/cdvvxk19mmf25krj1cj1ksb53fsjw64r-really-safe-money-gen-0.0.0.0...
  2475. 1206.56 s [really-safe-money-gen] patching script interpreter paths in /nix/store/cdvvxk19mmf25krj1cj1ksb53fsjw64r-really-safe-money-gen-0.0.0.0
  2476. 1206.57 s [really-safe-money-gen] stripping (with command strip and flags -S -p) in /nix/store/cdvvxk19mmf25krj1cj1ksb53fsjw64r-really-safe-money-gen-0.0.0.0/lib
  2477. 1206.73 s [really-safe-money-gen] shrinking RPATHs of ELF executables and libraries in /nix/store/hcj2bk6wxsjr44v2k3xq5qq5dnwb09qw-really-safe-money-gen-0.0.0.0-doc
  2478. 1206.75 s [really-safe-money-gen] checking for references to /build/ in /nix/store/hcj2bk6wxsjr44v2k3xq5qq5dnwb09qw-really-safe-money-gen-0.0.0.0-doc...
  2479. 1206.79 s [really-safe-money-gen] patching script interpreter paths in /nix/store/hcj2bk6wxsjr44v2k3xq5qq5dnwb09qw-really-safe-money-gen-0.0.0.0-doc
  2480. 1206.81 s [really-safe-money-gen] shrinking RPATHs of ELF executables and libraries in /nix/store/lmgf6r68i0mja2j1zd84pwwfjq9hwlsq-really-safe-money-gen-0.0.0.0-report
  2481. 1206.83 s [really-safe-money-gen] checking for references to /build/ in /nix/store/lmgf6r68i0mja2j1zd84pwwfjq9hwlsq-really-safe-money-gen-0.0.0.0-report...
  2482. 1206.88 s [really-safe-money-gen] patching script interpreter paths in /nix/store/lmgf6r68i0mja2j1zd84pwwfjq9hwlsq-really-safe-money-gen-0.0.0.0-report
  2483. 1207.19 s [post-build-hook] Uploading to cachix cache "sydtest": /nix/store/cdvvxk19mmf25krj1cj1ksb53fsjw64r-really-safe-money-gen-0.0.0.0 /nix/store/hcj2bk6wxsjr44v2k3xq5qq5dnwb09qw-really-safe-money-gen-0.0.0.0-doc /nix/store/lmgf6r68i0mja2j1zd84pwwfjq9hwlsq-really-safe-money-gen-0.0.0.0-report
  2484. 1208.65 s [post-build-hook] Pushing 3 paths (196 are already present) using zstd to cache sydtest ⏳
  2485. 1208.65 s [post-build-hook]
  2486. 1209.03 s [post-build-hook] Pushing /nix/store/lmgf6r68i0mja2j1zd84pwwfjq9hwlsq-really-safe-money-gen-0.0.0.0-report (423.02 KiB)
  2487. 1209.17 s [post-build-hook] Pushing /nix/store/cdvvxk19mmf25krj1cj1ksb53fsjw64r-really-safe-money-gen-0.0.0.0 (1.52 MiB)
  2488. 1209.17 s [post-build-hook] Pushing /nix/store/hcj2bk6wxsjr44v2k3xq5qq5dnwb09qw-really-safe-money-gen-0.0.0.0-doc (288.17 KiB)
  2489. 1210.92 s [post-build-hook]
  2490. 1210.92 s [post-build-hook] All done.
  2491. 1210.98 s [post-build-hook] Uploading to the NixCI staging cache: /nix/store/cdvvxk19mmf25krj1cj1ksb53fsjw64r-really-safe-money-gen-0.0.0.0 /nix/store/hcj2bk6wxsjr44v2k3xq5qq5dnwb09qw-really-safe-money-gen-0.0.0.0-doc /nix/store/lmgf6r68i0mja2j1zd84pwwfjq9hwlsq-really-safe-money-gen-0.0.0.0-report
  2492. 1211.12 s [post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  2493. 1211.51 s [post-build-hook] copying 3 paths...
  2494. 1211.51 s [post-build-hook] copying path '/nix/store/hcj2bk6wxsjr44v2k3xq5qq5dnwb09qw-really-safe-money-gen-0.0.0.0-doc' to 'https://cache.staging.nix-ci.com'...
  2495. 1211.51 s [post-build-hook] copying path '/nix/store/lmgf6r68i0mja2j1zd84pwwfjq9hwlsq-really-safe-money-gen-0.0.0.0-report' to 'https://cache.staging.nix-ci.com'...
  2496. 1211.70 s [post-build-hook] copying path '/nix/store/cdvvxk19mmf25krj1cj1ksb53fsjw64r-really-safe-money-gen-0.0.0.0' to 'https://cache.staging.nix-ci.com'...
  2497. 1212.66 s [post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  2498. 1213.05 s [post-build-hook] copying 1 paths...
  2499. 1213.05 s [post-build-hook] copying path '/nix/store/k6wpllr0zwnzx7ijvg6z0nkwcap674yn-really-safe-money-gen-0.0.0.0.drv' to 'https://cache.staging.nix-ci.com'...
  2500. 1213.34 s Progress: 7 of 8 built