Skip to content
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

Why do we have src/Colors.purs #4

Open
jez opened this issue Feb 9, 2017 · 3 comments
Open

Why do we have src/Colors.purs #4

jez opened this issue Feb 9, 2017 · 3 comments

Comments

@jez
Copy link

jez commented Feb 9, 2017

When I compile purescript-d3v4 on psc 0.10.6 I get this error in src/Colors.purs:

[1/4 UnusedImport] src/Colors.purs:3:1

  3  import Color (rgb, fromHexString, toHexString)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  The import of module Color is redundant

(I don't get this error on 0.9.x, but I'd like to use 0.10.x so that I can include it in another project.)

But the body of src/Colors.purs is empty, and just appears to be wrapping purescript-colors. Is there any reason why we want to explicitly wrap these three functions?

Also as far as I can tell, D3.Colors doesn't get imported in the project or the examples.

@afcondon
Copy link
Owner

afcondon commented Feb 9, 2017

I think i can make some time this morning to have a look at this, it would be good to have it compile on 0.10 for sure.

I'd say that's just a warning that became an error in later version of psc...but i'll look later and see.

@jez
Copy link
Author

jez commented Feb 9, 2017

I'd say that's just a warning that became an error in later version of psc...but i'll look later and see.

That's my guess as well.

it would be good to have it compile on 0.10 for sure.

I actually have it compiling over in my fork. I can even install it using bower (with a git@github.com: URL), and I'm using it for a school project.

I was going to wait to send the PR until I'd finished my project and confirmed that everything was working as intended, but you're free to check it out now if you want.

@afcondon
Copy link
Owner

afcondon commented Feb 9, 2017

Oh, that's nice to hear. I'm happy to take PR now or later either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants