People who care about the exact version should set it anyway, and using the default one means that we get much better cache hits on the CI (so less CI time).
Make ormolu the same version as the one used in hls
There can be a discrepancy between haskellPackages.ormolu and the ormolu used by haskellPackages.haskell-language-server. Having that means that there can be a discrepancy between how the lsp will format code and how the cli tool will.
Fix that by taking (by default) ormolu from the closure of haskell-language-server rather than directly from the package set.
Use the default haskell package set by default
People who care about the exact version should set it anyway, and using the default one means that we get much better cache hits on the CI (so less CI time).
Make ormolu the same version as the one used in hls
There can be a discrepancy between
haskellPackages.ormolu
and theormolu
used byhaskellPackages.haskell-language-server
. Having that means that there can be a discrepancy between how the lsp will format code and how the cli tool will.Fix that by taking (by default) ormolu from the closure of
haskell-language-server
rather than directly from the package set.