haskell/haskell-ide-engine

Automatic extension detection from package.yaml for Floskell

Open

#1,506 opened on Dec 29, 2019

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Haskell (205 forks)batch import
good first issue

Repository metrics

Stars
 (2,358 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I have several extensions enabled in my package.yaml file in the default-extensions field (e.g. DerivingStrategies), so floskell fails to parse the source file (on seeing deriving stock for example) and reports a syntax error.

Is there any possibility that we automatically detect the default-extensions field in package.yaml file and pass them to floskell? Or perhaps by default enabling some extensions that in general don't break otherwise well-formed programs (e.g. DerivingStrategies, StandaloneDeriving, etc.)?

Contributor guide