[elm-discuss] Re: Elm's compiler is trying to import a module that doesn't exist...?

2017-03-13 Thread Dan Willis
FYI, this totally fixes it. On Thursday, 12 January 2017 09:57:51 UTC+13, Frederick Yankowski wrote: > > I've seen that error when `elm-lang/core` is missing from the dependencies > in elm-package.json. > > Try `elm package install elm-lang/core`. > > -- You received this message because you

Re: [elm-discuss] Decoding JSON to Union types.

2017-03-01 Thread Dan Willis
Thanks so much, Peter & Brian, I had earlier found your article re: dates, but revisiting it now has helped! Yep, I like the idea of keeping that function as agnostic as possible, i.e., out of a Decoder. Thanks again for your help, I really appreciate it. On Thursday, 2 March 2017 03:40:12

[elm-discuss] Decoding JSON to Union types.

2017-02-28 Thread Dan Willis
I'm new to Elm (I'm <2 weeks in) but am really loving it. However, I'm finding it difficult to determine just how to successfully decode a JSON object into my model, what with changes between versions, and the number of related non-core packages. Here's an example of the JSON data: [ {