purescript-d3v4 icon indicating copy to clipboard operation
purescript-d3v4 copied to clipboard

Why do we have src/Colors.purs

Open jez opened this issue 8 years ago • 3 comments

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.

jez avatar Feb 09 '17 06:02 jez

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.

afcondon avatar Feb 09 '17 07:02 afcondon

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 [email protected]: 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.

jez avatar Feb 09 '17 08:02 jez

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

afcondon avatar Feb 09 '17 09:02 afcondon