Skip to content

GeneralisedNewtypeDeriving not recognised by stylish-haskell #295

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

Closed
newhoggy opened this issue Jul 28, 2020 · 2 comments
Closed

GeneralisedNewtypeDeriving not recognised by stylish-haskell #295

newhoggy opened this issue Jul 28, 2020 · 2 comments

Comments

@newhoggy
Copy link

newhoggy commented Jul 28, 2020

The British spelling GeneralisedNewtypeDeriving is not recognised by stylish-haskell, so stylish-haskell fails to format the source file when only the British spelling is used.

Language.Haskell.Stylish.Parse.parseModule: could not parse ./cardano-config/src/Cardano/TracingOrphanInstances/Shelley.hs: ParseFailed (SrcLoc "<unknown>.hs" 159 18) "GeneralizedNewtypeDeriving language extension is not enabled. Please add {-# LANGUAGE GeneralizedNewtypeDeriving #-} pragma at the top of your module."
@newhoggy
Copy link
Author

Work around

Add GeneralizedNewtypeDeriving to .stylish-haskell.yaml

@newhoggy newhoggy changed the title GeneralisedNewtypeDeriving crashes stylish-haskell GeneralisedNewtypeDeriving not recognised by stylish-haskell Jul 28, 2020
@jaspervdj
Copy link
Member

This should be fixed by #307, please reopen if it’s still happening?

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

2 participants