Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

[WIP] stylish-haskell plugin#1618

Open
lukasz-golebiewski wants to merge21 commits intohaskell:master
base:master
Choose a base branch
Loading
fromlukasz-golebiewski:stylish-support

Conversation

lukasz-golebiewski
Copy link
Member

No description provided.

Co-Authored-By: Avi Dessauer <avi.the.coder@gmail.com>
Co-Authored-By: Avi Dessauer <avi.the.coder@gmail.com>
@lukasz-golebiewski
Copy link
MemberAuthor

I see that jobs for older stack/cabal stacks are failing because of absence ofstylish-haskell-0.10.0.0. Is it possible to add a plugin only starting from the currently latest stack/cabal version?

@Avi-D-coder
Copy link
Collaborator

@lukasz-golebiewski Add- stylish-haskell-0.10.0.0 to eachstack-*.yaml and a version bound inhaskell-ide-engine.cabal.

@@ -26,9 +26,12 @@ extra-deps:
- hie-bios-0.3.2
- hlint-2.2.8
- hsimport-0.11.0
- HsYAML-0.2.1.0
- HsYAML-aeson-0.2.0.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

You'll likely also need to add these to eachstack.yaml and tohaskell-ide-engine.cabal

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This doesn't seem to be working :-(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

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)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

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)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm also okay with GPL, however stylish-haskell just made the switch, we could ask them to switch backhaskell/stylish-haskell@498d676

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

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 ofhaskell-ide-engine orstylish-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 againstlibgmp by default.

But, if this worries you, I am happy to add a flag tostylish-haskell that makes it pick the C-basedyaml as a dependency rather thanHsYAML?

Copy link
Member

@jneirajneiraFeb 8, 2020
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

IANAL, if you argue that this is indeed just fine, I have nothing to say against it :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Ah. Assuming this is correct, this sounds totally reasonable.

@Avi-D-coder
Copy link
Collaborator

@lukasz-golebiewski There are a few more version conflicts that need to be explicitly specified

@@ -12,7 +12,7 @@ extra-deps:
- bifunctors-5.5.6
- brittany-0.12.1.1
- bytestring-trie-0.2.5.0
- Cabal-3.0.0.0@sha256:1ba37b8d80e89213b17db7b8b9ea0108da55ca65f8c0cbb7433881a284c5cf67,26027
- Cabal-2.4.1.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This does not seem correct?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Stack recommended to set cabal version explicitly inhttps://circleci.com/gh/haskell/haskell-ide-engine/13311
If this is incorrect then I don't think I know how to proceed with this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Does this compile? Because, iirc, stack snapshots are bundled withcabal-install andCabal versions, iirc, setting a custom Cabal version for a snapshot may not succeed. If it compiles, everything is fine.

lukasz-golebiewski reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Not yet, I'm slowly bisecting towards the cabal version satisfying every dependency

fendor reacted with heart emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

And back to stack suggestingCabal-3.0.0.0. Looks like stylish0.10.0.0 can't be used here and below because of conflicting dependencies :-(

@Ailrun
Copy link
Member

Is there any news?

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@jneirajneirajneira left review comments

@jaspervdjjaspervdjjaspervdj left review comments

@fendorfendorfendor left review comments

@Avi-D-coderAvi-D-coderAvi-D-coder requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

7 participants
@lukasz-golebiewski@Avi-D-coder@Ailrun@jneira@jaspervdj@fendor@EncodePanda

[8]ページ先頭

©2009-2025 Movatter.jp