[elm-discuss] elm 0.17 install failing all of a sudden

2016-06-01 Thread William Bailey
Last night I upgraded my MAC laptop to elm 0.17. No problems. Today I'm doing the same on my iMAC. Install of binaries succeeded. But then in an empty directory: % elm package install Error: unable to find a set of packages that will work with your constraints It did create an elm-package.js

[elm-discuss] Re: elm 0.17 install failing all of a sudden

2016-06-01 Thread William Bailey
e.json file. I've reinstalled elm 0.17 twice now. I've confirmed /usr/local/bin/elm is the May 8 binary, same as on macbook. I don't understand why it's generating the wrong elm-package.json on my iMac. --bill On Wednesday, June 1, 2016 at 1:30:01 PM UTC-7, William Bai

[elm-discuss] Re: elm 0.17 install failing all of a sudden

2016-06-02 Thread William Bailey
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

[elm-discuss] In 0.17, what's the analog of Mouse.click for touch devices (ie. iPhone)

2016-06-13 Thread William Bailey
I've re-written the GUI for my bridge playing app (www.deepfinesse.com) in Elm and love it! I've developed it using evanc/elm-graphics (so Collage and Element) as opposed to HTML / SVG. Back in 0.16, I thought I saw a "touch" or maybe "tap" module which I assumed I'd be using for running the a

[elm-discuss] Eureka - Touch in 0.17!!

2016-07-08 Thread William Bailey
Every once in a while the blind squirrel finds the nut. First, to get a taste for what I’m implementing in Elm, hit: www.deepfinesse.com/demo Then hit the GO button, then the rotate icon a few times. It’s a bridge playing game. I began developing this in 0.16 and have it ported to 0.17

[elm-discuss] adding animations causes 100% CPU burn, fans go crazy, even when animations idle

2016-07-09 Thread William Bailey
I recently added animations to my game: deepfinesse.com/demo >From my testing, CPU is 100% even when nothing is animating. This seems to be a consequence of simply adding AnimationFrame.times to my subscriptions. CPU is still 100% if I do nothing but return an unchanged model when processing

[elm-discuss] Re: Eureka - Touch in 0.17!!

2016-07-09 Thread William Bailey
Thanks for the CPU burn pointer. I don't want to pollute the Touch issue here with that so I started a new thread. bill On Friday, July 8, 2016 at 3:41:26 PM UTC-4, William Bailey wrote: > > Every once in a while the blind squirrel finds the nut. First, to get a > tast

[elm-discuss] Re: Draft blog post - "How to Use Elm at Work" - looking for feedback

2016-07-09 Thread William Bailey
Oh dear. >> Elm promised to offer a nicer interface to creating web apps and isolate people from the insanity of HTML/CSS/JS This is exactly why I chose to go with Elm a couple months ago. I had no interest in becoming enough of an expert on HTML/CSS/JS to do a complex animated game in them.

Re: [elm-discuss] adding animations causes 100% CPU burn, fans go crazy, even when animations idle

2016-07-09 Thread William Bailey
That worked like a charm. Thanks! I changed subscriptions = handleSubs in App.program and added this. CPU not under control. handleSubs : Model -> Sub Msg handleSubs model = if model.liveAnims then Sub.batch [ Window.resizes WinResize , Mouse.moves MouseMove ,

[elm-discuss] adding animations causes 100% CPU and fan burn, even when nothings happening

2016-07-10 Thread William Bailey
I recently added animations to my card game: deepfinesse.com/demo -- 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 elm-discuss+unsubscr...@googlegroups.com. For m

[elm-discuss] handling URL params in ELM

2016-07-11 Thread William Bailey
I have a feeling this is a really stupid question but here goes. So I have this Elm card game app: deepfinesse.com/demo.html I'd like the card layout that shows up which is presently hardcoded in the Elm source to come from a URL param, ala: deepfinesse.com/demo.html?deal=AJ743.KQ2.7.984 (etc

[elm-discuss] Re: handling URL params in ELM

2016-07-11 Thread William Bailey
That seems like a promising lead, thanks. Although a couple hours in, and see how to use it to induce URL changes from within Elm (affecting browser history) and how to respond to changes when the user manually edit's the URL by hand. But in a bit of a chicken and egg quandary here as I have

[elm-discuss] Re: handling URL params in ELM

2016-07-13 Thread William Bailey
All good - phew. Thanks Peter! So it turns out the urlParser you hand to Navigation.program gets invoked on the initial URL before the call to init happens, and the output of urlParser feed into init. This was not obvious to me from the documentation nor the examples I found, which are more

[elm-discuss] Re: Set.fromList crashing

2016-07-14 Thread William Bailey
What's the paradigm for developers to setup an env that stays current with latest & greatest? I installed Elm 0.17 back when it was first released and just noticed via: % ls elm-stuff/packages/elm-lang/core 4.0.1 That I'm not running the latest version of core, despite actively building/using

[elm-discuss] Re: Set.fromList crashing

2016-07-14 Thread William Bailey
> > PS: I code in GO aka GOLANG a lot too and this has been an active area for > them for the last year. They call it "vendoring". I suppose that ideally there would be a way to auto-update to the latest bug-fix releases but major release updates (eg the move to 0.17 from 0.16) would need t

[elm-discuss] vscode elm not working?

2016-08-04 Thread William Bailey
Decided to give vscode with sbrink/vscode-elm extension a try today (previously using atom.io). It advertises auto-complete and hover on function to see signature but non of that is happening for me. Coloring works and I see elm options in the default config file, so it seems installed correct

[elm-discuss] elm-format vs gofmt

2016-08-06 Thread William Bailey
My frontend GUI is in ELM. My backend is in GO (aka golang). I love gofmt. Not everything is my taste but can easily live with it for advantages. elm-format makes some choices I just can't abide. Top of list, it insists on sticking TWO blank lines between the comment above a function and the

[elm-discuss] Re: elm-format vs gofmt

2016-08-07 Thread William Bailey
> > I almost hate myself for posting this, as format wars seem so pointless. > But I'd love to use elm-format as gofmt has been awesome for me. Here > goes: > {- comment -} does not work. Same vertical spacing insertion. {-| comment -} does work (comment remains adjacent to function bod

[elm-discuss] Re: Making imports more pleasant

2016-08-22 Thread William Bailey
For years I coded in Java using IntelliJ. It was super easy in that IDE to hover on any symbol, system or otherwise, and learn all about it. Or hit ctrl-B (eg) to drill into the source. Again, worked fine for system libraries and was really useful for seeing how the under-the-covers stuff wor

Re: [elm-discuss] Rename Just to Something, as the counterpart to Nothing?

2016-11-21 Thread William Bailey
type Maybe value = Some value | NoValue -- 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 elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://