Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation errors when using TypeFamilies #1781

Open
hellwolf opened this issue Jul 12, 2022 · 0 comments
Open

Indentation errors when using TypeFamilies #1781

hellwolf opened this issue Jul 12, 2022 · 0 comments

Comments

@hellwolf
Copy link

hellwolf commented Jul 12, 2022

I am using the default haskell-indentation-mode, it seems to me that the parser doesn't not understand associated type family/data family in general and tries to reindent everything from the beginning of the line after the first "type|data family" declaration.

Example:

import           Data.Kind (Type)

class A a where
  type family T1 a :: Type
  -- from here on until the end of type class, the indentation breaks
  type family T2 a :: Type
  f :: a -> T1 a -> T2 a

data AA

instance A AA where
  type T1 AA = String
  -- from here on until the end of type class, the indentation breaks
  type T2 AA = Int
  f _ = length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant