Skip to content

GHC 8.12 (master) wants RankNTypes pragma in Distribution/Client/Sandbox.hs #6841

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

Closed
vdukhovni opened this issue May 23, 2020 · 1 comment
Closed

Comments

@vdukhovni
Copy link

Distribution/Client/Sandbox.hs:713:7: error:
    • Illegal qualified type:
        GHC.Stack.Types.HasCallStack => IO WereDepsReinstalled
      Perhaps you intended to use RankNTypes
    • In the expansion of type synonym ‘Distribution.Compat.Stack.WithCallStack’
      In the expansion of type synonym ‘Cabal-3.3.0.0:Distribution.Compat.Prelude.IO’
      When checking the inferred type
        topHandler' :: Cabal-3.3.0.0:Distribution.Compat.Prelude.IO
                         WereDepsReinstalled
                       -> IO WereDepsReinstalled
    |       
713 |       topHandler' = topHandlerWith $ \_ -> do
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

Enabling the pragma resolves the issue (assuming not a GHC bug).

@phadej
Copy link
Collaborator

phadej commented May 24, 2020

Please make a PR.

EDIT: as this is cabal-install (not Cabal) issue. This is not high-priority.

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

No branches or pull requests

3 participants