{"action":"created","issue":{"url":"https://api.github.com/repos/tweag/rules_haskell/issues/147","repository_url":"https://api.github.com/repos/tweag/rules_haskell","labels_url":"https://api.github.com/repos/tweag/rules_haskell/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/tweag/rules_haskell/issues/147/comments","events_url":"https://api.github.com/repos/tweag/rules_haskell/issues/147/events","html_url":"https://github.com/tweag/rules_haskell/pull/147","id":298854183,"number":147,"title":"Resolve the “file name does not match module name” issue","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":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-21T06:17:47Z","updated_at":"2018-02-21T07:49:15Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/tweag/rules_haskell/pulls/147","html_url":"https://github.com/tweag/rules_haskell/pull/147","diff_url":"https://github.com/tweag/rules_haskell/pull/147.diff","patch_url":"https://github.com/tweag/rules_haskell/pull/147.patch"},"body":"Close #145, close #139.\r\n\r\nThis resolves the issue for the `jvm-streaming` package but I could not reproduce the problem in isolation in our test suite. It makes sense to assume that the problem should have to do with directory structure/file names/module names. I re-created all of this in my test and upon inspection of actual calls to `ghc`, they were virtually identical (sans concrete module names). Yet in the case of `jvm-streaming` we get the error message complaining about the mismatch, while in the other case the test passes.\r\n\r\nI further attempted to bring the two cases closer by commenting out `deps` and `prebuilt_dependencies` in the BUILD file of `jvm-streaming`, thinking that since these fields are present in `jvm-steraming` and not in my test, they may somehow make the difference, but that also did not help. `jvm-streaming` fails and my test passes.\r\n\r\nI'm out of ideas, it looks like an inconsistent behavior of GHC."},"comment":{"url":"https://api.github.com/repos/tweag/rules_haskell/issues/comments/367240417","html_url":"https://github.com/tweag/rules_haskell/pull/147#issuecomment-367240417","issue_url":"https://api.github.com/repos/tweag/rules_haskell/issues/147","id":367240417,"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},"created_at":"2018-02-21T07:49:15Z","updated_at":"2018-02-21T07:49:15Z","author_association":"MEMBER","body":"This also happens to resolve #139. I'll take another look maybe I can manage to reproduce it in isolation by taking inspiration from 139 maybe..."}}
{"actor":{"display_login":"mrkkrp"}}