AJChapman / formatting

Format strings type-safely with combinators
BSD 3-Clause "New" or "Revised" License
164 stars 39 forks source link

Add overlappable 'Buildable a => Buildable [a]' instance. #41

Closed k0001 closed 5 years ago

k0001 commented 6 years ago

The behavior of Buildable [Char] remains unchanged and ensured by tests.

k0001 commented 6 years ago

By the way, the reason why this is useful is because it allows Buildable to have out-of-the-box support for rendering lists, much like Show has out-of-the-box support for rendering lists, which drastically reduces the number of downstream instances one has to write.

k0001 commented 6 years ago

Also, this allows more specific instances that may have been written downstream to continue to work. So, this is a backwards compatible change.

chrisdone commented 5 years ago

Thanks! :muscle: Bumped to Hackage as 6.3.7.