[WIP] stylish-haskell plugin#1618
[WIP] stylish-haskell plugin#1618lukasz-golebiewski wants to merge 21 commits intohaskell:masterfrom
Conversation
Co-Authored-By: Avi Dessauer <avi.the.coder@gmail.com>
Co-Authored-By: Avi Dessauer <avi.the.coder@gmail.com>
|
I see that jobs for older stack/cabal stacks are failing because of absence of |
|
@lukasz-golebiewski Add |
| - hlint-2.2.8 | ||
| - hsimport-0.11.0 | ||
| - HsYAML-0.2.1.0 | ||
| - HsYAML-aeson-0.2.0.0 |
There was a problem hiding this comment.
You'll likely also need to add these to each stack.yaml and to haskell-ide-engine.cabal
There was a problem hiding this comment.
This doesn't seem to be working :-(
There was a problem hiding this comment.
I have to note that HsYAML is using GPL and the project licensing would be affected (not sure if it already is using libs with gpl)
There was a problem hiding this comment.
Personally i am fine with linking a gpl lib but the project will have two yaml libs and maybe we should use only one (not in this pr)
There was a problem hiding this comment.
I'm also okay with GPL, however stylish-haskell just made the switch, we could ask them to switch back haskell/stylish-haskell@498d676
There was a problem hiding this comment.
I am not sure "fine" is the right wording, since we are not GPL, we do not really have the rights to using it, right? On the other hand, I doubt, too, that someone will sue us.
There was a problem hiding this comment.
Hey, I wasn't aware that HsYAML was GPL-licensed. I don't think it's a problem -- it's fine for a BSD3 application to depend on a GPL-licensed library. It does not affect the code of haskell-ide-engine or stylish-haskell, those remain BSD3-licensed. However, the compiled binary must adhere to the GPL license (which seems fine in this case). This is similar to e.g. the fact that GHC links against libgmp by default.
But, if this worries you, I am happy to add a flag to stylish-haskell that makes it pick the C-based yaml as a dependency rather than HsYAML?
There was a problem hiding this comment.
Afaiu we can use it without changing our licenses files but the license for hie artifacts linking HsYaml becomes auto gpl. So anybody could issue someone who doesnt respect the gpl resdistributing hie.
There was a problem hiding this comment.
IANAL, if you argue that this is indeed just fine, I have nothing to say against it :)
There was a problem hiding this comment.
Ah. Assuming this is correct, this sounds totally reasonable.
|
@lukasz-golebiewski There are a few more version conflicts that need to be explicitly specified |
This reverts commit 9e59e29.
stack-8.4.4.yaml
Outdated
| - brittany-0.12.1.1 | ||
| - bytestring-trie-0.2.5.0 | ||
| - Cabal-3.0.0.0@sha256:1ba37b8d80e89213b17db7b8b9ea0108da55ca65f8c0cbb7433881a284c5cf67,26027 | ||
| - Cabal-2.4.1.0 |
There was a problem hiding this comment.
This does not seem correct?
There was a problem hiding this comment.
Stack recommended to set cabal version explicitly in https://circleci.com/gh/haskell/haskell-ide-engine/13311
If this is incorrect then I don't think I know how to proceed with this
There was a problem hiding this comment.
Does this compile? Because, iirc, stack snapshots are bundled with cabal-install and Cabal versions, iirc, setting a custom Cabal version for a snapshot may not succeed. If it compiles, everything is fine.
There was a problem hiding this comment.
Not yet, I'm slowly bisecting towards the cabal version satisfying every dependency
There was a problem hiding this comment.
And back to stack suggesting Cabal-3.0.0.0. Looks like stylish 0.10.0.0 can't be used here and below because of conflicting dependencies :-(
|
Is there any news? |
No description provided.