vscode-haskell-linter icon indicating copy to clipboard operation
vscode-haskell-linter copied to clipboard

Feature: -X --language=

Open ricksanchez opened this issue 8 years ago • 3 comments

It would be nice to be able to add this parameter --language=. Without this, it is annoying to have quasiquoters in a file. A known work around is to add {-# LANGUAGE QuasiQuotes #-} at the beginning of every file where it is needed, but it becomes redundant when using cabal/stack

ricksanchez avatar May 30 '17 20:05 ricksanchez

The same applies to -XTypeApplications. hlint doesn't work without these settings as well. It would be really nice to have this feature implemented!

chshersh avatar May 24 '19 09:05 chshersh

Yes, I just hit this limitation with Arrows. I'd prefer that the extension automatically detect my active extensions from my .cabal file, but I'd also be satisfied with the ability to pass the -X flag (ideally on a per-project basis, but I could live with a global setting).

elldritch avatar Jun 30 '20 08:06 elldritch

using a .hlint.yaml file in the root of the project allows for this usage

https://github.com/ndmitchell/hlint/blob/master/README.md#customizing-the-hints

BiscuitCookies avatar Jan 20 '23 00:01 BiscuitCookies