How to pretty print record types?

Viewed 1185

Given a record like Example {a = "a", b = "b", c = "c"} how can I pretty print any record type like this to make it easier to read (more human friendly)?

Somthing like:

Example {
  a = "a"
, b = "b"
, c = "c"
}

would be ideal.

I've tried pPrint from the pretty-show package but this doesn't seem to output any different to show.

2 Answers
Related