Skip to content

Instantly share code, notes, and snippets.

@blacktaxi
Last active February 26, 2016 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blacktaxi/133948cbde59eda0aa1d to your computer and use it in GitHub Desktop.
Save blacktaxi/133948cbde59eda0aa1d to your computer and use it in GitHub Desktop.
Uncaught TypeError with Maybe recursion in Elm
-- This gives an 'Uncaught TypeError: three is not a function' at runtime, when
-- ran in the view function of a start-app app (probably irrelevant).
-- A better error message would certainly help.
one = Just <| three ()
two = one |> Maybe.map identity
three () = two |> Maybe.map (always ())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment