I want to add ViewPatterns extensions to my build and currently I do it by adding the following lines to package.yaml
ghc-options:
- -Wall
- -XViewPatterns
I get a warning:
Warning: Instead of 'ghc-options: -XViewPatterns' use 'extensions:
ViewPatterns'
But, when I add an extensions
field to package.yaml, I get the following:
WARNING: Ignoring unknown field "extensions" in package description
Also, I could not find any definition of extensions
in the official stack documentation.