{"action":"created","issue":{"url":"https://api.github.com/repos/ndmitchell/ghcid/issues/36","repository_url":"https://api.github.com/repos/ndmitchell/ghcid","labels_url":"https://api.github.com/repos/ndmitchell/ghcid/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/ndmitchell/ghcid/issues/36/comments","events_url":"https://api.github.com/repos/ndmitchell/ghcid/issues/36/events","html_url":"https://github.com/ndmitchell/ghcid/issues/36","id":82424120,"number":36,"title":"Issues with \"Prelude.hs\" in the same folder","user":{"login":"Duta","id":2664553,"avatar_url":"https://avatars.githubusercontent.com/u/2664553?v=3","gravatar_id":"","url":"https://api.github.com/users/Duta","html_url":"https://github.com/Duta","followers_url":"https://api.github.com/users/Duta/followers","following_url":"https://api.github.com/users/Duta/following{/other_user}","gists_url":"https://api.github.com/users/Duta/gists{/gist_id}","starred_url":"https://api.github.com/users/Duta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Duta/subscriptions","organizations_url":"https://api.github.com/users/Duta/orgs","repos_url":"https://api.github.com/users/Duta/repos","events_url":"https://api.github.com/users/Duta/events{/privacy}","received_events_url":"https://api.github.com/users/Duta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-29T13:18:08Z","updated_at":"2016-02-23T09:51:13Z","closed_at":null,"body":"### `Prelude.hs`\r\n    module Prelude where\r\n\r\n### `A.hs`\r\n    module A where\r\n\r\n* * *\r\n\r\n# Situation 1 Structure:\r\n    ./Prelude.hs\r\n    ./A.hs\r\n    ./.ghci\r\n\r\nwhere `./.ghci` is\r\n\r\n    :load A\r\n\r\n* * *\r\n\r\n# Situation 2 Structure:\r\n    src/Prelude.hs\r\n    src/A.hs\r\n    ./.ghci\r\n\r\nwhere `./.ghci` is\r\n\r\n    :set -isrc\r\n    :load A\r\n\r\n* * *\r\n\r\nRunning `ghcid` in situation 1 gives: `ghcid.exe: UnexpectedExit \"ghci\" \"\"`\r\n\r\nRunning `ghcid` in situation 2 gets stuck in `Loading...` forever"},"comment":{"url":"https://api.github.com/repos/ndmitchell/ghcid/issues/comments/187629020","html_url":"https://github.com/ndmitchell/ghcid/issues/36#issuecomment-187629020","issue_url":"https://api.github.com/repos/ndmitchell/ghcid/issues/36","id":187629020,"user":{"login":"ndmitchell","id":1651197,"avatar_url":"https://avatars.githubusercontent.com/u/1651197?v=3","gravatar_id":"","url":"https://api.github.com/users/ndmitchell","html_url":"https://github.com/ndmitchell","followers_url":"https://api.github.com/users/ndmitchell/followers","following_url":"https://api.github.com/users/ndmitchell/following{/other_user}","gists_url":"https://api.github.com/users/ndmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/ndmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndmitchell/subscriptions","organizations_url":"https://api.github.com/users/ndmitchell/orgs","repos_url":"https://api.github.com/users/ndmitchell/repos","events_url":"https://api.github.com/users/ndmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/ndmitchell/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T09:51:13Z","updated_at":"2016-02-23T09:51:13Z","body":"I think turning on package imports, doing import qualified \"base\" Prelude as MyUniquePreludeString, and then prodding MyUniquePreludeString should do it. The only issue is that turning on package imports might cause a program to work that otherwise didn't, so it's not free.\r\n\r\nAn alternative is to call `GHC.Err.error` (or something from `Control.Exception`) and `System.IO.putStrLn` so they don't clash with Prelude.\r\n\r\nHowever, I have a feeling that people developing new Prelude's should call them MyPrelude.hs otherwise its going to get into a mess for all tools. And as such, not fixing anything might be the best approach."}}