{"action":"closed","issue":{"url":"https://api.github.com/repos/elm-lang/error-message-catalog/issues/116","repository_url":"https://api.github.com/repos/elm-lang/error-message-catalog","labels_url":"https://api.github.com/repos/elm-lang/error-message-catalog/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/error-message-catalog/issues/116/comments","events_url":"https://api.github.com/repos/elm-lang/error-message-catalog/issues/116/events","html_url":"https://github.com/elm-lang/error-message-catalog/issues/116","id":153425899,"number":116,"title":"[0.17-rc2] Module declaration with `where`","user":{"login":"Janiczek","id":149425,"avatar_url":"https://avatars.githubusercontent.com/u/149425?v=3","gravatar_id":"","url":"https://api.github.com/users/Janiczek","html_url":"https://github.com/Janiczek","followers_url":"https://api.github.com/users/Janiczek/followers","following_url":"https://api.github.com/users/Janiczek/following{/other_user}","gists_url":"https://api.github.com/users/Janiczek/gists{/gist_id}","starred_url":"https://api.github.com/users/Janiczek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Janiczek/subscriptions","organizations_url":"https://api.github.com/users/Janiczek/orgs","repos_url":"https://api.github.com/users/Janiczek/repos","events_url":"https://api.github.com/users/Janiczek/events{/privacy}","received_events_url":"https://api.github.com/users/Janiczek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-06T10:43:48Z","updated_at":"2016-07-19T04:57:05Z","closed_at":"2016-07-19T04:57:05Z","body":"Elm gives a nice error message if you try to do:\r\n```elm\r\nmodule App (..) where\r\nx = 1\r\n```\r\n```\r\n-- SYNTAX PROBLEM ------------------------------------------------ ./src/App.elm\r\n\r\nI ran into something unexpected when parsing your code!\r\n\r\n1│ module App (..) where\r\n              ^\r\nI am looking for one of the following things:\r\n\r\n    something like `exposing (..)` which replaced `where` in 0.17\r\n    whitespace\r\n```\r\n\r\nBut if you just add the `exposing` and don't remove `where` (which I did, as I only skimmed through the error message), then you get:\r\n```elm\r\nmodule App exposing (..) where\r\nx = 1\r\n```\r\n```\r\n-- SYNTAX PROBLEM ------------------------------------------------ ./src/App.elm\r\n\r\nI need a fresh line to start a new declaration. This means a new line that\r\nstarts with stuff, not with spaces or comments.\r\n\r\n1│ module App exposing (..) where\r\n                            ^\r\nI am looking for one of the following things:\r\n\r\n    whitespace\r\n```\r\n\r\nIt's already kind of understandable, but the message could be nicer - from the top of my head something like\r\n```\r\nThe `where` is not needed anymore at the end of a module declaration since 0.17.\r\n```"}}
{"actor":{"display_login":"rtfeldman"}}