{"action":"created","issue":{"url":"https://api.github.com/repos/karun012/doctest-discover/issues/9","repository_url":"https://api.github.com/repos/karun012/doctest-discover","labels_url":"https://api.github.com/repos/karun012/doctest-discover/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/karun012/doctest-discover/issues/9/comments","events_url":"https://api.github.com/repos/karun012/doctest-discover/issues/9/events","html_url":"https://github.com/karun012/doctest-discover/issues/9","id":253105319,"number":9,"title":"Doesn't seem to work","user":{"login":"pbrisbin","id":50812,"avatar_url":"https://avatars3.githubusercontent.com/u/50812?v=4","gravatar_id":"","url":"https://api.github.com/users/pbrisbin","html_url":"https://github.com/pbrisbin","followers_url":"https://api.github.com/users/pbrisbin/followers","following_url":"https://api.github.com/users/pbrisbin/following{/other_user}","gists_url":"https://api.github.com/users/pbrisbin/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrisbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrisbin/subscriptions","organizations_url":"https://api.github.com/users/pbrisbin/orgs","repos_url":"https://api.github.com/users/pbrisbin/repos","events_url":"https://api.github.com/users/pbrisbin/events{/privacy}","received_events_url":"https://api.github.com/users/pbrisbin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-26T16:22:08Z","updated_at":"2018-03-06T20:59:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Apologies in advance if I'm missing something, but I can't seem to get this library to find my source files.\r\n\r\n```console\r\n% ls src/**/*.hs\r\nsrc/Data/Text/Escaped.hs\r\n% stack exec doctest-discover \"\" \"\" /dev/stdout\r\nmodule Main where\r\nimport Test.DocTest\r\nmain :: IO ()\r\nmain = doctest [\"-i/src\"]\r\n```\r\n\r\nI expected such an invocation to generate this:\r\n\r\n```hs\r\nmodule Main where\r\nimport Test.DocTest\r\nmain :: IO ()\r\nmain = doctest [\"-isrc\", \"src/Data/Text/Escaped.hs\"]\r\n```\r\n\r\nIt's unclear to me why `-i` gets an absolute of `/src` rather than the relative `src`. I can get `doctest` to work with or without that option being correct (as long as I provide the `.hs` files), but that might explain why doctest-discover isn't finding source files (i.e. maybe it's looking for `/src/**/*.hs`)."},"comment":{"url":"https://api.github.com/repos/karun012/doctest-discover/issues/comments/370926261","html_url":"https://github.com/karun012/doctest-discover/issues/9#issuecomment-370926261","issue_url":"https://api.github.com/repos/karun012/doctest-discover/issues/9","id":370926261,"user":{"login":"karun012","id":2170863,"avatar_url":"https://avatars3.githubusercontent.com/u/2170863?v=4","gravatar_id":"","url":"https://api.github.com/users/karun012","html_url":"https://github.com/karun012","followers_url":"https://api.github.com/users/karun012/followers","following_url":"https://api.github.com/users/karun012/following{/other_user}","gists_url":"https://api.github.com/users/karun012/gists{/gist_id}","starred_url":"https://api.github.com/users/karun012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karun012/subscriptions","organizations_url":"https://api.github.com/users/karun012/orgs","repos_url":"https://api.github.com/users/karun012/repos","events_url":"https://api.github.com/users/karun012/events{/privacy}","received_events_url":"https://api.github.com/users/karun012/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T20:59:58Z","updated_at":"2018-03-06T20:59:58Z","author_association":"OWNER","body":"I fixed the sorting issue. I'm just sorting all the paths before it returns. If the next build passes, I'll bump the version so that it gets uploaded to hackage. "}}
{"actor":{"display_login":"karun012"}}