Re: [elm-discuss] Re: What languages do you write your back-ends in?

2016-09-18 Thread Zachary Kessin
I don't know much about the MLFE project, beyond that it exists Zach ᐧ On Wed, Sep 14, 2016 at 5:03 PM, OvermindDL1 wrote: > There is an mlfe (ML on the BEAM) project too, could much more easily have > elm build to that as a more easily done intermediate step? > > > On Wednesday, September 14,

[elm-discuss] Re: problem on composition and communication of modules

2016-09-18 Thread Matteo Giachino
Thank you Joaquín, I finally found a solution by doing something similar to what you did with the update function returning another element. The main difference is that I want to being able to send command from the child command and add other commands from the parent on certain events. I'm doing

[elm-discuss] Re: problem on composition and communication of modules

2016-09-18 Thread Max Goldstein
Two points from the above exchange that I'd like to emphasize: > Making full TEA (init,update,view,subscriptions) reusable components in > elm can be painful to wire up, so I would suggest not doing so unless/until > you really have to use a component in several places or are publishing a > l

[elm-discuss] Re: problem on composition and communication of modules

2016-09-18 Thread Ossi Hanhinen
Fully agreed on what Max said here, but I'd like to add one little point of advice. Splitting view code that has event handlers out of the original "TEA component" module can feel a little hard because the Msg type needs to be from the original module. The way to go about this is to add a "tagg

[elm-discuss] Re: problem on composition and communication of modules

2016-09-18 Thread Matteo Giachino
that would be really appreciated. I didn't find many articles on this topic, and in my opinion, a language in it's "early stages" should be very opinionated. We also must understand that many developers (like me) comes to elm from a react perspective, where split into small components is the wa

[elm-discuss] Re: Http 401 Interceptor? My 3rd Elm Project - authentication

2016-09-18 Thread Erik Lott
I'm not sure what the outmessage package is that you linked to, but you don't need a package to manage this. An outmsg is just a messge that is returned from the update function, to notify the function caller of something important that happened internally. If you're new to elm, it's probably b

[elm-discuss] Re: problem on composition and communication of modules

2016-09-18 Thread Max Goldstein
Matteo, you're very welcome :) Ossi, I have an idea that might help with the "tagger" parameter. The View module defines the type ViewMsg, which describes whatever clicks, hovers, and so on that you're interested in. This type is exposed along with view : Model -> Html ViewMsg (with Model being

[elm-discuss] ElmTest is failing

2016-09-18 Thread kiran kumar BS
Hello Team, I am using elm-community/elm-test 2.1.0 I am trying to write tests for my Elm Application but i am getting below error when i am building Tests.elm file. *Error:* I cannot find module 'ElmTest'. Module 'Tests' is trying to import it. Potential problems could be: * Misspelled the

Re: [elm-discuss] Can you have a port that takes no args? What is its type?

2016-09-18 Thread Janis Voigtländer
See also https://github.com/evancz/guide.elm-lang.org/issues/34. ​ 2016-09-16 16:36 GMT+02:00 'Rupert Smith' via Elm Discuss < elm-discuss@googlegroups.com>: > > On Friday, September 16, 2016 at 3:17:25 PM UTC+1, Joey Eremondi wrote: >> >> If you need this, make it take an arg of type (), which i