{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/437","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/437/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/437/events","html_url":"https://github.com/commercialhaskell/stack/pull/437","id":91493963,"number":437,"title":"Add --external flag to `stack dot`","user":{"login":"markus1189","id":591567,"avatar_url":"https://avatars.githubusercontent.com/u/591567?v=3","gravatar_id":"","url":"https://api.github.com/users/markus1189","html_url":"https://github.com/markus1189","followers_url":"https://api.github.com/users/markus1189/followers","following_url":"https://api.github.com/users/markus1189/following{/other_user}","gists_url":"https://api.github.com/users/markus1189/gists{/gist_id}","starred_url":"https://api.github.com/users/markus1189/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markus1189/subscriptions","organizations_url":"https://api.github.com/users/markus1189/orgs","repos_url":"https://api.github.com/users/markus1189/repos","events_url":"https://api.github.com/users/markus1189/events{/privacy}","received_events_url":"https://api.github.com/users/markus1189/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/5","html_url":"https://github.com/commercialhaskell/stack/milestones/0.2.0.0","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/5/labels","id":1166824,"number":5,"title":"0.2.0.0","description":"Arbitrary date chosen, just to get the milestones to order nicely","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":44,"closed_issues":39,"state":"open","created_at":"2015-06-16T14:23:31Z","updated_at":"2015-06-28T18:17:47Z","due_on":"2015-07-12T21:00:00Z","closed_at":null},"comments":9,"created_at":"2015-06-27T17:24:09Z","updated_at":"2015-06-28T18:21:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/commercialhaskell/stack/pulls/437","html_url":"https://github.com/commercialhaskell/stack/pull/437","diff_url":"https://github.com/commercialhaskell/stack/pull/437.diff","patch_url":"https://github.com/commercialhaskell/stack/pull/437.patch"},"body":"When given `--external`, `stack dot` will include external dependencies.\r\n\r\nBy default it keeps the old behavior and only includes local packages and their interdependencies.\r\nIf `--external` is activated local packages will have the \"dashed\" line attribute so that one can distinguish local packages from external dependencies.\r\n\r\nAs an example, given a tree like this with two projects `one` and `two`:\r\n\r\n```\r\n├── [4.0K]  one\r\n│   ├── [ 686]  one.cabal\r\n│   └── [  46]  Setup.hs\r\n├── [  78]  stack.yaml\r\n└── [4.0K]  two\r\n    ├── [  46]  Setup.hs\r\n    └── [ 710]  two.cabal\r\n```\r\n\r\n`stack dot` will produce:\r\n![foo](https://cloud.githubusercontent.com/assets/591567/8393140/eebe06e2-1d01-11e5-86af-05e19cf1d2cc.png)\r\n\r\nwhile `stack dot --external` will produce:\r\n![foo](https://cloud.githubusercontent.com/assets/591567/8393125/293cda9c-1d01-11e5-8c43-242c8fbbb434.png)\r\n\r\nThis would also fix #431."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/116308008","html_url":"https://github.com/commercialhaskell/stack/pull/437#issuecomment-116308008","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/437","id":116308008,"user":{"login":"markus1189","id":591567,"avatar_url":"https://avatars.githubusercontent.com/u/591567?v=3","gravatar_id":"","url":"https://api.github.com/users/markus1189","html_url":"https://github.com/markus1189","followers_url":"https://api.github.com/users/markus1189/followers","following_url":"https://api.github.com/users/markus1189/following{/other_user}","gists_url":"https://api.github.com/users/markus1189/gists{/gist_id}","starred_url":"https://api.github.com/users/markus1189/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markus1189/subscriptions","organizations_url":"https://api.github.com/users/markus1189/orgs","repos_url":"https://api.github.com/users/markus1189/repos","events_url":"https://api.github.com/users/markus1189/events{/privacy}","received_events_url":"https://api.github.com/users/markus1189/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T18:21:16Z","updated_at":"2015-06-28T18:21:16Z","body":"Yes thanks that definitely helps.  I think I will have something working soon, I'll let you know."}}