{"action":"created","issue":{"url":"https://api.github.com/repos/ark-lang/ark/issues/463","labels_url":"https://api.github.com/repos/ark-lang/ark/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/ark-lang/ark/issues/463/comments","events_url":"https://api.github.com/repos/ark-lang/ark/issues/463/events","html_url":"https://github.com/ark-lang/ark/issues/463","id":92777228,"number":463,"title":"Directory based modules + cycled imports","user":{"login":"felixangell","id":6254332,"avatar_url":"https://avatars.githubusercontent.com/u/6254332?v=3","gravatar_id":"","url":"https://api.github.com/users/felixangell","html_url":"https://github.com/felixangell","followers_url":"https://api.github.com/users/felixangell/followers","following_url":"https://api.github.com/users/felixangell/following{/other_user}","gists_url":"https://api.github.com/users/felixangell/gists{/gist_id}","starred_url":"https://api.github.com/users/felixangell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixangell/subscriptions","organizations_url":"https://api.github.com/users/felixangell/orgs","repos_url":"https://api.github.com/users/felixangell/repos","events_url":"https://api.github.com/users/felixangell/events{/privacy}","received_events_url":"https://api.github.com/users/felixangell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ark-lang/ark/labels/semantic","name":"semantic","color":"d4c5f9"},{"url":"https://api.github.com/repos/ark-lang/ark/labels/TODO","name":"TODO","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-03T02:34:57Z","updated_at":"2015-07-03T07:14:02Z","closed_at":null,"body":"After issue #462 is closed, we should allow for directory based modules, i.e. a module is a directory instead of a file - which is how it is handled now. Also, cycled imports should be disallowed, e.g:\r\n\r\n![screen shot 2015-07-03 at 03 34 30](https://cloud.githubusercontent.com/assets/6254332/8491608/70c7f9e6-2134-11e5-87e4-d79226895c14.png)\r\n\r\nAs shown in the diagram above, A uses B, which uses C, which uses A. This would probably occur in the semantic analysis stage?"},"comment":{"url":"https://api.github.com/repos/ark-lang/ark/issues/comments/118258252","html_url":"https://github.com/ark-lang/ark/issues/463#issuecomment-118258252","issue_url":"https://api.github.com/repos/ark-lang/ark/issues/463","id":118258252,"user":{"login":"SamTebbs33","id":1929466,"avatar_url":"https://avatars.githubusercontent.com/u/1929466?v=3","gravatar_id":"","url":"https://api.github.com/users/SamTebbs33","html_url":"https://github.com/SamTebbs33","followers_url":"https://api.github.com/users/SamTebbs33/followers","following_url":"https://api.github.com/users/SamTebbs33/following{/other_user}","gists_url":"https://api.github.com/users/SamTebbs33/gists{/gist_id}","starred_url":"https://api.github.com/users/SamTebbs33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamTebbs33/subscriptions","organizations_url":"https://api.github.com/users/SamTebbs33/orgs","repos_url":"https://api.github.com/users/SamTebbs33/repos","events_url":"https://api.github.com/users/SamTebbs33/events{/privacy}","received_events_url":"https://api.github.com/users/SamTebbs33/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T07:14:02Z","updated_at":"2015-07-03T07:14:02Z","body":"@felixangell Ah, I see. How would you designate which files in a directory are included in the module? Would every file within a sub-directory become part of the module (and likewise, would a module be created for each sub-directory?), or would they have to explicitly declare it using the sub-directory's name (perhaps using the current module declaration syntax with the braces) ?"}}