# ... more here...
default-extensions:
- OverloadedStrings
- NoImplicitPrelude
And the following module
module Lib
( greet
) where
import Protolude
greet :: Text -> Text
greet name = "Hello, " <> name <> "!"
intero-neovim incorrectly detects the strings as [Char] instead of Text, highlighting them as a type error.
If I add the LANGUAGE prama to the file the type is correctly detected. Is it possible to have the type correctly detected while still using package.yaml's default-extensions instead of the prama in every file?
Hello!
Given the following package.yml
And the following module
intero-neovim incorrectly detects the strings as
[Char]
instead ofText
, highlighting them as a type error.If I add the LANGUAGE prama to the file the type is correctly detected. Is it possible to have the type correctly detected while still using package.yaml's
default-extensions
instead of the prama in every file?