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

Hackage Release / git tags #9

Open
erikkaplun opened this issue Dec 3, 2015 · 7 comments
Open

Hackage Release / git tags #9

erikkaplun opened this issue Dec 3, 2015 · 7 comments
Assignees

Comments

@erikkaplun
Copy link

I tried adding diagrams-ghcjs to my .cabal but it appears it cannot be auto-fetched as a dependency. Is that intentional? If yes, what is the best way to get diagrams-ghcjs installed into e.g. a Stack based project?

Alternatively, does one even need this package to use Diagrams from a GHCJS based project and render directly onto an HTML5 Canvas from Diagrams code running as JavaScript? I've gotten the sense the diagrams-html5 and diagrams-canvas packages are more about sending Javascript from server to browser via AJAX and "piping" it to a canvas, not rendering to a canvas directly within a browser "process".

@bergey bergey changed the title Is this package supposed to be installable from hackage? Hackage Release Dec 3, 2015
@bergey bergey changed the title Hackage Release Hackage Release / git tags Dec 3, 2015
@bergey
Copy link
Contributor

bergey commented Dec 3, 2015

Thanks for asking. Until recently, diagrams-ghcjs depended on ghcjs-canvas, which wasn't on Hackage, so I didn't see any benefit to a Hackage release. I think we still need ghcjs-base from git, so the same problem. If you're using stack, the solution is easy - add the git repo and a particular commit to the packages section. That's how stack.yaml in this repo pulls in ghcjs-base (ghcjs-jquery is only needed for the tests).

I think this or diagrams-reflex (which is even less mature) are the preferred ways to use Diagrams within a GHCJS program. diagrams-canvas runs it's own webserver IIRC; I've never used diagrams-html5.

@luite
Copy link
Member

luite commented Dec 3, 2015

ghcjs-base is installed by ghcjs-boot though, and should come with a GHCJS installation.

@erikkaplun
Copy link
Author

@bergey so then, do you reckon using Diagrams with GHCJS is even at least remotely suitable for production, as of currently?

@bergey bergey self-assigned this Dec 6, 2015
@bergey
Copy link
Contributor

bergey commented Dec 22, 2015

I'm waiting on ghcjs/ghcjs#452 before uploading to Hackage.

@bergey
Copy link
Contributor

bergey commented Dec 22, 2015

@eallik At least remotely =) I think it's about as suitable as most of the GHCJS libraries I've seen, right now.

@erikkaplun
Copy link
Author

I guess I will just have to let you know how it worked in production for me. :)

@dimsuz
Copy link

dimsuz commented Apr 18, 2016

@bergey ghcjs/ghcjs#452 got fixed, are there any other showstoppers?

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

4 participants