Closed alexpeits closed 5 years ago
Ormolu can format this:
{-# LANGUAGE TypeFamilies #-} type family TF a b :: result where TF a b = Int
but not this:
{-# LANGUAGE TypeFamilies #-} type family TF a b = result where TF a b = Int
Both are accepted by ghc (e.g. loading them in ghci). The syntax doesn't make a difference but it's required for usage with TypeFamilyDependencies.
TypeFamilyDependencies
Command run: ormolu -d <filename>
ormolu -d <filename>
Output:
warnings: parse result: comment stream: AST of input and AST of formatted code differ. at TF.hs:2:20-27 Please, consider reporting the bug.
This is now fixed.
That was quick, thanks!
Ormolu can format this:
but not this:
Both are accepted by ghc (e.g. loading them in ghci). The syntax doesn't make a difference but it's required for usage with
TypeFamilyDependencies
.Command run:
ormolu -d <filename>
Output: