Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Made hlint dependency properly depend on version of ghc. #1355

Merged
merged 4 commits into from
Aug 7, 2019
Merged

Made hlint dependency properly depend on version of ghc. #1355

merged 4 commits into from
Aug 7, 2019

Conversation

LinuxUser404
Copy link
Contributor

hie does not compile with earlier versions of hlint, so I bumped the version in the cabal file instead of stack file. I did not touch stack-8.2.2.yaml though it seems that build is broken anyway. As a bonus the whole thing builds with cabal v2-build.

@LinuxUser404
Copy link
Contributor Author

Hm, looks like I am missing something...

@fendor
Copy link
Collaborator

fendor commented Aug 6, 2019

I am not sure this change can succeed. If you force the version in haskell-ide-engine.cabal to be ==2.2.2, how could hie-8.2.2 still be built, since it uses the same cabal file and doesnt work with hlint == 2.2.2?
Thus, the version range of the cabal file, or am I overlooking something here?

@LinuxUser404
Copy link
Contributor Author

LinuxUser404 commented Aug 6, 2019

My change was a bit premature indeed... I initially thought the ghc-8.2 would fail regardless because
https://github.com/haskell/haskell-ide-engine/blob/master/src/Haskell/Ide/Engine/Plugin/ApplyRefact.hs
imports HLint4. I see now that it is conditional depending on the version of ghc. My cabal build was failing with 2.1.22 because of the same issue. Okay, so the problem I was trying to solve is failing builds with ghc-8.4 and above using old hlint. I think my next commit(ac627d0) should properly solve it.

@LinuxUser404 LinuxUser404 changed the title bumped hlint to 2.2.2 Made hlint dependency properly depend on version of ghc. Aug 6, 2019
@LinuxUser404
Copy link
Contributor Author

Done

@fendor fendor merged commit 93bb4f9 into haskell:master Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants