Last active
February 26, 2016 17:55
-
-
Save blacktaxi/133948cbde59eda0aa1d to your computer and use it in GitHub Desktop.
Uncaught TypeError with Maybe recursion in Elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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