Re: [elm-discuss] Re: How are deeply nested records updated or what alternatives are typically used?

2016-08-02 Thread Ambrose Kofi Laing
You're right that what I wrote earlier has no way to deal with a Maybe field. I think it could be generalized to handle Maybe fields, but then we could also think of something that is neither a record nor a Maybe of a record, ... Anyway, it is not at all pretty but here is a quick idea. First le

Re: [elm-discuss] Re: Long form: how to handle model, Msg and update?

2016-09-12 Thread Ambrose Kofi Laing
There is a bug in my code which is that Dict.get returns a Maybe, so you will have to handle the possibility that the fieldName is not found using maybe case entry of Just something -> ... Nothing -> ... On Mon, Sep 12, 2016 at 3:16 PM, Eduardo Cuducos wrote: > Many thanks, Ambrose! Th

Re: [elm-discuss] Elm, Objects and Components

2016-09-22 Thread Ambrose Kofi Laing
I'm guessing the question from two posts ago was: if someone creates a component from a .elm file, and gives you their .js (but not their .elm), and you also create your own .elm file and use both together, do you pay the price of having the standard library twice in your code? On Thu, Sep 22, 20