haskell/haskell-ide-engine

Automatic extension detection from package.yaml for Floskell

Open

#1506 aperta il 29 dic 2019

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Haskell (205 fork)batch import
good first issue

Metriche repository

Star
 (2358 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.)?

Guida contributor