{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1827","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1827/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1827/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1827/events","html_url":"https://github.com/commercialhaskell/stack/issues/1827","id":135580694,"number":1827,"title":"Multiple-package stack ghci gets confused on camel-cased module names in explicit packages","user":{"login":"ozataman","id":13820,"avatar_url":"https://avatars.githubusercontent.com/u/13820?v=3","gravatar_id":"","url":"https://api.github.com/users/ozataman","html_url":"https://github.com/ozataman","followers_url":"https://api.github.com/users/ozataman/followers","following_url":"https://api.github.com/users/ozataman/following{/other_user}","gists_url":"https://api.github.com/users/ozataman/gists{/gist_id}","starred_url":"https://api.github.com/users/ozataman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozataman/subscriptions","organizations_url":"https://api.github.com/users/ozataman/orgs","repos_url":"https://api.github.com/users/ozataman/repos","events_url":"https://api.github.com/users/ozataman/events{/privacy}","received_events_url":"https://api.github.com/users/ozataman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/component:%20ghci","name":"component: ghci","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/8","html_url":"https://github.com/commercialhaskell/stack/milestones/Support","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/8/labels","id":1208081,"number":8,"title":"Support","description":"Issues without clear work items for the codebase","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":105,"state":"open","created_at":"2015-07-14T20:38:48Z","updated_at":"2016-02-24T18:51:31Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-02-22T23:39:56Z","updated_at":"2016-02-24T18:51:31Z","closed_at":"2016-02-24T18:51:31Z","body":"My apologies if this is an already known issue - I wasn't able to find a matching item in a quick scan just now.\r\n\r\nHere's the setting where I've run into this issue (proprietary codebase, so I can't just share the entire setting unfortunately):\r\n\r\n- Latest released stack (via `stack upgrade`)\r\n- GHC 7.8\r\n- Shell is on ZSH (via oh-my-zsh)\r\n- Multiple package stack project\r\n- One of the packages has module names that are camel cased. In this case, the module in question is `RedSql.Types`.\r\n- `stack build` by itself runs just fine and builds all of the packages in the project. No issues there.\r\n- `stack repl` seems to have the behavior of re-interpreting ALL of the modules in every package explicitly included in the project.\r\n- Loading a specific ad-hoc haskell file up in `stack repl` via `:load`\r\n- Loaded file imports `RedSql.Types`, which is one of the packages in the project. This is where the problem is.\r\n\r\nTrying to do the above load produces the following error:\r\n\r\n```\r\n/..../myProject/vendor/aws-redshift/src/Redsql/Types.hs:17:8:\r\n    File name does not match module name:\r\n    Saw: ‘RedSql.Types’\r\n    Expected: ‘Redsql.Types’\r\nFailed, modules loaded: none.\r\nPrelude>\r\n```\r\n\r\nPlease note there is in fact no issue with the path or folder names. In the filesystem, the folder is called 'RedSql' and not 'Redsql'. Something somewhere seems to lose the case information and just convert module segments to titlecase, which I believe is in turn confusing GHC."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/188403406","html_url":"https://github.com/commercialhaskell/stack/issues/1827#issuecomment-188403406","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1827","id":188403406,"user":{"login":"ozataman","id":13820,"avatar_url":"https://avatars.githubusercontent.com/u/13820?v=3","gravatar_id":"","url":"https://api.github.com/users/ozataman","html_url":"https://github.com/ozataman","followers_url":"https://api.github.com/users/ozataman/followers","following_url":"https://api.github.com/users/ozataman/following{/other_user}","gists_url":"https://api.github.com/users/ozataman/gists{/gist_id}","starred_url":"https://api.github.com/users/ozataman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozataman/subscriptions","organizations_url":"https://api.github.com/users/ozataman/orgs","repos_url":"https://api.github.com/users/ozataman/repos","events_url":"https://api.github.com/users/ozataman/events{/privacy}","received_events_url":"https://api.github.com/users/ozataman/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T18:51:31Z","updated_at":"2016-02-24T18:51:31Z","body":"@mgsloan Thanks for looking into this so quickly! \r\n\r\nIt seems like the issue was a temporary/local artifact that I wasn't able to rule out when I filed the ticket. I just started fresh (new clone, fresh stack init, etc.) to make sure and everything seems OK. Sorry for the scare - I'm closing the issue."}}