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

2016-09-12 Thread Eduardo Cuducos
No worries, Ambrose. I haven't read you snippets literally, but they were quite expressive in the sense of showing me how Dict could work in my case. Already treated the Maybe cases and it's working beautifully. Once more, thank you very much ; ) On Mon, Sep 12, 2016 at 4:19 PM Ambrose Kofi Laing

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

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

2016-09-12 Thread Eduardo Cuducos
Many thanks, Ambrose! That was very helpful indeed ; ) Gonna make it work. On Mon, Sep 12, 2016 at 4:15 PM Ambrose Laing wrote: > Something like this can be made to work, if you don't care about relaxing > the type safety which is provided by your current approach: > > >