[elm-discuss] Re: Publishing Elm package that depends on web components

2017-03-16 Thread Ilias Van Peer
I actually found some prior art - http://package.elm-lang.org/packages/kkpoon/elm-echarts/latest Op woensdag 15 maart 2017 18:11:12 UTC+1 schreef Jonas Schürmann: > > Hey folks, > > is it okay to publish a pure Elm package (no native code, no ports) that > depends on a custom element (web

Re: [elm-discuss] Unexpected error when parsing what seems to be reasonable code (Bug in parser maybe?)

2017-04-23 Thread Ilias Van Peer
If I'm not mistaken, this isn't so much about nested records as it is about referencing a qualified record in a record update expression. This seems related to - but not exactly the same thing as - https://github.com/elm-lang/elm-compiler/issues/1549 So yeah, you could either create a local

[elm-discuss] Re: Cmd Msg returned by init

2017-03-11 Thread Ilias Van Peer
Let's take a step back, here. Conceptually, the `init` function is meant to say how to jumpstart your application. So what it should do, is provide the initial state of your model, and - optionally - telling the runtime to start executing some asynchronous task right away (a good example would

[elm-discuss] Re: Date type not recognized

2017-06-27 Thread Ilias Van Peer
Hi Casper, Correct, the `Date` module (and type) are not imported or exposed by default. You can find the default imports here: http://package.elm-lang.org/packages/elm-lang/core/latest To make `Date` available in your module, you can use `import Date exposing (Date)`. The "exposing" part

[elm-discuss] Re: Discovering Elm packages

2017-08-09 Thread Ilias Van Peer
https://libraries.io/elm <- there are various rss feeds there. Op woensdag 9 augustus 2017 15:39:50 UTC+2 schreef Vlad GURDIGA: > > This is nice indeed, but what I’m missing is an RSS feed, so that I don’t > have to remember the day when I last looked at the list, and begin scanning > the

[elm-discuss] Re: More pattern matching

2017-08-22 Thread Ilias Van Peer
If you're actually parsing a string, you may also want to look into one of the various parsing libraries like `elm-tools/parser`. If you're willing to give a few more details about the format of those strings, I'm sure people here (and on slack) would be more than willing to give you a hand in

[elm-discuss] Re: Text box value displays inconsistently

2017-06-26 Thread Ilias Van Peer
Correct, this is the virtualdom reusing dom-nodes. You may want to use `Html.Keyed` to help the dom-diffing algorithm out by assigning unique keys to children that shouldn't be "mixed and matched". -- You received this message because you are subscribed to the Google Groups "Elm Discuss"

Re: [elm-discuss] Mysterious failure to find packages during compilation

2017-06-18 Thread Ilias Van Peer
Yeah, this could be caused by "conflicting packages" - seems like you may have been using a different package that has a dependency on `elm-community/json-extra`, which uses the same module names as (and supersedes) `elm-community/elm-json-extra`. Op zondag 18 juni 2017 05:08:38 UTC+2 schreef

[elm-discuss] Re: Higher-order functions with a function using an extensible record?

2017-10-04 Thread Ilias Van Peer
mapNamed : (Named a -> b) -> Element -> b In that line, you say that I can pass in a function that works on `Named a`, where `a` isn't bound to anything. So if I were to write a function `foo : Named { iAlsoNeedAnInt : Int } -> Int`, I could pass that to that `mapNamed`. However `Element`

[elm-discuss] Re: Json.Decode without failing on the first error?

2017-11-09 Thread Ilias Van Peer
Yeah, I did that some time ago - package.elm-lang.org/packages/zwilias/json-decode-exploration/latest Demo here, the very last one in the output is a scenario not unlike yours :) https://ellie-app.com/3vVLfrNDnSXa1/2 -- You received this message because you are subscribed to the Google Groups

[elm-discuss] Re: Debouncing, throttling, exponential backoff, relating effects to time - valid use of effect manager?

2017-10-29 Thread Ilias Van Peer
Your final example (exponential backoff on HTTP requests) doesn't need any magic. You can use `Http.toTask` to turn it into a task and implement a generic "retry task at most x times with backoff" like this: retry : Int -> Time -> Task x a -> Task x a retry maxTries backOff task = if