[elm-discuss] Re: A beginner issue with GeoJSON and type definitions

2016-09-22 Thread J. E. Marca
Good advice thanks. Last night I fought with random number generators, looks like tonight I'm going to be doing the same with the JSON decoders. And while I encourage you to create a GeoJSON decoder, I won't wait for it...the point of this exercise is to learn, and it would be really interes

[elm-discuss] Re: A beginner issue with GeoJSON and type definitions

2016-09-23 Thread J. E. Marca
On Thursday, September 22, 2016 at 8:53:36 PM UTC-7, Max Goldstein wrote: > > > Last night I fought with random number generators >> > > Have you seen my library, mgold/elm-random-pcg? It doesn't solve the basic > problem of "randomness is hard in a functional language" but it has better > docs a

[elm-discuss] Difficulty learning Elm

2016-09-26 Thread J. E. Marca
Hi all, I have a moderately complicated JSON object. A sample looks like: ``` { "118_192": { "Cloverdale P": { "sum_lane_miles": 0, "sum_single_unit_mt": 0, "sum_vmt": 57, "sum_combination_mt": 0 } } } ``` Thousands of such top level entries, wit

Re: [elm-discuss] Difficulty learning Elm

2016-09-27 Thread J. E. Marca
Hi thanks. I was missing the Result library entirely! On Tuesday, September 27, 2016 at 12:04:14 AM UTC-7, Peter Damoc wrote: > > When you do something that can fail in some way, Elm gives you back a type > that has the failure covered so that you can treat it properly. > The two most frequentl

Re: [elm-discuss] Difficulty learning Elm

2016-09-27 Thread J. E. Marca
... On Tuesday, September 27, 2016 at 12:04:14 AM UTC-7, Peter Damoc wrote: ... > You can read more in the Error handling section of the guide: > https://guide.elm-lang.org/error_handling/ > > > I read that on my first pass through the guide, and just re-read it. What I don't see in there is

[elm-discuss] I made Elm crash runtime...

2016-09-30 Thread J. E. Marca
Slowly climbing up the Elm learning curve, I made it crash runtime yesterday, and I just wanted to report to the mailing list. This may be a known issue, but as a novice I'm making all kinds of rookie mistakes. As such, when those rookie mistakes cause a runtime crash without a compiler compl

Re: [elm-discuss] I made Elm crash runtime...

2016-09-30 Thread J. E. Marca
On Friday, September 30, 2016 at 12:46:25 PM UTC-7, Noah Hall wrote: > > This is a known issue. See this -> > https://github.com/elm-lang/elm-compiler/issues/873 > > Sorry for the noise then. > It will be fixed in 0.18. > > Oh cool. I'll read up on the fix and see how it was/will be done.

[elm-discuss] list of types is missing from docs page at http://elm-lang.org/docs

2016-10-10 Thread J. E. Marca
Hi, I'm climbing the Elm learning curve, and just now hit a compiler complaint that I was giving a function a number when it wanted an Int. So I reached for a documentation page with the standard list of built-in types...and couldn't find it. It would be great if there was a link on the main d

[elm-discuss] Another documentation item I think is needed

2016-10-10 Thread J. E. Marca
Also, while I am bothering all of you seasoned Elm pros, I just started using Array today because I needed to access numbered elements in a list. It took me a while before I "discovered" Array, rather than List. I noticed that on the javascript comparison page (http://elm-lang.org/docs/from

[elm-discuss] Re: Another documentation item I think is needed

2016-10-11 Thread J. E. Marca
Thanks for the reply... On Tuesday, October 11, 2016 at 4:36:47 AM UTC-7, Wouter In t Velt wrote: > > The comparison page you refer to is more a high-level comparison between > javascript and elm syntax. > It does not look like it is intended to be in-depth. > > I agree it would be useful to have