lspitzner / brittany

haskell source code formatter
GNU Affero General Public License v3.0
690 stars 72 forks source link

Add type fam instance formatting #198

Closed ruhatch closed 5 years ago

ruhatch commented 5 years ago

This adds proper formatting of type family instances. It also refactors the common pattern found in signatures, type synonyms, and type family instances, into a single function.

eborden commented 5 years ago

Will this have support for closed type families?

ruhatch commented 5 years ago

@eborden No, this only adds support for the type instance ... syntax (as well as the type syntax inside type class instances).

lspitzner commented 5 years ago

Thanks!