{"action":"closed","issue":{"url":"https://api.github.com/repos/dbuenzli/resultv/issues/5","labels_url":"https://api.github.com/repos/dbuenzli/resultv/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/dbuenzli/resultv/issues/5/comments","events_url":"https://api.github.com/repos/dbuenzli/resultv/issues/5/events","html_url":"https://github.com/dbuenzli/resultv/issues/5","id":59616915,"number":5,"title":"Toplevel support doesn't work","user":{"login":"dbuenzli","id":485596,"avatar_url":"https://avatars.githubusercontent.com/u/485596?v=3","gravatar_id":"","url":"https://api.github.com/users/dbuenzli","html_url":"https://github.com/dbuenzli","followers_url":"https://api.github.com/users/dbuenzli/followers","following_url":"https://api.github.com/users/dbuenzli/following{/other_user}","gists_url":"https://api.github.com/users/dbuenzli/gists{/gist_id}","starred_url":"https://api.github.com/users/dbuenzli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbuenzli/subscriptions","organizations_url":"https://api.github.com/users/dbuenzli/orgs","repos_url":"https://api.github.com/users/dbuenzli/repos","events_url":"https://api.github.com/users/dbuenzli/events{/privacy}","received_events_url":"https://api.github.com/users/dbuenzli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-03T09:39:12Z","updated_at":"2015-03-04T01:23:35Z","closed_at":"2015-03-04T01:23:35Z","body":"No idea what is going on. I tried to implement the scheme mentioned here (https://github.com/dbuenzli/gg/issues/1), i.e. `#require`ing `result.top` installs printers and opens the namespacing module, which as we discussed with @whitequark in the linked issue is a better scheme than automatically doing so on `#require \"result\"`\r\n\r\nUsing this [META](https://github.com/dbuenzli/result/blob/5524972bb80e8a67424bc5aa1706a8b875d6fe51/pkg/META#L10-L19) and [this](https://github.com/dbuenzli/result/blob/5524972bb80e8a67424bc5aa1706a8b875d6fe51/src/result_top.ml) loading code results in: \r\n\r\n```\r\n#require \"result.top\";;\r\n/Users/dbuenzli/.opam/doc/lib/ocaml/compiler-libs: added to search path\r\n/Users/dbuenzli/.opam/doc/lib/ocaml/compiler-libs/ocamlcommon.cma: loaded\r\n/Users/dbuenzli/.opam/doc/lib/ocaml/compiler-libs/ocamlbytecomp.cma: loaded\r\n/Users/dbuenzli/.opam/doc/lib/ocaml/compiler-libs/ocamltoplevel.cma: loaded\r\n/Users/dbuenzli/.opam/doc/lib/result: added to search path\r\n/Users/dbuenzli/.opam/doc/lib/result/result.cma: loaded\r\n/Users/dbuenzli/.opam/doc/lib/result/result_top.cma: loaded\r\nException:\r\nTypetexp.Error\r\n ({Location.loc_start =\r\n    {Lexing.pos_fname = \"\"; pos_lnum = 1; pos_bol = 0; pos_cnum = 5};\r\n   loc_end =\r\n    {Lexing.pos_fname = \"\"; pos_lnum = 1; pos_bol = 0; pos_cnum = 17};\r\n   loc_ghost = false},\r\n <abstr>, Typetexp.Unbound_module (Longident.Lident \"Result_infix\")).\r\n```\r\n\r\nHowever all the objects are here and visible as it should be:\r\n```\r\n> ls /Users/dbuenzli/.opam/doc/lib/result/\r\nMETA\t\t\tresult.cmx\t\tresult_infix.cmx\r\nopam.config\t\tresult.cmxa\t\tresult_infix.mli\r\nresult.a\t\tresult.cmxs\t\tresult_top.a\r\nresult.cma\t\tresult.mli\t\tresult_top.cma\r\nresult.cmi\t\tresult_infix.cmi\tresult_top.cmxa\r\nresult.cmti\t\tresult_infix.cmti\tresult_top.cmxs\r\n```\r\nand `result.cma` has the unit `Result_infix`:\r\n```\r\n> ocamlobjinfo result.cma\r\n[...]\r\nUnit name: Result_infix\r\n[...]\r\n```\r\n\r\nAny `ocamlfind` expert has an idea ? Can be tried by \r\n\r\n```\r\nopam pin add resultv http://erratique.ch/repos/resultv.git\r\n```\r\n\r\n\r\n"}}