hindent icon indicating copy to clipboard operation
hindent copied to clipboard

Silently removes constraints on GADTs with record fields

Open koterpillar opened this issue 3 years ago • 0 comments

Problem

The constraints are lost when formatting with hindent.

  • [x] I checked the issue tracker for existing issues about this problem.
  • [x] I'm using the latest version of hindent.

Input haskell

data Test where
  Test :: Eq a => { test :: a } -> Test

Expected output haskell

data Test where
  Test :: Eq a => { test :: a } -> Test

Actual output haskell

data Test where
  Test :: { test :: a} -> Test

koterpillar avatar Dec 11 '21 11:12 koterpillar