{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1382","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1382/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1382/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1382/events","html_url":"https://github.com/commercialhaskell/stack/pull/1382","id":118022700,"number":1382,"title":"Simplify calculation of build warnings","user":{"login":"sjakobi","id":3664523,"avatar_url":"https://avatars.githubusercontent.com/u/3664523?v=3","gravatar_id":"","url":"https://api.github.com/users/sjakobi","html_url":"https://github.com/sjakobi","followers_url":"https://api.github.com/users/sjakobi/followers","following_url":"https://api.github.com/users/sjakobi/following{/other_user}","gists_url":"https://api.github.com/users/sjakobi/gists{/gist_id}","starred_url":"https://api.github.com/users/sjakobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjakobi/subscriptions","organizations_url":"https://api.github.com/users/sjakobi/orgs","repos_url":"https://api.github.com/users/sjakobi/repos","events_url":"https://api.github.com/users/sjakobi/events{/privacy}","received_events_url":"https://api.github.com/users/sjakobi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T11:38:00Z","updated_at":"2015-11-20T11:45:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/commercialhaskell/stack/pulls/1382","html_url":"https://github.com/commercialhaskell/stack/pull/1382","diff_url":"https://github.com/commercialhaskell/stack/pull/1382.diff","patch_url":"https://github.com/commercialhaskell/stack/pull/1382.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/158371701","html_url":"https://github.com/commercialhaskell/stack/pull/1382#issuecomment-158371701","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1382","id":158371701,"user":{"login":"sjakobi","id":3664523,"avatar_url":"https://avatars.githubusercontent.com/u/3664523?v=3","gravatar_id":"","url":"https://api.github.com/users/sjakobi","html_url":"https://github.com/sjakobi","followers_url":"https://api.github.com/users/sjakobi/followers","following_url":"https://api.github.com/users/sjakobi/following{/other_user}","gists_url":"https://api.github.com/users/sjakobi/gists{/gist_id}","starred_url":"https://api.github.com/users/sjakobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjakobi/subscriptions","organizations_url":"https://api.github.com/users/sjakobi/orgs","repos_url":"https://api.github.com/users/sjakobi/repos","events_url":"https://api.github.com/users/sjakobi/events{/privacy}","received_events_url":"https://api.github.com/users/sjakobi/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T11:45:52Z","updated_at":"2015-11-20T11:45:52Z","body":"Sorry for coming up with this just after #1373 has been merged but it just so happened that I had a closer look at the documentation for Data.Map.\r\nI realized that the combination of `mapMaybe` and `intersectionWith` would probably be more intuitive than the more complex `mergeWithKey`.\r\nThe usage of `NonEmpty` removes the case where `pkgsToBuild` could in principle be empty."}}