tweag/ormolu

ormolu does not compile with ghc 9.6.1

Closed this issue · 2 comments

Describe the bug
ormolu does not compile with ghc 9.6.1

To Reproduce

 cabal install --lib ormolu
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.8.1.0 supports
'ghc' version < 9.6): /usr/local/bin/ghc is version 9.6.1
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.8.1.0 supports
'ghc' version < 9.6): /usr/local/bin/ghc is version 9.6.1
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: bytestring-0.11.4.0/installed-0.11.4.0 (user goal)
[__1] trying: ghc-lib-parser-9.6.1.20230312 (user goal)
[__2] next goal: ormolu (user goal)
[__2] rejecting: ormolu-0.5.3.0 (conflict: ghc-lib-parser==9.6.1.20230312,
ormolu => ghc-lib-parser>=9.4 && <9.5)
[__2] skipping: ormolu-0.5.2.0, ormolu-0.5.1.0, ormolu-0.5.0.1,
ormolu-0.5.0.0, ormolu-0.4.0.0, ormolu-0.3.1.0, ormolu-0.3.0.1,
ormolu-0.3.0.0, ormolu-0.2.0.0, ormolu-0.1.4.1, ormolu-0.1.4.0,
ormolu-0.1.3.1, ormolu-0.1.3.0, ormolu-0.1.2.0, ormolu-0.1.1.0,
ormolu-0.1.0.0, ormolu-0.0.5.0, ormolu-0.0.4.0, ormolu-0.0.3.1,
ormolu-0.0.3.0, ormolu-0.0.2.0 (has the same characteristics that caused the
previous version to fail: excludes 'ghc-lib-parser' version 9.6.1.20230312)
[__2] rejecting: ormolu-0.0.1.0 (conflict:
bytestring==0.11.4.0/installed-0.11.4.0, ormolu => bytestring>=0.2 && <0.11)
[__2] fail (backjumping, conflict set: bytestring, ghc-lib-parser, ormolu)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: ghc-lib-parser, ormolu, bytestring

Expected behavior
I expected it to compile

Environment

  • OS name + version: Mac OS 13.3 (Ventura)
  • Version of the code: ghc 9.6.1

Additional context

I get the following errors when I install with --allow-new:

 cabal install --lib ormolu --allow-new

Building library for ormolu-0.5.3.0..
[ 1 of 53] Compiling GHC.DynFlags     ( src/GHC/DynFlags.hs, dist/build/GHC/DynFlags.o, dist/build/GHC/DynFlags.dyn_o )

src/GHC/DynFlags.hs:52:19: error: [GHC-76037]
    Not in scope: type constructor or class ‘LlvmConfig’
   |
52 | fakeLlvmConfig :: LlvmConfig
   |                   ^^^^^^^^^^

...

Thanks, will be fixed by #983

mrkkrp commented

#983 is now merged. 0.6.0.0 with support for GHC 9.6.1 will be released soon.