{"action":"opened","issue":{"url":"https://api.github.com/repos/haskell/haddock/issues/363","labels_url":"https://api.github.com/repos/haskell/haddock/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/haskell/haddock/issues/363/comments","events_url":"https://api.github.com/repos/haskell/haddock/issues/363/events","html_url":"https://github.com/haskell/haddock/issues/363","id":56131266,"number":363,"title":"Haddock sometimes fails with \"internal error: expectJust getPackageDetails\"","user":{"login":"edsko","id":935288,"avatar_url":"https://avatars.githubusercontent.com/u/935288?v=3","gravatar_id":"","url":"https://api.github.com/users/edsko","html_url":"https://github.com/edsko","followers_url":"https://api.github.com/users/edsko/followers","following_url":"https://api.github.com/users/edsko/following{/other_user}","gists_url":"https://api.github.com/users/edsko/gists{/gist_id}","starred_url":"https://api.github.com/users/edsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edsko/subscriptions","organizations_url":"https://api.github.com/users/edsko/orgs","repos_url":"https://api.github.com/users/edsko/repos","events_url":"https://api.github.com/users/edsko/events{/privacy}","received_events_url":"https://api.github.com/users/edsko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-31T17:05:26Z","updated_at":"2015-01-31T17:05:26Z","closed_at":null,"body":"Function `modulePackageInfo` from the `haddock-api` library calls \r\n\r\n```\r\ngetPackageDetails :: DynFlags -> PackageKey -> PackageConfig\r\n```\r\n\r\nfrom `ghc`, which throws the runtime error `expectJust getPackageDetails` when the package key does not exist in the database. Note that this expects a package _key_; so this is almost certainly related to #362."}}