mihaimaruseac / hindent

Haskell pretty printer
Other
561 stars 113 forks source link

Default associated type family gets deleted #897

Open jmcarthur opened 6 months ago

jmcarthur commented 6 months ago

Problem

Running hindent on a class that includes a default associated type family has the effect of deleting the default.

Input haskell

class Foo a where
  type Bar a
  type instance Bar a = ()

Expected output haskell

class Foo a where
  type Bar a
  type instance Bar a = ()

Actual output haskell

class Foo a where
  type Bar a