Language extensions in hspec/cabal are ignored
-
Bug description : Language extensions that are specified in the project configuration are ignored by the plugin
-
Observed behaviour :
deriving (Functor)
shows as error in VS Code even thoughDeriveFunctor
extension is specified inpackage.yaml
and the project compiles fine. -
Expected behaviour : Plugin should not display error
-
OS: macos
-
Plugin (ghc, stack, intero and haskero) version and VSCode version used : haskero 1.3.1 intero 0.1.26 ghc 8.2.2 vscode January 2018
-
Steps to reproduce:
-
add
DeriveFunctor
topackage.yaml
or<project>.cabal
default-extensions
-
start VS Code with project
-
define a type using
deriving (Functor)
in your source -
Functor
is underlined in red and the number of errors in the file is one more than you expect
The default-extensions key is generated by HPack above but the problem occurs even if I hand-roll the configuration using commas.