Re: [elm-discuss] Structuring Http.request for HTTP DELETE Request

2017-03-07 Thread Long Nguyen
Got it, thanks, Witold. This version is more direct without the need for an alias. deletePlayer : Player -> Cmd Msg deletePlayer player = restRequest (hostUrl ++ "/players/" ++ (toString player.id)) (playerEncode player) (Json.Decode.succeed player) DELETE |>

[elm-discuss] elm + reactive programming

2017-03-07 Thread Răzvan Cosmin Rădulescu
I was quite disappointed to see that signals have been removed in Elm 0.17 (I found out about elm 6 days ago). I only seen a few bits of code using signals from before which had very simple `merge`/`map`/`filter`/and the notorious `foldp` operations. But I think signals & current implementation

Re: [elm-discuss] Having the debugger write your tests for you

2017-03-07 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, March 7, 2017 at 12:54:50 AM UTC, Joey Eremondi wrote: > > Now, you could do something where you have a working version of your code, > and you generate a set of tests and save it, and then use it as regression > tests later on to make sure you don't accidentally change the behaviour

[elm-discuss] Re: What about partial public exposition of private types?

2017-03-07 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, March 7, 2017 at 4:28:52 AM UTC, Matthieu Pizenberg wrote: > > Hi everyone, > > I would like to have the point of view of the community regarding some > private/public types code organisation. I have some types very useful to > many sub modules that are currently publicly exposed in

[elm-discuss] Re: Task ports: A proposal to make it easier to integrate JS with Elm.

2017-03-07 Thread Eirik Sletteberg
It's easy to find concrete issues - a whole class of issues would be solved with task ports. All problems that require interop between Elm and JS, where a message from Elm to JS must be correlated with a message from JS to Elm. The async request-response pattern. Like callbacks or Promises in