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

elm-server doesn't build because Language.Elm.toHtml is no longer exported #208

Closed
mwotton opened this issue Aug 10, 2013 · 7 comments
Closed

Comments

@mwotton
Copy link

mwotton commented Aug 10, 2013

No description provided.

@evancz
Copy link
Member

evancz commented Aug 10, 2013

elm-server 0.8 is not compatible with version 0.9 of the compiler. I'll sort this out as soon as I can.

Also, do you use elm-server as the primary way to develop? Just curious about how and when it gets used :)

@mwotton
Copy link
Author

mwotton commented Aug 10, 2013

@evancz I'm a Haskeller at campjs for the weekend - just trying Elm out as a way of nodding towards doing something vaguely javascripty :)

my ideal dev env would be something more like ghc-mod, but until i get that debugging with elm-server seems easiest.

(oh, other thing - I had to modify your pong code to get it to work with 0.8, and it still doesn't seem to work with 0.9 - what version is running at http://elm-lang.org/edit/examples/Intermediate/Pong.elm ?)

@evancz
Copy link
Member

evancz commented Aug 10, 2013

Cool, thanks for giving me that background info :) I'll try to get elm-server working again tonight.

Ah, until a couple minutes ago, only the dev branch was compatible with 0.9. I just pushed these updates to the master branch though. Does it work now?

@evancz
Copy link
Member

evancz commented Aug 10, 2013

Should be updated and fixed now. Can you cabal update ; cabal install elm-server and see if it works?

@mwotton
Copy link
Author

mwotton commented Aug 10, 2013

works like a charm, thanks :)

Wondering - do you have sourcemaps functionality planned for Elm? Poking
about in the compiler atm and wondering if it might be worth doing myself.

cheers
mark

On Sat, Aug 10, 2013 at 5:53 PM, Evan Czaplicki notifications@github.comwrote:

Should be updated and fixed now. Can you cabal update ; cabal install
elm-server and see if it works?


Reply to this email directly or view it on GitHubhttps://github.com//issues/208#issuecomment-22435831
.

A UNIX signature isn't a return address, it's the ASCII equivalent of a
black velvet clown painting. It's a rectangle of carets surrounding a
quote from a literary giant of weeniedom like Heinlein or Dr. Who.
-- Chris Maeda

@evancz
Copy link
Member

evancz commented Aug 11, 2013

Cool, I just modified it to actually show the error message in the browser. I'm planning to push this to Hackage tomorrow or Monday. In the meantime it lives in the master branch of this project. From the root directory, just run cd server ; cabal install

I am not planning to do sourcemaps. If you are interested, I am happy to give some intro notes on the parts of the compiler you'd probably care about. For starters, pretty much all the relevant code lives in Generate.JavaScript. I'm told this code can be better with some JS generation library, so maybe there is such a library that already works nicely for source maps.

@evancz
Copy link
Member

evancz commented Aug 22, 2013

Alright, this is all fixed and live in Hackage.

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