elm-package says version 0.17 just like all the binaries.  So it is a 
mystery why the auto-gen of elm-package.json is sticking in the wrong 
versions for core.  But I just edited the JSON by hand and am unblocked.

I'm writing a bridge card game in elm.  First version in 0.16.  I really 
struggled with all the SIGNAL and foldp stuff.  I was nervous about moving 
to Cmd / Msg etc.  But it proved easy and I find the new paradigm much 
easier to grok intuitively.  I based those changes on the Mario in 0.17 
someone posted so it was easy.

One big chicken-and-egg problem I had with foldp was figuring out window 
dimensions as I needed to draw my card table to fit the window at init 
time, before any signals came in.  I couldn't figure out how to do this 
graceful so had to hack my old view function to check if the window was not 
initialized yet.

It's easy and graceful in 0.17 via:
App.program
    { init = (initialModel, Task.perform (\_ -> DoNothing) WinResize 
Window.size)


-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to