{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/xguerin/ppx_bitstring/pulls/1","id":54709789,"html_url":"https://github.com/xguerin/ppx_bitstring/pull/1","diff_url":"https://github.com/xguerin/ppx_bitstring/pull/1.diff","patch_url":"https://github.com/xguerin/ppx_bitstring/pull/1.patch","issue_url":"https://api.github.com/repos/xguerin/ppx_bitstring/issues/1","number":1,"state":"open","locked":false,"title":"Fix compatibility with new Core interface","user":{"login":"hverr","id":6400895,"avatar_url":"https://avatars.githubusercontent.com/u/6400895?v=3","gravatar_id":"","url":"https://api.github.com/users/hverr","html_url":"https://github.com/hverr","followers_url":"https://api.github.com/users/hverr/followers","following_url":"https://api.github.com/users/hverr/following{/other_user}","gists_url":"https://api.github.com/users/hverr/gists{/gist_id}","starred_url":"https://api.github.com/users/hverr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hverr/subscriptions","organizations_url":"https://api.github.com/users/hverr/orgs","repos_url":"https://api.github.com/users/hverr/repos","events_url":"https://api.github.com/users/hverr/events{/privacy}","received_events_url":"https://api.github.com/users/hverr/received_events","type":"User","site_admin":false},"body":"`Core.Std` gained a new module named [`Bytes`](https://github.com/janestreet/core_kernel/blob/master/src/core_bytes.mli) which does not export `Bytes.trim`. Compiling `ppx_bitstring` thus results in the error attached bellow.\r\n\r\n- This pull request forces the use of the `Bytes` module of the OCaml standard library, fixing the compilation error.\r\n- It also adds an example to the readme on how to compile a program that uses this library, as I had a hard time discovering the library was named `ppx_bitstring.match`.\r\n- The installation instructions were edited to use git as a backend. In this way opam will automatically track the git repository.\r\n\r\n\r\nThe compilation error:\r\n```\r\n[NOTE] Package ppx_bitstring is already pinned to https://github.com/xguerin/ppx_bitstring. This will reset metadata.\r\nProceed ? [Y/n]\r\n[ppx_bitstring] Fetching https://github.com/xguerin/ppx_bitstring\r\nInitialized empty Git repository in /home/henri/.opam/no-ssl/packages.dev/ppx_bitstring/.git/\r\n[master (root-commit) 39feaf9] opam-git-init\r\nwarning: no common commits\r\nFrom https://github.com/xguerin/ppx_bitstring\r\n * [new ref]                    -> opam-ref\r\n.gitignore\r\n.merlin\r\nLICENSE\r\nMETA\r\nMakefile\r\nREADME.md\r\nopam\r\nppx_bitstring_match.ml\r\nsamples/Base\r\nsamples/Ext3\r\nsamples/GIF\r\nsamples/GIF.ml\r\nsamples/Header\r\nsamples/IPv4\r\nsamples/simple.ml\r\nsamples/simple.pa.ml\r\nHEAD is now at 64a187b Updated README\r\nInstalling new package description for ppx_bitstring from https://github.com/xguerin/ppx_bitstring/opam\r\n \r\nppx_bitstring needs to be installed.\r\nThe following actions will be performed:\r\n - install   ppx_bitstring.0.1*\r\n=== 1 to install ===\r\nDo you want to continue ? [Y/n]\r\n=-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n[ppx_bitstring] Fetching https://github.com/xguerin/ppx_bitstring\r\nHEAD is now at 64a187b Updated README\r\n \r\n=-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\nBuilding ppx_bitstring.0.1:\r\n  make\r\n  make PREFIX=/home/henri/.opam/no-ssl install\r\nocamlfind ocamlopt -package compiler-libs.common,bitstring,core,ppx_tools.metaquot -linkpkg -thread -o ppx_bitstring.match ppx_bitstring_match.ml\r\nfindlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/henri/.opam/no-ssl/lib/ocaml/compiler-libs, /home/henri/.opam/no-ssl/lib/ocaml\r\nFile \"ppx_bitstring_match.ml\", line 269, characters 53-63:\r\nError: Unbound value Bytes.trim\r\nmake: *** [all] Error 2\r\nMakefile:2: recipe for target 'all' failed\r\n[ERROR] The compilation of ppx_bitstring.0.1 failed.\r\nRemoving ppx_bitstring.0.1.\r\n```","created_at":"2015-12-29T08:28:01Z","updated_at":"2015-12-29T08:28:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xguerin/ppx_bitstring/pulls/1/commits","review_comments_url":"https://api.github.com/repos/xguerin/ppx_bitstring/pulls/1/comments","review_comment_url":"https://api.github.com/repos/xguerin/ppx_bitstring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xguerin/ppx_bitstring/issues/1/comments","statuses_url":"https://api.github.com/repos/xguerin/ppx_bitstring/statuses/e1922e3019818b7010a44acaa971f0a106c384ae","head":{"label":"hverr:master","ref":"master","sha":"e1922e3019818b7010a44acaa971f0a106c384ae","user":{"login":"hverr","id":6400895,"avatar_url":"https://avatars.githubusercontent.com/u/6400895?v=3","gravatar_id":"","url":"https://api.github.com/users/hverr","html_url":"https://github.com/hverr","followers_url":"https://api.github.com/users/hverr/followers","following_url":"https://api.github.com/users/hverr/following{/other_user}","gists_url":"https://api.github.com/users/hverr/gists{/gist_id}","starred_url":"https://api.github.com/users/hverr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hverr/subscriptions","organizations_url":"https://api.github.com/users/hverr/orgs","repos_url":"https://api.github.com/users/hverr/repos","events_url":"https://api.github.com/users/hverr/events{/privacy}","received_events_url":"https://api.github.com/users/hverr/received_events","type":"User","site_admin":false},"repo":{"id":48592960,"name":"ppx_bitstring","full_name":"hverr/ppx_bitstring","owner":{"login":"hverr","id":6400895,"avatar_url":"https://avatars.githubusercontent.com/u/6400895?v=3","gravatar_id":"","url":"https://api.github.com/users/hverr","html_url":"https://github.com/hverr","followers_url":"https://api.github.com/users/hverr/followers","following_url":"https://api.github.com/users/hverr/following{/other_user}","gists_url":"https://api.github.com/users/hverr/gists{/gist_id}","starred_url":"https://api.github.com/users/hverr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hverr/subscriptions","organizations_url":"https://api.github.com/users/hverr/orgs","repos_url":"https://api.github.com/users/hverr/repos","events_url":"https://api.github.com/users/hverr/events{/privacy}","received_events_url":"https://api.github.com/users/hverr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hverr/ppx_bitstring","description":"","fork":true,"url":"https://api.github.com/repos/hverr/ppx_bitstring","forks_url":"https://api.github.com/repos/hverr/ppx_bitstring/forks","keys_url":"https://api.github.com/repos/hverr/ppx_bitstring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hverr/ppx_bitstring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hverr/ppx_bitstring/teams","hooks_url":"https://api.github.com/repos/hverr/ppx_bitstring/hooks","issue_events_url":"https://api.github.com/repos/hverr/ppx_bitstring/issues/events{/number}","events_url":"https://api.github.com/repos/hverr/ppx_bitstring/events","assignees_url":"https://api.github.com/repos/hverr/ppx_bitstring/assignees{/user}","branches_url":"https://api.github.com/repos/hverr/ppx_bitstring/branches{/branch}","tags_url":"https://api.github.com/repos/hverr/ppx_bitstring/tags","blobs_url":"https://api.github.com/repos/hverr/ppx_bitstring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hverr/ppx_bitstring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hverr/ppx_bitstring/git/refs{/sha}","trees_url":"https://api.github.com/repos/hverr/ppx_bitstring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hverr/ppx_bitstring/statuses/{sha}","languages_url":"https://api.github.com/repos/hverr/ppx_bitstring/languages","stargazers_url":"https://api.github.com/repos/hverr/ppx_bitstring/stargazers","contributors_url":"https://api.github.com/repos/hverr/ppx_bitstring/contributors","subscribers_url":"https://api.github.com/repos/hverr/ppx_bitstring/subscribers","subscription_url":"https://api.github.com/repos/hverr/ppx_bitstring/subscription","commits_url":"https://api.github.com/repos/hverr/ppx_bitstring/commits{/sha}","git_commits_url":"https://api.github.com/repos/hverr/ppx_bitstring/git/commits{/sha}","comments_url":"https://api.github.com/repos/hverr/ppx_bitstring/comments{/number}","issue_comment_url":"https://api.github.com/repos/hverr/ppx_bitstring/issues/comments{/number}","contents_url":"https://api.github.com/repos/hverr/ppx_bitstring/contents/{+path}","compare_url":"https://api.github.com/repos/hverr/ppx_bitstring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hverr/ppx_bitstring/merges","archive_url":"https://api.github.com/repos/hverr/ppx_bitstring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hverr/ppx_bitstring/downloads","issues_url":"https://api.github.com/repos/hverr/ppx_bitstring/issues{/number}","pulls_url":"https://api.github.com/repos/hverr/ppx_bitstring/pulls{/number}","milestones_url":"https://api.github.com/repos/hverr/ppx_bitstring/milestones{/number}","notifications_url":"https://api.github.com/repos/hverr/ppx_bitstring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hverr/ppx_bitstring/labels{/name}","releases_url":"https://api.github.com/repos/hverr/ppx_bitstring/releases{/id}","created_at":"2015-12-25T22:35:22Z","updated_at":"2015-12-25T22:35:24Z","pushed_at":"2015-12-29T08:22:05Z","git_url":"git://github.com/hverr/ppx_bitstring.git","ssh_url":"git@github.com:hverr/ppx_bitstring.git","clone_url":"https://github.com/hverr/ppx_bitstring.git","svn_url":"https://github.com/hverr/ppx_bitstring","homepage":null,"size":38,"stargazers_count":0,"watchers_count":0,"language":"OCaml","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xguerin:master","ref":"master","sha":"64a187bd8e3530990fef42f2075613db5c36a93a","user":{"login":"xguerin","id":73404,"avatar_url":"https://avatars.githubusercontent.com/u/73404?v=3","gravatar_id":"","url":"https://api.github.com/users/xguerin","html_url":"https://github.com/xguerin","followers_url":"https://api.github.com/users/xguerin/followers","following_url":"https://api.github.com/users/xguerin/following{/other_user}","gists_url":"https://api.github.com/users/xguerin/gists{/gist_id}","starred_url":"https://api.github.com/users/xguerin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xguerin/subscriptions","organizations_url":"https://api.github.com/users/xguerin/orgs","repos_url":"https://api.github.com/users/xguerin/repos","events_url":"https://api.github.com/users/xguerin/events{/privacy}","received_events_url":"https://api.github.com/users/xguerin/received_events","type":"User","site_admin":false},"repo":{"id":31486054,"name":"ppx_bitstring","full_name":"xguerin/ppx_bitstring","owner":{"login":"xguerin","id":73404,"avatar_url":"https://avatars.githubusercontent.com/u/73404?v=3","gravatar_id":"","url":"https://api.github.com/users/xguerin","html_url":"https://github.com/xguerin","followers_url":"https://api.github.com/users/xguerin/followers","following_url":"https://api.github.com/users/xguerin/following{/other_user}","gists_url":"https://api.github.com/users/xguerin/gists{/gist_id}","starred_url":"https://api.github.com/users/xguerin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xguerin/subscriptions","organizations_url":"https://api.github.com/users/xguerin/orgs","repos_url":"https://api.github.com/users/xguerin/repos","events_url":"https://api.github.com/users/xguerin/events{/privacy}","received_events_url":"https://api.github.com/users/xguerin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xguerin/ppx_bitstring","description":"","fork":false,"url":"https://api.github.com/repos/xguerin/ppx_bitstring","forks_url":"https://api.github.com/repos/xguerin/ppx_bitstring/forks","keys_url":"https://api.github.com/repos/xguerin/ppx_bitstring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xguerin/ppx_bitstring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xguerin/ppx_bitstring/teams","hooks_url":"https://api.github.com/repos/xguerin/ppx_bitstring/hooks","issue_events_url":"https://api.github.com/repos/xguerin/ppx_bitstring/issues/events{/number}","events_url":"https://api.github.com/repos/xguerin/ppx_bitstring/events","assignees_url":"https://api.github.com/repos/xguerin/ppx_bitstring/assignees{/user}","branches_url":"https://api.github.com/repos/xguerin/ppx_bitstring/branches{/branch}","tags_url":"https://api.github.com/repos/xguerin/ppx_bitstring/tags","blobs_url":"https://api.github.com/repos/xguerin/ppx_bitstring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xguerin/ppx_bitstring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xguerin/ppx_bitstring/git/refs{/sha}","trees_url":"https://api.github.com/repos/xguerin/ppx_bitstring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xguerin/ppx_bitstring/statuses/{sha}","languages_url":"https://api.github.com/repos/xguerin/ppx_bitstring/languages","stargazers_url":"https://api.github.com/repos/xguerin/ppx_bitstring/stargazers","contributors_url":"https://api.github.com/repos/xguerin/ppx_bitstring/contributors","subscribers_url":"https://api.github.com/repos/xguerin/ppx_bitstring/subscribers","subscription_url":"https://api.github.com/repos/xguerin/ppx_bitstring/subscription","commits_url":"https://api.github.com/repos/xguerin/ppx_bitstring/commits{/sha}","git_commits_url":"https://api.github.com/repos/xguerin/ppx_bitstring/git/commits{/sha}","comments_url":"https://api.github.com/repos/xguerin/ppx_bitstring/comments{/number}","issue_comment_url":"https://api.github.com/repos/xguerin/ppx_bitstring/issues/comments{/number}","contents_url":"https://api.github.com/repos/xguerin/ppx_bitstring/contents/{+path}","compare_url":"https://api.github.com/repos/xguerin/ppx_bitstring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xguerin/ppx_bitstring/merges","archive_url":"https://api.github.com/repos/xguerin/ppx_bitstring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xguerin/ppx_bitstring/downloads","issues_url":"https://api.github.com/repos/xguerin/ppx_bitstring/issues{/number}","pulls_url":"https://api.github.com/repos/xguerin/ppx_bitstring/pulls{/number}","milestones_url":"https://api.github.com/repos/xguerin/ppx_bitstring/milestones{/number}","notifications_url":"https://api.github.com/repos/xguerin/ppx_bitstring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xguerin/ppx_bitstring/labels{/name}","releases_url":"https://api.github.com/repos/xguerin/ppx_bitstring/releases{/id}","created_at":"2015-03-01T03:52:25Z","updated_at":"2015-05-30T14:17:05Z","pushed_at":"2015-03-13T02:32:20Z","git_url":"git://github.com/xguerin/ppx_bitstring.git","ssh_url":"git@github.com:xguerin/ppx_bitstring.git","clone_url":"https://github.com/xguerin/ppx_bitstring.git","svn_url":"https://github.com/xguerin/ppx_bitstring","homepage":null,"size":156,"stargazers_count":6,"watchers_count":6,"language":"OCaml","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xguerin/ppx_bitstring/pulls/1"},"html":{"href":"https://github.com/xguerin/ppx_bitstring/pull/1"},"issue":{"href":"https://api.github.com/repos/xguerin/ppx_bitstring/issues/1"},"comments":{"href":"https://api.github.com/repos/xguerin/ppx_bitstring/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/xguerin/ppx_bitstring/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/xguerin/ppx_bitstring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xguerin/ppx_bitstring/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/xguerin/ppx_bitstring/statuses/e1922e3019818b7010a44acaa971f0a106c384ae"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":3,"deletions":3,"changed_files":2}}