{"action":"opened","issue":{"url":"https://api.github.com/repos/elm-lang/elm-repl/issues/62","labels_url":"https://api.github.com/repos/elm-lang/elm-repl/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-repl/issues/62/comments","events_url":"https://api.github.com/repos/elm-lang/elm-repl/issues/62/events","html_url":"https://github.com/elm-lang/elm-repl/issues/62","id":85455536,"number":62,"title":"Error creating ADT in repl","user":{"login":"julianjelfs","id":86620,"avatar_url":"https://avatars.githubusercontent.com/u/86620?v=3","gravatar_id":"","url":"https://api.github.com/users/julianjelfs","html_url":"https://github.com/julianjelfs","followers_url":"https://api.github.com/users/julianjelfs/followers","following_url":"https://api.github.com/users/julianjelfs/following{/other_user}","gists_url":"https://api.github.com/users/julianjelfs/gists{/gist_id}","starred_url":"https://api.github.com/users/julianjelfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianjelfs/subscriptions","organizations_url":"https://api.github.com/users/julianjelfs/orgs","repos_url":"https://api.github.com/users/julianjelfs/repos","events_url":"https://api.github.com/users/julianjelfs/events{/privacy}","received_events_url":"https://api.github.com/users/julianjelfs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-05T07:00:02Z","updated_at":"2015-06-05T07:00:02Z","closed_at":null,"body":"I'm trying to follow along with the Seven More Languages in Seven weeks book chapter on Elm. \r\n\r\nWhen I start the repl and try to create an ADT as in book I get an error. \r\n\r\n`> Color = Black | White`\r\n\r\nGives me the following:\r\n\r\n```\r\nError in repl-temp-000.elm:\r\n\r\nParse error at (line 2, column 20):\r\nunexpected '|'\r\nexpecting whitespace or end of input\r\n```\r\n\r\nI had other similar issues defining functions but perhaps it is all related. \r\n\r\nI installed Elm with npm and seems to be using Elm REPL 0.4 and Elm Platform 0.15.\r\n\r\nI am using Ubuntu 14.04.\r\n\r\nObviously I'm a complete Elm beginner so apologies in advance if I'm doing something stupid. \r\n\r\nThanks.\r\n\r\n\r\n\r\n"}}