{"action":"closed","issue":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1199","labels_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1199/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1199/comments","events_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1199/events","html_url":"https://github.com/elm-lang/elm-compiler/issues/1199","id":118376800,"number":1199,"title":"\"Wrong\" type displayed in elm-repl","user":{"login":"imeckler","id":1253566,"avatar_url":"https://avatars.githubusercontent.com/u/1253566?v=3","gravatar_id":"","url":"https://api.github.com/users/imeckler","html_url":"https://github.com/imeckler","followers_url":"https://api.github.com/users/imeckler/followers","following_url":"https://api.github.com/users/imeckler/following{/other_user}","gists_url":"https://api.github.com/users/imeckler/gists{/gist_id}","starred_url":"https://api.github.com/users/imeckler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imeckler/subscriptions","organizations_url":"https://api.github.com/users/imeckler/orgs","repos_url":"https://api.github.com/users/imeckler/repos","events_url":"https://api.github.com/users/imeckler/events{/privacy}","received_events_url":"https://api.github.com/users/imeckler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-23T13:06:46Z","updated_at":"2015-12-01T08:54:27Z","closed_at":"2015-12-01T08:54:27Z","body":"Here is a session with the repl\r\n\r\n```elm\r\n> (\\x -> case x of { Just x -> x ; Nothing -> 0 })\r\n<function> : Maybe.Maybe a -> a\r\n```\r\n\r\nIt's a bit confusing because the number type variable is simply shown as `a`. It's clear that elm knows the type variable is not a general one because we get\r\n\r\n```elm\r\n> (\\x -> case x of { Just x -> x ; Nothing -> 0 }) (Just \"\")\r\n## ERRORS in repl-temp-000.elm #################################################\r\n\r\n-- TYPE MISMATCH --------------------------------------------- repl-temp-000.elm\r\n\r\nThe 1st argument to this function has an unexpected type.\r\n\r\n3|          case x of { Just x -> x ; Nothing -> 0 }) (Just \"\")\r\n                                                       ^^^^^^^\r\nAs I infer the type of values flowing through your program, I see a conflict\r\nbetween these two types:\r\n\r\n    a\r\n\r\n    String\r\n```"}}