{"action":"created","issue":{"url":"https://api.github.com/repos/tweag/rules_haskell/issues/125","repository_url":"https://api.github.com/repos/tweag/rules_haskell","labels_url":"https://api.github.com/repos/tweag/rules_haskell/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/tweag/rules_haskell/issues/125/comments","events_url":"https://api.github.com/repos/tweag/rules_haskell/issues/125/events","html_url":"https://github.com/tweag/rules_haskell/issues/125","id":296179132,"number":125,"title":"Haddock does not create hyperlinks to things coming from pre-built dependencies","user":{"login":"mrkkrp","id":8165792,"avatar_url":"https://avatars0.githubusercontent.com/u/8165792?v=4","gravatar_id":"","url":"https://api.github.com/users/mrkkrp","html_url":"https://github.com/mrkkrp","followers_url":"https://api.github.com/users/mrkkrp/followers","following_url":"https://api.github.com/users/mrkkrp/following{/other_user}","gists_url":"https://api.github.com/users/mrkkrp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkkrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkkrp/subscriptions","organizations_url":"https://api.github.com/users/mrkkrp/orgs","repos_url":"https://api.github.com/users/mrkkrp/repos","events_url":"https://api.github.com/users/mrkkrp/events{/privacy}","received_events_url":"https://api.github.com/users/mrkkrp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-11T10:25:27Z","updated_at":"2018-02-11T11:19:42Z","closed_at":"2018-02-11T11:15:14Z","author_association":"MEMBER","body":"While working on #124, I noticed that `haskell_doc` does not generate links to things from pre-built dependencies such as `base`. For example, in one of our tests, no link to `Int` is created. This sucks.\r\n\r\nI checked what Cabal does and it looks like we must pass `--read-interface` arguments even for pre-built dependencies because Haddock cannot figure out this on its own (I confirmed that this works).\r\n\r\nSo we need to find out locations of HTML directory and Haddock interface file for pre-built library X. This can be done on the command line like this:\r\n\r\n```\r\n[mark@arch ~]$ ghc-pkg field base haddock-interfaces\r\nhaddock-interfaces: /usr/share/doc/ghc/html/libraries/base-4.10.1.0/base.haddock\r\n[mark@arch ~]$ ghc-pkg field base haddock-html\r\nhaddock-html: /usr/share/doc/ghc/html/libraries/base-4.10.1.0\r\n```\r\n\r\nThe problem, of course, is that it's not possible to grab output of shell commands in rule implementations, and that's intentional afaicu. I'm not sure yet what is the correct way to make it work."},"comment":{"url":"https://api.github.com/repos/tweag/rules_haskell/issues/comments/364743770","html_url":"https://github.com/tweag/rules_haskell/issues/125#issuecomment-364743770","issue_url":"https://api.github.com/repos/tweag/rules_haskell/issues/125","id":364743770,"user":{"login":"Fuuzetsu","id":893115,"avatar_url":"https://avatars2.githubusercontent.com/u/893115?v=4","gravatar_id":"","url":"https://api.github.com/users/Fuuzetsu","html_url":"https://github.com/Fuuzetsu","followers_url":"https://api.github.com/users/Fuuzetsu/followers","following_url":"https://api.github.com/users/Fuuzetsu/following{/other_user}","gists_url":"https://api.github.com/users/Fuuzetsu/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuuzetsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuuzetsu/subscriptions","organizations_url":"https://api.github.com/users/Fuuzetsu/orgs","repos_url":"https://api.github.com/users/Fuuzetsu/repos","events_url":"https://api.github.com/users/Fuuzetsu/events{/privacy}","received_events_url":"https://api.github.com/users/Fuuzetsu/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T11:19:42Z","updated_at":"2018-02-11T11:19:42Z","author_association":"MEMBER","body":"Seems second half of my comment is incorrect."}}
{"actor":{"display_login":"Fuuzetsu"}}