Closed sol closed 7 years ago
I tried a couple of things but couldn't quite narrow it down.
Found it:
instance Show Hex where
showsPrec _ (Hex ba) =
map toUpper .
showHex' x1 .
showHex' x2 .
showHex' x3 .
showHex' x4
where
(x1, x2, x3, x4) = readBlock256 ba
showHex' x c = (pad $ showHex x "") ++ c
pad s = take (16 - l) (repeat '0') ++ s
where l = length s
map toUpper
on the difference list, WTF!
https://hub.darcs.net/michal.palka/tf-random/browse/src/System/Random/TF/Gen.hs#69
Apparently fixed upstream but not on Hackage?
https://hub.darcs.net/michal.palka/tf-random/issue/8#comment-20150502T195204
Apparently tf-random
is unmaintained.
Thx!
Steps to reproduce:
Expected output:
Actual output:
Note the all-uppercase
FOO
here.This also happens with the
Show
instance ofResult
, when it isFailure
everything afterusedSeed
will be all-uppercase, e.g.: