Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Use cabal-helper 1.0 #26
Use cabal-helper 1.0 #26
Changes from 19 commits
52940fb
26d0ddd
a1bac07
294c401
52b60ba
ae844a0
7def514
799bfd6
408b0b5
2fdcb3a
c41eed0
2ffb17e
b72e606
91a56b0
b28e944
c84b33f
ed6d66b
83c5090
cc40b6f
7e7bd1d
92add4e
c45714e
0517eaa
97e6617
b775f13
b4f2326
9ceec1e
4309653
9ee8156
232e7d6
3ed7833
a19ff9c
4a80ec3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this dependency used for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ghc-project-types, which depends on c-h and hie-plugin-api depends on https://github.com/mpickering/haskell-ide-engine/blob/hie-bios/hie-plugin-api/Haskell/Ide/Engine/Ghc.hs#L301 which is exposed in
ghc-project-types
and HaRe uses this function.We need this ghc-mod dep, because c-h has a minor change in the API. The diff in
ghc-mod
has like 3 changes, like, bumping c-h version, removing unknown type and adding instances for some type.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can eventually move
ghc-project-types
into another location if needed, possibly into hie itself.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I would love that! This would actually enable us to go to hackage, once c-h version 1.0 has been published!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixCradle
is only called when there is an explicit configuration but callsisStackCradle
which checks forCabal-Helper-Stack
? Seems strange.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I wanted to reuse code.
isStackCradle
can also be used bygetProjectGhcVersion
, and here, we know that if it is a stack cradle, it definitely has to be from the Bios cradle, which is the broken cradle. Do you think adding a separate function forfixCradle
would make more sense?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this then replace logic in hie-bios for implicitly finding a cradle with cabal-helper instead? Presumably cabal-helper handles this better then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it does and in theory, yes it does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really a good approach IMO, but probably an improvement over current behaviour.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but we somehow have to know the ghc version to use on a project, otherwise
HieWrapper
can not work.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not right now, since HIE cant work with it anyways. In the end, this would be a reimplementation of the code in hie-bios.