-
Notifications
You must be signed in to change notification settings - Fork 63
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
Convert between stack/cabal naming conventions #120
Comments
See sample files in haskell/haskell-ide-engine#1533 |
Is there any specification for both of these formats? |
I suspect it is a case of reading the code. Best case is it will be in the documentation, but I am not holding my breath. |
Couldn't find it in the documentation but relevant code can be found here (stack, cabal).
while cabal uses the following syntax:
|
@sureyeaah nice resume, i will use for reference too 😄 |
@jneira thanks, would be great to document this somewhere. I could share this via a blog post maybe after I understand it more. Also Cabal lets you use the component kind "flib" for foreign libraries IIUC. |
Well, it is documented but it seems it is not easily discoverable:
Oh yeah i forgot them (i've never used them) |
It's good to document this but I'm still not convinced it's something which needs to be "fixed" in the library. |
I'd rather it was fixed in stack/cabal, but given how easy it is to shim between them, seems useful to have in hie-bios so people can experiment with stack/cabal quickly without running into the obvious bug. |
@jneira I should have searched the docs a bit better. Still got to read some code :) |
Well, at least some validation would be great ("you are using wrong syntax for targets, see [link] of [build-tool] for reference"), even if translation ends up being tricky |
The hie-bios README gives the following two examples
They are both referring to the library component in
haskell-ide-engine
, but stack and cabal have different naming conventions for them.If I have a complex multi-cradle, such as
I would ideally like to just replace
stack
withcabal
on the second line and have it continue to work.Can we do some kind of implicit name translation for this case?
The text was updated successfully, but these errors were encountered: