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

Fails to build with GHC 9.2.1 #583

Closed
2 tasks done
arjunkathuria opened this issue Mar 2, 2022 · 5 comments · Fixed by #584
Closed
2 tasks done

Fails to build with GHC 9.2.1 #583

arjunkathuria opened this issue Mar 2, 2022 · 5 comments · Fixed by #584

Comments

@arjunkathuria
Copy link

Problem

hindent fails to build with the new 9.2.1 GHC

  • I checked the issue tracker for existing issues about this problem.
  • I'm using the latest version of hindent.

output of the error with cabal install hindent

Failed to build hindent-5.3.2.
Build log (
/home/arjun/.cabal/logs/ghc-9.2.1/hindent-5.3.2-de470b0284a3a0b7cfe4133b121ae750901eb61e4d57dc19c1c629ac31d49982.log
):
Configuring library for hindent-5.3.2..
Preprocessing library for hindent-5.3.2..
Building library for hindent-5.3.2..
[1 of 5] Compiling HIndent.CabalFile ( src/HIndent/CabalFile.hs, dist/build/HIndent/CabalFile.o, dist/build/HIndent/CabalFile.dyn_o )

src/HIndent/CabalFile.hs:50:12: error:
    • Couldn't match type: [Char]
                     with: Distribution.Utils.Path.SymbolicPath
                             Distribution.Utils.Path.PackageDir
                             Distribution.Utils.Path.SourceDir
      Expected: Distribution.Utils.Path.SymbolicPath
                  Distribution.Utils.Path.PackageDir
                  Distribution.Utils.Path.SourceDir
                -> Bool
        Actual: FilePath -> Bool
    • In the first argument of ‘any’, namely ‘inDir’
      In the first argument of ‘($)’, namely ‘any inDir’
      In the expression: any inDir $ hsSourceDirs bi
   |
50 |     in any inDir $ hsSourceDirs bi
   |            ^^^^^
cabal: Failed to build hindent-5.3.2 (which is required by exe:hindent from
hindent-5.3.2). See the build log above for details.
@uhbif19
Copy link
Contributor

uhbif19 commented May 9, 2022

Same with GHC 8.10.7.

Looks like problem is with breaking API changes in Cabal 3.6, 3.4 should work (which I have not tested though).

@uhbif19
Copy link
Contributor

uhbif19 commented Jun 16, 2022

@mihaimaruseac Could you please add this to new hackage release?

@mihaimaruseac
Copy link
Owner

I'll do a release shortly. Travelling at the moment, sadly :(

@mihaimaruseac
Copy link
Owner

Waiting for #588 and then I'll do a release.

@mihaimaruseac
Copy link
Owner

And done, https://github.com/mihaimaruseac/hindent/releases/tag/v5.3.3 and https://hackage.haskell.org/package/hindent-5.3.3

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

Successfully merging a pull request may close this issue.

3 participants