Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 |> identity
three () = two |> (always ())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.