Re: [elm-discuss] Re: [elm-dev] Re: 0.17 Tasks vs Cmds

2016-12-11 Thread Janis Voigtländer
Mark, wow, a lot of material. I’m not able to digest all of it right now. But something quick I want to say, because I have the impression that there is a misunderstanding about the current state of tick batching support. This: Since I wasn’t proposing to get rid of subscriptions and since this

[elm-discuss] Re: Using flat-file JSON fixtures in elm-test and API tests

2016-12-11 Thread Richard Feldman
Thanks for the level of detail on this! Testing that things are wired up as expected is something I'd like to add to elm-test. I hadn't thought about the "shared fixtures" angle. It's definitely interesting! I'm also curious to see if anyone else has any similar use cases, and their

[elm-discuss] Re: Using flat-file JSON fixtures in elm-test and API tests

2016-12-11 Thread Oliver Searle-Barnes
This is a slightly different approach to the problem but thought you might be interested to see it, https://github.com/realestate-com-au/pact. On Monday, 12 December 2016 00:16:21 UTC+1, Jan Fornoff wrote: > > Hi everyone! > > I'd like to propose an idea that I've been playing with for a bit. >

Re: [elm-discuss] What do you think Elm's biggest shortcomings are when it comes to natively supported API's?

2016-12-11 Thread W. Brian Gourlie
With regards to working with binary files, what all does that entail? I assume support for typed-arrays and ArrayBuffer... anything else? On Sunday, December 11, 2016 at 3:59:08 PM UTC-6, Zinggi wrote: > > (Elm discuss is fine for this. There are almost no open discussions on elm > dev, as

[elm-discuss] Using flat-file JSON fixtures in elm-test and API tests

2016-12-11 Thread Jan Fornoff
Hi everyone! I'd like to propose an idea that I've been playing with for a bit. *Core problem:* Testing an API is not too challenging, and the tests are pretty fast too (e.g., controller and unit tests in Ruby on Rails). Verifying that an Elm frontend works is fairly straightforward as well

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Nick H
Maybe Bogdanp/elm-querystring could be helpful? On Sun, Dec 11, 2016 at 2:23 PM, Charlie Koster wrote: > I don't disagree with anything your wrote there, but I still have this > problem to deal with now. The path of least resistance happens to also be > the path that uses

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Charlie Koster
I don't disagree with anything your wrote there, but I still have this problem to deal with now. The path of least resistance happens to also be the path that uses query strings that are technically correct (nevermind about technically correct URLs). If a library comes along and makes parsing

Re: [elm-discuss] Re: Maximum call stack size exceeded while parsing generated code

2016-12-11 Thread Paul D
I hit the same problem after updating my project from 0.17 to 0.18. Breaks in Chromium (with or without debug mode), works in Firefox. My list has 650 items. I wouldn't expect to be hitting any upper limits with a list of that size. Breaking it up into smaller lists seems like more of a

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Witold Szczerba
There is nothing "technically" incorrect in e.g. 15 All the SPA I have seen had URLs like this, because this is just the browser who cares about that part of the location. This is why, when creating e.g.: next there is no need to hack browser to stop it from page reload as this is all about

Re: [elm-discuss] What do you think Elm's biggest shortcomings are when it comes to natively supported API's?

2016-12-11 Thread Zinggi
(Elm discuss is fine for this. There are almost no open discussions on elm dev, as these are usually a waste of everyone's time.) For me, these things would be nice to have: * WebAudio API * File upload * Working with binary files, e.g. parsing * Persistent cache, offering access to

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Charlie Koster
If I use hashes I now have to do manual work in order to use and parse query strings. Let's say I want to handle a query string such as "myPage?search=things=asc". If there's a hash in front of "myPage" the query string doesn't get interpreted as a search string by elm-lang/Navigation

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Witold Szczerba
Why is it so important that your links does not start with a `#` aka fragment part? Regards, Witold Szczerba On Sun, Dec 11, 2016 at 4:51 PM, Charlie Koster wrote: > I think I came up with a workable solution by adding a tiny bit of > abstraction. > > import Html exposing

Re: [elm-discuss] Re: [elm-dev] Re: 0.17 Tasks vs Cmds

2016-12-11 Thread Mark Hamburg
I get uncomfortable when I wave my hands too much, so here is a more concrete version of the task logic as sketched out in Lua. You can skip this unless you too were bothered by my handwaving in the previous message. Essentially, tasks are objects that can be invoked and we use different kinds of

Re: [elm-discuss] Re: Documentation storage : IN or OUT ?

2016-12-11 Thread Nick H
Yes, I'm curious what exactly your concerns are with the current documentation system. Seems like removing all documentation from the source code would just make it harder to notice mistakes. On Sun, Dec 11, 2016 at 9:52 AM, Max Goldstein wrote: > You're going to be

Re: [elm-discuss] Re: [elm-dev] Re: 0.17 Tasks vs Cmds

2016-12-11 Thread Mark Hamburg
Since I wasn't proposing to get rid of subscriptions and since this functionality is covered through subscriptions, my proposal arguably doesn't cause a problem. But that's just getting through the loophole of this specific example to dodge this particular case, so let me see if I can get straight

Re: [elm-discuss] What do you think Elm's biggest shortcomings are when it comes to natively supported API's?

2016-12-11 Thread W. Brian Gourlie
Per the elm-dev mailing list guidelines, I don't think this would be appropriate there. I'm also mostly interested in what other users feel are shortcomings. Perhaps if I had a curated list of things, I could try and bring it to the devs attention. On Sunday, December 11, 2016 at 10:09:55

[elm-discuss] Re: How to use Dict.empty?

2016-12-11 Thread Max Goldstein
If you can isolate an sscce of the bad error message, you can report it to the catalog . -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this

[elm-discuss] Re: How to use Dict.empty?

2016-12-11 Thread Bob Lee
Thanks for the quick replies. I found my mistake (my Dict declaration what missing a type). Coming from Haskell, I find Elm's error messages a Joy as they are normally right on the money. This was a rare instance where the error message had me barking up the wrong tree. Having said

[elm-discuss] How to use Dict.empty?

2016-12-11 Thread Wouter In t Velt
The error message from the compiler says that the third thing in your SomeRecordType should be a SomeOtherRecordType. But you are passing it an empty Dict. Which suggests that you have defined "SomeOtherRecordType" as something other than a Dict -- You received this message because you are

[elm-discuss] Re: Documentation storage : IN or OUT ?

2016-12-11 Thread Max Goldstein
You're going to be more specific about what concerns you about the current format. The Elm community likes to work together towards solutions, not get into debates. To that end, the tooling and conventions create a multi-layered system of documentation: As in any language, *code comments* are

[elm-discuss] Re: contentEditable and caret jumps

2016-12-11 Thread Lars Jacobsson
Yeah, the problem is that when we are talking about contentEditable divs and spans there is no "defaultValue" attribute! -- 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

[elm-discuss] How to use Dict.empty?

2016-12-11 Thread Max Goldstein
It would be helpful if you showed us more context, including the definitions of your record type aliases. -- 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

Re: [elm-discuss] What do you think Elm's biggest shortcomings are when it comes to natively supported API's?

2016-12-11 Thread Duane Johnson
I think this list is for discussion and is not as frequented by the elm core developers, so you might try https://groups.google.com/forum/?fromgroups#!forum/elm-dev They still show up here on occasion, but my impression is that they primarily hang out over there. On Sat, Dec 10, 2016 at 3:03 PM,

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Charlie Koster
I think I came up with a workable solution by adding a tiny bit of abstraction. import Html exposing (Attribute, Html, a) import Html.Events exposing (onWithOptions, defaultOptions) import Model exposing (Msg(..)) import Json.Decode as Json link : String -> List (Attribute Msg) -> List (Html

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Nicolas Artman
Yep, it's standard complaint as Nick said. This behavior also agrees with the routing behavior for most JS client stacks I've used as well. On Fri, Dec 9, 2016 at 6:06 PM Nick H wrote: > I would call this not a bug, since it conforms to the URL standard >

[elm-discuss] Re: How do I make a port that doesn't take an argument?

2016-12-11 Thread Kevin Yank
Yup. I’m another confused soul who found his answer here after the error message pointed to the docs that did not cover this limitation. On Tuesday, June 7, 2016 at 10:21:39 PM UTC+10, Tim Stewart wrote: > > This caught me out the other day too, so if it's not going to be added on > a whim it

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Nicolas Artman
Standards *compliant. Sorry about the typo. On Sat, Dec 10, 2016 at 12:08 PM Nicolas Artman wrote: > Yep, it's standard complaint as Nick said. This behavior also agrees with > the routing behavior for most JS client stacks I've used as well. > On Fri, Dec 9, 2016 at 6:06 PM

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Charlie Koster
Thanks for the response, Magnus. If I'm understanding correctly, you have a parent div that prevents default click events of child elements, including your anchor tag, and turns them into `Attribute msg`. Your solution is interesting, although it looks like a fair amount of boilerplate and

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Magnus Rundberget
You could do something like this: https://github.com/rundis/albums/blob/master/frontend/src/Routes.elm#L84 Use it like this https://github.com/rundis/albums/blob/master/frontend/src/ArtistListing.elm#L100 And wire it up like this.

[elm-discuss] contentEditable and caret jumps

2016-12-11 Thread Lars Jacobsson
I've got a problem. We need to use contentEditable elements and while editing them, the caret jumps to the beginning of the box everytime the model updates. This derives from the fact that the browser holds some state about the caret position outside the model (the horror), and we reset that