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

building ghcup with ghc-9.6/transformers-0.6 #1129

Closed
juhp opened this issue Sep 18, 2024 · 2 comments
Closed

building ghcup with ghc-9.6/transformers-0.6 #1129

juhp opened this issue Sep 18, 2024 · 2 comments

Comments

@juhp
Copy link
Contributor

juhp commented Sep 18, 2024

I got close to be able to cabal build Hackage ghcup-0.1.30 with ghc-9.6 (ie close to lts-22 level package set), until I hit:

lib/GHCup/Utils/Parsers.hs:141:33: error: [GHC-39999]
    • No instance for ‘GHC.Base.Alternative (Either String)’
        arising from a use of ‘<|>’
    • In the first argument of ‘(<|>)’, namely
        ‘second ToolDay (dayParser s') <|> second ToolTag (tagEither s')’
      In the expression:
        second ToolDay (dayParser s') <|> second ToolTag (tagEither s')
          <|> second GHCVersion (ghcVersionEither s')
      In an equation for ‘ghcVersionTagEither’:
          ghcVersionTagEither s'
            = second ToolDay (dayParser s') <|> second ToolTag (tagEither s')
                <|> second GHCVersion (ghcVersionEither s')
    |
141 |   second ToolDay (dayParser s') <|> second ToolTag (tagEither s') <|> second GHCVersion (ghcVersionEither s')
    |                                 ^^^

Maybe related: https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.6#transformers-06-error-a--alternative-either-a-and-error-a--monadplus-either-a-instances-removed

@juhp juhp changed the title building ghcup with ghc-9.6/mtl-2.3/transformers-0.6 building ghcup with ghc-9.6/transformers-0.6 Sep 18, 2024
@hasufell
Copy link
Member

See #1127

@juhp
Copy link
Contributor Author

juhp commented Sep 19, 2024

Thanks - ed0fd9b seems to do the trick for me.

@juhp juhp closed this as completed Sep 19, 2024
juhp added a commit to fedora-haskell/ghcup that referenced this issue Sep 19, 2024
juhp added a commit to fedora-haskell/ghcup that referenced this issue Sep 19, 2024
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

2 participants