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

Parser errors for newtype GADTs #443

Open
riz0id opened this issue Jan 20, 2023 · 0 comments
Open

Parser errors for newtype GADTs #443

riz0id opened this issue Jan 20, 2023 · 0 comments

Comments

@riz0id
Copy link

riz0id commented Jan 20, 2023

Attempting to format a newtype with -XGADTSyntax or -XGADTs such as:

import Data.Kind

newtype T (a :: Type) :: Type where 
  T :: {unT :: a -> a} -> T a 

fails for stylish-haskell-0.14.3.0 with the following error:

CallStack (from HasCallStack):
  error, called at lib/Language/Haskell/Stylish/Step/Data.hs:463:5 in stylish-haskell-0.14.3.0:Language.Haskell.Stylish.Step.Data

The failure is due to this line.

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