{"action":"opened","issue":{"url":"https://api.github.com/repos/xguerin/ppx_bitstring/issues/12","repository_url":"https://api.github.com/repos/xguerin/ppx_bitstring","labels_url":"https://api.github.com/repos/xguerin/ppx_bitstring/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/xguerin/ppx_bitstring/issues/12/comments","events_url":"https://api.github.com/repos/xguerin/ppx_bitstring/issues/12/events","html_url":"https://github.com/xguerin/ppx_bitstring/issues/12","id":168108892,"number":12,"title":"let binding in match expression","user":{"login":"gitoleg","id":10262570,"avatar_url":"https://avatars.githubusercontent.com/u/10262570?v=3","gravatar_id":"","url":"https://api.github.com/users/gitoleg","html_url":"https://github.com/gitoleg","followers_url":"https://api.github.com/users/gitoleg/followers","following_url":"https://api.github.com/users/gitoleg/following{/other_user}","gists_url":"https://api.github.com/users/gitoleg/gists{/gist_id}","starred_url":"https://api.github.com/users/gitoleg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitoleg/subscriptions","organizations_url":"https://api.github.com/users/gitoleg/orgs","repos_url":"https://api.github.com/users/gitoleg/repos","events_url":"https://api.github.com/users/gitoleg/events{/privacy}","received_events_url":"https://api.github.com/users/gitoleg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-28T14:25:32Z","updated_at":"2016-07-28T14:25:32Z","closed_at":null,"body":"I'm trying to swap bits in `bitstring` in next way:\r\n```\r\nlet swap bs = match%bitstring bs with\r\n| {| a : 1; b : 1 |} -> \r\n    let%bitstring bs' = {|b : 1; a : 1 |} in bs'\r\n``` \r\nAnd I have an error `Uninterpreted extension 'bitstring'.` at last line. Could you tell please, what is going on? May be I'm doing something wrong ?\r\n\r\nAnd there is one minor issue with semicolon at the end of pattern:\r\n```\r\nlet test bs = match%bitstring bs with \r\n  | {| a : 1; b : 1 |} -> 42 \r\n```\r\nthis one works fine, but\r\n```\r\nlet test bs = match%bitstring bs with \r\n  | {| a : 1; b : 1; |} -> 42 \r\n```\r\nfails with error `Error: Format error: \" \"`"}}
{"actor":{"display_login":"gitoleg"}}