Skip to content

Instantly share code, notes, and snippets.

@mrmurphy
Created December 5, 2015 17:09
Show Gist options
  • Save mrmurphy/917b1244bbd88d3f1d86 to your computer and use it in GitHub Desktop.
Save mrmurphy/917b1244bbd88d3f1d86 to your computer and use it in GitHub Desktop.

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”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment