atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Pass language extensions from cabal to hlint #110

Open dpwiz opened 8 years ago

dpwiz commented 8 years ago

hlint tries to parse quasiquoted content as haskell code and warns about parsing errors everywhere. It is possible with -X option calm it down, but there's no setting to configure this.

Even better, if hlint could receive language options collected from cabal and module automatically. UPD: Hmm. Hlint gets options from module header, but not cabal...

lierdakil commented 8 years ago

Yes. This is mostly a ghc-mod problem. I'm aware of it, but didn't manage to get myself to fix it yet. Workaround for the time being is specifying flags in module header...