-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support GHC 9.2 #305
Comments
Now that 9.2.1 is officially out, it'd be really nice to have this release. Here's what I'm seeing when trying to compile with 9.2.1:
|
Just to clarify, I'm not a
|
This was referenced Oct 31, 2021
andreasabel
added a commit
to andreasabel/doctest
that referenced
this issue
Oct 31, 2021
With this commit, based on Ryan Scott's patch, building with ``` cabal v1-install --enable-tests --allow-newer=hsc2hs:base --allow-newer=ghc-paths:Cabal cabal v1-test ``` the tests pass except for the `TemplateHaskell` ones (see below). This could be due to some commented out code in `src/Extract.hs`, cutting out the type-checking phase: ```diff - mods' <- if needsTemplateHaskellOrQQ mods then enableCompilation mods else return mods + --mods' <- if needsTemplateHaskellOrQQ mods then enableCompilation mods else return mods - let sortedMods = flattenSCCs (topSortModuleGraph False mods' Nothing) - reverse <$> mapM (loadModPlugins >=> parseModule >=> typecheckModule >=> loadModule) sortedMods + let sortedMods = flattenSCCs +#if __GLASGOW_HASKELL__ >= 901 + $ filterToposortToModules +#endif + $ topSortModuleGraph False mods Nothing + reverse <$> mapM (loadModPlugins >=> parseModule) sortedMods ``` Test failure: ``` test/extract/th/Foo.hs:8:7: warning: [-Woperator-whitespace-ext-conflict] The prefix use of a ‘$’ would denote an untyped splice were the TemplateHaskell extension enabled. Suggested fix: add whitespace after the ‘$’. | 8 | foo = $(bar) | ^ test/extract/th/Foo.hs:8:7: error: parse error on input ‘$’ Perhaps you intended to use TemplateHaskell | 8 | foo = $(bar) | ^ Failures: test/ExtractSpec.hs:91:5: 1) Extract, extract (regression tests), works with a module that splices in an expression from an other module uncaught exception: ExitCode ExitFailure 1 To rerun use: --match "/Extract/extract (regression tests)/works with a module that splices in an expression from an other module/" Randomized with seed 107198347 ```
andreasabel
added
ghc-9.2
info needed
More information needed from issue reporter
and removed
info needed
More information needed from issue reporter
labels
Oct 31, 2021
This was referenced Nov 1, 2021
andreasabel
added a commit
that referenced
this issue
Nov 7, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Migration code might be at: https://gitlab.haskell.org/ghc/head.hackage/-/blob/master/patches/doctest-0.18.1.patch by @RyanGlScott (btw, it would be great if you opened a PR with the migrating patch...)
UPDATE: Blocked by
Blocking:
The text was updated successfully, but these errors were encountered: