Re: [elm-discuss] How do you discard an Html message?

2017-01-27 Thread 'Rupert Smith' via Elm Discuss
On Friday, January 27, 2017 at 4:02:27 PM UTC, Alex Barry wrote: > > That should do the trick for you. You might want a better message name. > Also, why discard the message? > Thanks. Just as a temporary measure whilst hacking at a new bit of code. I just wanted to display something but ignore

Re: [elm-discuss] How do you discard an Html message?

2017-01-27 Thread Witold Szczerba
The solution mentioned here from time to time (I have used it as well) is to treat text "" as… well… as nothing. On Fri, Jan 27, 2017 at 4:45 PM, 'Rupert Smith' via Elm Discuss < elm-discuss@googlegroups.com> wrote: > Having a dozy moment again... > > If I have some view that returns an Html

Re: [elm-discuss] How do you discard an Html message?

2017-01-27 Thread Alex Barry
Type Msg = ... | NoOp msg update msg model = case msg of NoOp _ -> ( model, Cmd.none ) That should do the trick for you. You might want a better message name. Also, why discard the message? On Fri, Jan 27, 2017 at 10:45 AM, 'Rupert Smith' via Elm Discuss <