It turns out that SPJ's library isn't a Data::Dumper equivalent: it's more of a text-wrapper type thing, fmt/pr/fold (http://www.gnu.org/software/coreutils/manual/html_mono/coreutils.html#Formatting-file-contents)-style.
My current thoughts on the matter is that it might be possible to use Template Haskell to generate a pprint function from the show function for a class, adding an extra level of indentation whenever show calls itself recursively. Not sure if that would work, but it sounds worth a go. But still, compare to the simplicity of the Perl version :-(
no subject
My current thoughts on the matter is that it might be possible to use Template Haskell to generate a pprint function from the show function for a class, adding an extra level of indentation whenever show calls itself recursively. Not sure if that would work, but it sounds worth a go. But still, compare to the simplicity of the Perl version :-(