{"action":"created","issue":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/936","labels_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/936/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/936/comments","events_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/936/events","html_url":"https://github.com/elm-lang/elm-compiler/issues/936","id":75366972,"number":936,"title":"Proposal: Compact error messages","user":{"login":"Apanatshka","id":1237863,"avatar_url":"https://avatars.githubusercontent.com/u/1237863?v=3","gravatar_id":"","url":"https://api.github.com/users/Apanatshka","html_url":"https://github.com/Apanatshka","followers_url":"https://api.github.com/users/Apanatshka/followers","following_url":"https://api.github.com/users/Apanatshka/following{/other_user}","gists_url":"https://api.github.com/users/Apanatshka/gists{/gist_id}","starred_url":"https://api.github.com/users/Apanatshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Apanatshka/subscriptions","organizations_url":"https://api.github.com/users/Apanatshka/orgs","repos_url":"https://api.github.com/users/Apanatshka/repos","events_url":"https://api.github.com/users/Apanatshka/events{/privacy}","received_events_url":"https://api.github.com/users/Apanatshka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-11T21:37:12Z","updated_at":"2015-06-24T00:24:55Z","closed_at":null,"body":"Power users who prefer to use the command line error messages of the compiler may want to have more compact error messages for easily glancing. It would be great if this was somehow supported. Either by the compiler itself or have an easy way for another tool to influence the error messages, e.g. based on JSON output of the compiler errors that's been planned for editor integration. \r\n\r\nUse case: It may be a natural iteration of write code sloppily, run compiler, recognise obvious errors in a glance, fix, repeat. An error like the following is great if you have never seen an error message before, but if you've seen many and many like this there is redundant information:\r\n```\r\n-- TYPE MISMATCH -------------------------------------------------------------- \r\n\r\nThis argument is causing a type mismatch.\r\n\r\nLooks like a record is missing the field 'errors'\r\n\r\n15| \r\n16|        view { username = \"\", password = \"\" } \r\n17|             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\nTo be more specific, as I infer all the types, I am seeing a conflict between\r\nthis type:\r\n\r\n    { b |\r\n          password : String\r\n        , errors : { a |   password : String, username : String }\r\n        , username : String\r\n        }\r\n\r\nand this type:\r\n\r\n    { password : String, username : String }\r\n\r\n```\r\n\r\nI would minimize this to a more compact:\r\n```\r\n16:8-16:44 (record missing field 'errors')\r\n    { b | password : String\r\n        , errors : { a | password : String, username : String }\r\n        , username : String }\r\n /= { password : String, username : String }\r\n\r\n```\r\nSo only line/column instead of the actual code, a more terse hint, more compactly printed type, and type mismatch is simply denoted with `/=`."},"comment":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/comments/114681670","html_url":"https://github.com/elm-lang/elm-compiler/issues/936#issuecomment-114681670","issue_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/936","id":114681670,"user":{"login":"evancz","id":1658058,"avatar_url":"https://avatars.githubusercontent.com/u/1658058?v=3","gravatar_id":"","url":"https://api.github.com/users/evancz","html_url":"https://github.com/evancz","followers_url":"https://api.github.com/users/evancz/followers","following_url":"https://api.github.com/users/evancz/following{/other_user}","gists_url":"https://api.github.com/users/evancz/gists{/gist_id}","starred_url":"https://api.github.com/users/evancz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evancz/subscriptions","organizations_url":"https://api.github.com/users/evancz/orgs","repos_url":"https://api.github.com/users/evancz/repos","events_url":"https://api.github.com/users/evancz/events{/privacy}","received_events_url":"https://api.github.com/users/evancz/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T00:24:55Z","updated_at":"2015-06-24T00:24:55Z","body":"Not sure what code produced that message, maybe add a link to a gist of that in the initial report? The new stuff is available in the online editor now."}}