Skip to content
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

Build failure on GHC 9.0.1 on macOS #107

Closed
brightly-salty opened this issue Feb 7, 2021 · 3 comments
Closed

Build failure on GHC 9.0.1 on macOS #107

brightly-salty opened this issue Feb 7, 2021 · 3 comments

Comments

@brightly-salty
Copy link

I encountered the following error when running stack install apply-refact:

apply-refact        > /private/var/folders/2s/gzz0f5_n20g1pc2mnnbf_1c40000gn/T/stack-242b9b3cdfbd8b5c/apply-refact-0.9.0.0/src/Refact/Internal.hs:405:53: error:
apply-refact        >     • Variable not in scope: noExt :: NoExt
apply-refact        >     • Perhaps you meant one of these:
apply-refact        >         ‘GHC.noExt’ (imported from GHC),
apply-refact        >         data constructor ‘NoExt’ (imported from HsSyn)
apply-refact        >       Perhaps you want to remove ‘noExt’ from the explicit hiding list
apply-refact        >       in the import of ‘HsSyn’ (src/Refact/Internal.hs:74:1-38).
apply-refact        >     |
apply-refact        > 405 |           fakeExpr = GHC.L (getLoc new) (GHC.VarPat noExt new)
apply-refact        >     |                                                     ^^^^^
apply-refact        >
apply-refact        > /private/var/folders/2s/gzz0f5_n20g1pc2mnnbf_1c40000gn/T/stack-242b9b3cdfbd8b5c/apply-refact-0.9.0.0/src/Refact/Internal.hs:561:68: error:
apply-refact        >     • Variable not in scope: noExt :: NoExt
apply-refact        >     • Perhaps you meant one of these:
apply-refact        >         ‘GHC.noExt’ (imported from GHC),
apply-refact        >         data constructor ‘NoExt’ (imported from HsSyn)
apply-refact        >       Perhaps you want to remove ‘noExt’ from the explicit hiding list
apply-refact        >       in the import of ‘HsSyn’ (src/Refact/Internal.hs:74:1-38).
apply-refact        >     |
apply-refact        > 561 |           withoutLocalBinds = setLocalBind (noLoc (EmptyLocalBinds noExt)) xvald origBind newLoc origMG locMG
apply-refact        >     |                                                                    ^^^^^
apply-refact        >
Completed 31 action(s).

--  While building package apply-refact-0.9.0.0 (scroll up to its section to see the error) using:
      /Users/cadenhaustein/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.0.1.0 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1

ghc -V returns The Glorious Glasgow Haskell Compilation System, version 9.0.1, and stack --version returns Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0

I am on macOS Big Sur

@brightly-salty brightly-salty changed the title Build bug on GHC 9.0.1 on macOS Build failure on GHC 9.0.1 on macOS Feb 7, 2021
@zliu41
Copy link
Collaborator

zliu41 commented Feb 21, 2021

GHC 9.0.1 has just been released and is not yet supported by all libraries apply-refact depends on (e.g., ghc-exactprint). I'll start working on 9.0.1 support once all upstream libraries support it.

@anka-213
Copy link

This was fixed in #110

@andreasabel
Copy link

@brightly-salty @zliu41 @mpickering please close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants