I defined a custom type:
type alias Props =
{ user: SafeUser
, onEdit: Signal.Address String
, products: List Product
, flash: String
}
And a function using that type:
view : Props -> Html
view props =
…
And then I called it with a type, but missing an attribute:
view {user = …, onEdit = …, products = …}
I had this situation, but Elm compiled fine. In the runtime, the code using “flash” rendered with a value of “undefined”