January 2018

S M T W T F S
  123456
78910111213
14151617181920
21222324252627
28293031   

Style Credit

Expand Cut Tags

No cut tags
Thursday, October 26th, 2006 06:48 pm (UTC)
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 :-(

Reply

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting