[elm-discuss] Decoder for Recursive Type

2017-03-11 Thread vishesh
Hi everyone, I would like to write a customizable frontend where different roles in an organization see different widgets on their dashboard. The mapping for which widgets belong to which roles are stored in the server/database where they can be configured/enabled/disabled based on admin

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

2017-03-11 Thread Duane Johnson
Thank-you Ilias and Martin. Both approaches were novel and interesting to me. It turned out that in order to get data from the server, I had to create a function with signature: ``` getStatus : Cmd Msg getStatus = Http.get (serverPrefix ++ "/api/status") decodeAll |>

[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

Re: [elm-discuss] Re: elm + reactive programming

2017-03-11 Thread Răzvan Cosmin Rădulescu
Interesting comparison, I need to check out this purescript some more. Never heard of it before but it does look like there are libraries that provide reactive functions or something, research time! Thanks :) On Friday, March 10, 2017 at 8:14:59 PM UTC+1, jphedley wrote: > > Here's a nice

Re: [elm-discuss] Re: elm + reactive programming

2017-03-11 Thread Martin Norbäck Olivers
Yes, this is what I was talking about, we can abstract away the gritty details in functions even though we have the state explicitly in our model. I hadn't seen your package but it absolutely makes sense to do it this way. Den fredag 10 mars 2017 kl. 19:33:03 UTC+1 skrev Matthieu Pizenberg: > >