This upgrades the stack resolver to LTS-22.9, and the corresponding GHC version to 9.6.4.
Changes
Resolver is update to lts-22.9 in stack.yaml files.
The package proto-lens-setup and its dependencies proto-lens-protoc and ghc-source-gen are not included in the LTS distribution, so specific versions from Hackage are pinned in the stack.yaml files.
The -fPIC compiler option is disabled on Windows, as it results in the compiled code crashing due to access violations. Position independent code is not used on Windows in any case. There is an open GHC issue that seems to be related: https://gitlab.haskell.org/ghc/ghc/-/issues/24016
TypeOperators is added to the default extensions. In future, this will be needed for using ~, and currently will generate a warning if not enabled.
Some imports are changed due to changes in library structure (notably, Control.Monad is explicitly imported, whereas it previously was implicitly imported through other monad modules).
In some cases where redundant constraint warnings were suppressed, this has been lifted. In other cases, the reason why they are suppressed is updated.
Checklist
[x] My code follows the style of this project.
[x] The code compiles without warnings.
[x] I have performed a self-review of the changes.
[x] I have documented my code, in particular the intent of the
hard-to-understand areas.
Purpose
Closes #1093
This upgrades the stack resolver to LTS-22.9, and the corresponding GHC version to 9.6.4.
Changes
proto-lens-setup
and its dependenciesproto-lens-protoc
andghc-source-gen
are not included in the LTS distribution, so specific versions from Hackage are pinned in the stack.yaml files.-fPIC
compiler option is disabled on Windows, as it results in the compiled code crashing due to access violations. Position independent code is not used on Windows in any case. There is an open GHC issue that seems to be related: https://gitlab.haskell.org/ghc/ghc/-/issues/24016TypeOperators
is added to the default extensions. In future, this will be needed for using~
, and currently will generate a warning if not enabled.Control.Monad
is explicitly imported, whereas it previously was implicitly imported through other monad modules).Checklist