Closed drautzburg closed 9 years ago
It seems to have a problem with the random number generator
*AllData> show (mkStdGen 1)
"2 1"
*AllData> reify (mkStdGen 1)
Nothing
Indeed, "2 1" does not look like a standard Haskell value, so pretty-show does not understand it.
Basically, pretty-show will work as long as your datatypes have Show instances that are automatically derived or follow the same structure as the automatically derived instances, and otherwise it gives up, as it has no way to know how to interpret the input.
I'll have a look to see if I can relax the parser a bit so that it will also accept this sort of non-standard format, but no promises :-)
OK, generalizing the parser to support this pattern turned out to be fairly easy. I just uploaded a version to hackage (1.6.9) that should be able to handle this instance.
Works like a charm. Thanks
Usually ppShow did a good job for me, but on this show it does not format:
smaller parts are rendered correctly