{"action":"created","issue":{"url":"https://api.github.com/repos/gerdstolpmann/omake/issues/25","repository_url":"https://api.github.com/repos/gerdstolpmann/omake","labels_url":"https://api.github.com/repos/gerdstolpmann/omake/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/gerdstolpmann/omake/issues/25/comments","events_url":"https://api.github.com/repos/gerdstolpmann/omake/issues/25/events","html_url":"https://github.com/gerdstolpmann/omake/issues/25","id":140296487,"number":25,"title":"omake can't handle .mli only modules","user":{"login":"rgrinberg","id":139003,"avatar_url":"https://avatars.githubusercontent.com/u/139003?v=3","gravatar_id":"","url":"https://api.github.com/users/rgrinberg","html_url":"https://github.com/rgrinberg","followers_url":"https://api.github.com/users/rgrinberg/followers","following_url":"https://api.github.com/users/rgrinberg/following{/other_user}","gists_url":"https://api.github.com/users/rgrinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rgrinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgrinberg/subscriptions","organizations_url":"https://api.github.com/users/rgrinberg/orgs","repos_url":"https://api.github.com/users/rgrinberg/repos","events_url":"https://api.github.com/users/rgrinberg/events{/privacy}","received_events_url":"https://api.github.com/users/rgrinberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-11T21:26:31Z","updated_at":"2016-05-04T14:57:49Z","closed_at":null,"body":"Modules that only have `.ml` and not `.mli` files cannot be used as sources. I've only tested this `$(OCamlLibrary ..)` but it's likely to be a problem with Program/Package as well."},"comment":{"url":"https://api.github.com/repos/gerdstolpmann/omake/issues/comments/216891625","html_url":"https://github.com/gerdstolpmann/omake/issues/25#issuecomment-216891625","issue_url":"https://api.github.com/repos/gerdstolpmann/omake/issues/25","id":216891625,"user":{"login":"gerdstolpmann","id":1489498,"avatar_url":"https://avatars.githubusercontent.com/u/1489498?v=3","gravatar_id":"","url":"https://api.github.com/users/gerdstolpmann","html_url":"https://github.com/gerdstolpmann","followers_url":"https://api.github.com/users/gerdstolpmann/followers","following_url":"https://api.github.com/users/gerdstolpmann/following{/other_user}","gists_url":"https://api.github.com/users/gerdstolpmann/gists{/gist_id}","starred_url":"https://api.github.com/users/gerdstolpmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerdstolpmann/subscriptions","organizations_url":"https://api.github.com/users/gerdstolpmann/orgs","repos_url":"https://api.github.com/users/gerdstolpmann/repos","events_url":"https://api.github.com/users/gerdstolpmann/events{/privacy}","received_events_url":"https://api.github.com/users/gerdstolpmann/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T14:57:49Z","updated_at":"2016-05-04T14:57:49Z","body":"It's already quite brittle, because there are type definitions that require some minimal RTTI, namely extensible types. So, `type t = X|Y` works mli-only but `type t = <> type t += X|Y` does not (same as exceptions).\r\n\r\nI was thinking about adding a macro that compiles the mli as ml, using `ocamlopt -impl file.mli` to provide a little bit more of automation for people who like that, while keeping it easy enough so that you don't need to know the internals of the type representation to use it. That would be simply a call\r\n\r\n`DeclareMLIOnly(modules ...)`\r\n\r\nand the required flags would be added."}}