{"action":"created","issue":{"url":"https://api.github.com/repos/CakeML/cakeml/issues/25","labels_url":"https://api.github.com/repos/CakeML/cakeml/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/CakeML/cakeml/issues/25/comments","events_url":"https://api.github.com/repos/CakeML/cakeml/issues/25/events","html_url":"https://github.com/CakeML/cakeml/issues/25","id":83844511,"number":25,"title":"Parser can't apply constructors correctly","user":{"login":"mn200","id":145647,"avatar_url":"https://avatars.githubusercontent.com/u/145647?v=3","gravatar_id":"","url":"https://api.github.com/users/mn200","html_url":"https://github.com/mn200","followers_url":"https://api.github.com/users/mn200/followers","following_url":"https://api.github.com/users/mn200/following{/other_user}","gists_url":"https://api.github.com/users/mn200/gists{/gist_id}","starred_url":"https://api.github.com/users/mn200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mn200/subscriptions","organizations_url":"https://api.github.com/users/mn200/orgs","repos_url":"https://api.github.com/users/mn200/repos","events_url":"https://api.github.com/users/mn200/events{/privacy}","received_events_url":"https://api.github.com/users/mn200/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CakeML/cakeml/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-02T05:08:15Z","updated_at":"2015-06-02T14:34:53Z","closed_at":null,"body":"The parser (all the way up to `cmlPtreeConversion`) can't correctly apply constructors to arguments because it doesn't have information about what the constructor arities are.  For example, `SOME(x,y)` should translate to \r\n\r\n    Con (Short \"SOME\") [Con NONE [x,y]]\r\n\r\nbut `x::y` has to translate to \r\n\r\n    Con (Short \"::\") [x,y]\r\n\r\nThe behaviour at the moment is to treat `SOME` applied to a pair like the second case, and to incorrectly generate `Con (Short \"SOME\") [x,y]`, which leads to a type error."},"comment":{"url":"https://api.github.com/repos/CakeML/cakeml/issues/comments/107974670","html_url":"https://github.com/CakeML/cakeml/issues/25#issuecomment-107974670","issue_url":"https://api.github.com/repos/CakeML/cakeml/issues/25","id":107974670,"user":{"login":"xrchz","id":181254,"avatar_url":"https://avatars.githubusercontent.com/u/181254?v=3","gravatar_id":"","url":"https://api.github.com/users/xrchz","html_url":"https://github.com/xrchz","followers_url":"https://api.github.com/users/xrchz/followers","following_url":"https://api.github.com/users/xrchz/following{/other_user}","gists_url":"https://api.github.com/users/xrchz/gists{/gist_id}","starred_url":"https://api.github.com/users/xrchz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xrchz/subscriptions","organizations_url":"https://api.github.com/users/xrchz/orgs","repos_url":"https://api.github.com/users/xrchz/repos","events_url":"https://api.github.com/users/xrchz/events{/privacy}","received_events_url":"https://api.github.com/users/xrchz/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T14:34:53Z","updated_at":"2015-06-02T14:34:53Z","body":"It's possible I was confused about something when I made that commit. It's also possible that using `REPLPhrase` makes something under `repl` or `repl/proofs` harder. I'm open to changing the semantics to parse against `REPLPhrase` again (although probably won't work on it myself for a while)."}}