You can't, discussed already here: https://groups.google.com/forum/#!topic/elm-discuss/BFS03hbiT6A
As I said there it seems like a reasonable thing to want to do. On Wednesday, June 8, 2016 at 5:02:30 PM UTC+10, Petr Huřťák wrote: > > Hi, > > I am trying to create outgoing (Elm -> JS) port, so far everything works > as expected with this code: > > port portName : String -> Cmd msg > > > But when I try to create port without parameters > > port portName : Cmd msg > > > it doesen't provide helpful message > > Port `portName` has an invalid type. > > >> 4| port portName : Cmd msg > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > You are saying it should be: > > >> Platform.Cmd.Cmd msg > > >> But you need to use the particular format described here: > > <http://guide.elm-lang.org/effect_managers/> > > >> Detected errors in 1 module. > > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
