I would like to send a message to mailbox inline with a signal.
module Main where import Graphics.Element exposing (show) import Html exposing (..) import Html.Attributes exposing (..) import Html.Extra exposing (..) import Signal import Model.PickList exposing (pickList) import Model.BabyName.Debug as Debug headerPane : Html headerPane = header [ id "header" ] [ text "header" ] leftPane : Signal Html leftPane = flip Signal.map (.signal pickList) <| \pl -> ul  [ li  [ fromElement << show <| pl ] ] mainPane : Html mainPane = section [ id "main" ] [ text "what? what?" ] layout : Signal Html layout = flip Signal.map leftPane <| \lp -> div [ id "wrapper" ] <| [ headerPane , lp , mainPane ] main : Signal Html main = (Signal.send (.address pickList) Debug.dummyList) -- type error layout
I feel like all I need is haskell's
>>. But these are Signals (which are not Monads), and there is no
do notation or
>>= \_ -> kind of madness, neither do I see a
liftTask. Is the idea that in Elm you need an external input, and cannot send arbitrarily from the perspective of the application? Please help me understand.