{"action":"created","comment":{"url":"https://api.github.com/repos/zalora/getopt-generics/pulls/comments/27855251","id":27855251,"diff_hunk":"@@ -117,3 +117,12 @@ next2 = do\n     it \"turns camelCase selectors to lowercase and seperates with a dash\" $ do\n         withArgs (words \"--camel-case foo\") $ withArguments $ \\ options ->\n           options `shouldBe` CamelCaseOptions \"foo\"\n+\n+  describe \"parseArguments\" $ do\n+    it \"allows hints for short options\" $ do\n+      parseArguments \"header\" [Short \"camel-case\" 'x'] (words \"-x foo\")\n+        `shouldBe` Success (CamelCaseOptions \"foo\")\n+\n+    it \"allows hints in camelCase\" $ do\n+      parseArguments \"header\" [Short \"camelCase\" 'x'] (words \"-x foo\")\n+        `shouldBe` Success (CamelCaseOptions \"foo\")","path":"test/System/Console/GetOpt/GenericsSpec.hs","position":12,"original_position":12,"commit_id":"a43f54f827afeea2f838da361afe326710008a10","original_commit_id":"a43f54f827afeea2f838da361afe326710008a10","user":{"login":"sol","id":461132,"avatar_url":"https://avatars.githubusercontent.com/u/461132?v=3","gravatar_id":"","url":"https://api.github.com/users/sol","html_url":"https://github.com/sol","followers_url":"https://api.github.com/users/sol/followers","following_url":"https://api.github.com/users/sol/following{/other_user}","gists_url":"https://api.github.com/users/sol/gists{/gist_id}","starred_url":"https://api.github.com/users/sol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sol/subscriptions","organizations_url":"https://api.github.com/users/sol/orgs","repos_url":"https://api.github.com/users/sol/repos","events_url":"https://api.github.com/users/sol/events{/privacy}","received_events_url":"https://api.github.com/users/sol/received_events","type":"User","site_admin":false},"body":"Having both `camelCase` and dash-separated work is not essential for me.  But I can see how it may be useful/convenient at times.","created_at":"2015-04-07T07:04:26Z","updated_at":"2015-04-07T07:04:26Z","html_url":"https://github.com/zalora/getopt-generics/pull/8#discussion_r27855251","pull_request_url":"https://api.github.com/repos/zalora/getopt-generics/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/zalora/getopt-generics/pulls/comments/27855251"},"html":{"href":"https://github.com/zalora/getopt-generics/pull/8#discussion_r27855251"},"pull_request":{"href":"https://api.github.com/repos/zalora/getopt-generics/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/zalora/getopt-generics/pulls/8","id":32733298,"html_url":"https://github.com/zalora/getopt-generics/pull/8","diff_url":"https://github.com/zalora/getopt-generics/pull/8.diff","patch_url":"https://github.com/zalora/getopt-generics/pull/8.patch","issue_url":"https://api.github.com/repos/zalora/getopt-generics/issues/8","number":8,"state":"open","locked":false,"title":"Short options","user":{"login":"soenkehahn","id":402539,"avatar_url":"https://avatars.githubusercontent.com/u/402539?v=3","gravatar_id":"","url":"https://api.github.com/users/soenkehahn","html_url":"https://github.com/soenkehahn","followers_url":"https://api.github.com/users/soenkehahn/followers","following_url":"https://api.github.com/users/soenkehahn/following{/other_user}","gists_url":"https://api.github.com/users/soenkehahn/gists{/gist_id}","starred_url":"https://api.github.com/users/soenkehahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soenkehahn/subscriptions","organizations_url":"https://api.github.com/users/soenkehahn/orgs","repos_url":"https://api.github.com/users/soenkehahn/repos","events_url":"https://api.github.com/users/soenkehahn/events{/privacy}","received_events_url":"https://api.github.com/users/soenkehahn/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-07T04:47:35Z","updated_at":"2015-04-07T07:04:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95994eb6cb6b45041439c9680faf91590455f118","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zalora/getopt-generics/pulls/8/commits","review_comments_url":"https://api.github.com/repos/zalora/getopt-generics/pulls/8/comments","review_comment_url":"https://api.github.com/repos/zalora/getopt-generics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalora/getopt-generics/issues/8/comments","statuses_url":"https://api.github.com/repos/zalora/getopt-generics/statuses/a43f54f827afeea2f838da361afe326710008a10","head":{"label":"zalora:short-options","ref":"short-options","sha":"a43f54f827afeea2f838da361afe326710008a10","user":{"login":"zalora","id":3175092,"avatar_url":"https://avatars.githubusercontent.com/u/3175092?v=3","gravatar_id":"","url":"https://api.github.com/users/zalora","html_url":"https://github.com/zalora","followers_url":"https://api.github.com/users/zalora/followers","following_url":"https://api.github.com/users/zalora/following{/other_user}","gists_url":"https://api.github.com/users/zalora/gists{/gist_id}","starred_url":"https://api.github.com/users/zalora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalora/subscriptions","organizations_url":"https://api.github.com/users/zalora/orgs","repos_url":"https://api.github.com/users/zalora/repos","events_url":"https://api.github.com/users/zalora/events{/privacy}","received_events_url":"https://api.github.com/users/zalora/received_events","type":"Organization","site_admin":false},"repo":{"id":32302895,"name":"getopt-generics","full_name":"zalora/getopt-generics","owner":{"login":"zalora","id":3175092,"avatar_url":"https://avatars.githubusercontent.com/u/3175092?v=3","gravatar_id":"","url":"https://api.github.com/users/zalora","html_url":"https://github.com/zalora","followers_url":"https://api.github.com/users/zalora/followers","following_url":"https://api.github.com/users/zalora/following{/other_user}","gists_url":"https://api.github.com/users/zalora/gists{/gist_id}","starred_url":"https://api.github.com/users/zalora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalora/subscriptions","organizations_url":"https://api.github.com/users/zalora/orgs","repos_url":"https://api.github.com/users/zalora/repos","events_url":"https://api.github.com/users/zalora/events{/privacy}","received_events_url":"https://api.github.com/users/zalora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalora/getopt-generics","description":"","fork":false,"url":"https://api.github.com/repos/zalora/getopt-generics","forks_url":"https://api.github.com/repos/zalora/getopt-generics/forks","keys_url":"https://api.github.com/repos/zalora/getopt-generics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalora/getopt-generics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalora/getopt-generics/teams","hooks_url":"https://api.github.com/repos/zalora/getopt-generics/hooks","issue_events_url":"https://api.github.com/repos/zalora/getopt-generics/issues/events{/number}","events_url":"https://api.github.com/repos/zalora/getopt-generics/events","assignees_url":"https://api.github.com/repos/zalora/getopt-generics/assignees{/user}","branches_url":"https://api.github.com/repos/zalora/getopt-generics/branches{/branch}","tags_url":"https://api.github.com/repos/zalora/getopt-generics/tags","blobs_url":"https://api.github.com/repos/zalora/getopt-generics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalora/getopt-generics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalora/getopt-generics/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalora/getopt-generics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalora/getopt-generics/statuses/{sha}","languages_url":"https://api.github.com/repos/zalora/getopt-generics/languages","stargazers_url":"https://api.github.com/repos/zalora/getopt-generics/stargazers","contributors_url":"https://api.github.com/repos/zalora/getopt-generics/contributors","subscribers_url":"https://api.github.com/repos/zalora/getopt-generics/subscribers","subscription_url":"https://api.github.com/repos/zalora/getopt-generics/subscription","commits_url":"https://api.github.com/repos/zalora/getopt-generics/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalora/getopt-generics/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalora/getopt-generics/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalora/getopt-generics/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalora/getopt-generics/contents/{+path}","compare_url":"https://api.github.com/repos/zalora/getopt-generics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalora/getopt-generics/merges","archive_url":"https://api.github.com/repos/zalora/getopt-generics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalora/getopt-generics/downloads","issues_url":"https://api.github.com/repos/zalora/getopt-generics/issues{/number}","pulls_url":"https://api.github.com/repos/zalora/getopt-generics/pulls{/number}","milestones_url":"https://api.github.com/repos/zalora/getopt-generics/milestones{/number}","notifications_url":"https://api.github.com/repos/zalora/getopt-generics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalora/getopt-generics/labels{/name}","releases_url":"https://api.github.com/repos/zalora/getopt-generics/releases{/id}","created_at":"2015-03-16T05:15:07Z","updated_at":"2015-03-30T12:38:50Z","pushed_at":"2015-04-07T06:54:04Z","git_url":"git://github.com/zalora/getopt-generics.git","ssh_url":"git@github.com:zalora/getopt-generics.git","clone_url":"https://github.com/zalora/getopt-generics.git","svn_url":"https://github.com/zalora/getopt-generics","homepage":null,"size":329,"stargazers_count":3,"watchers_count":3,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"zalora:master","ref":"master","sha":"01ac3b94040158fc420f98c12a37f7a62e7a02c0","user":{"login":"zalora","id":3175092,"avatar_url":"https://avatars.githubusercontent.com/u/3175092?v=3","gravatar_id":"","url":"https://api.github.com/users/zalora","html_url":"https://github.com/zalora","followers_url":"https://api.github.com/users/zalora/followers","following_url":"https://api.github.com/users/zalora/following{/other_user}","gists_url":"https://api.github.com/users/zalora/gists{/gist_id}","starred_url":"https://api.github.com/users/zalora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalora/subscriptions","organizations_url":"https://api.github.com/users/zalora/orgs","repos_url":"https://api.github.com/users/zalora/repos","events_url":"https://api.github.com/users/zalora/events{/privacy}","received_events_url":"https://api.github.com/users/zalora/received_events","type":"Organization","site_admin":false},"repo":{"id":32302895,"name":"getopt-generics","full_name":"zalora/getopt-generics","owner":{"login":"zalora","id":3175092,"avatar_url":"https://avatars.githubusercontent.com/u/3175092?v=3","gravatar_id":"","url":"https://api.github.com/users/zalora","html_url":"https://github.com/zalora","followers_url":"https://api.github.com/users/zalora/followers","following_url":"https://api.github.com/users/zalora/following{/other_user}","gists_url":"https://api.github.com/users/zalora/gists{/gist_id}","starred_url":"https://api.github.com/users/zalora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalora/subscriptions","organizations_url":"https://api.github.com/users/zalora/orgs","repos_url":"https://api.github.com/users/zalora/repos","events_url":"https://api.github.com/users/zalora/events{/privacy}","received_events_url":"https://api.github.com/users/zalora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalora/getopt-generics","description":"","fork":false,"url":"https://api.github.com/repos/zalora/getopt-generics","forks_url":"https://api.github.com/repos/zalora/getopt-generics/forks","keys_url":"https://api.github.com/repos/zalora/getopt-generics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalora/getopt-generics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalora/getopt-generics/teams","hooks_url":"https://api.github.com/repos/zalora/getopt-generics/hooks","issue_events_url":"https://api.github.com/repos/zalora/getopt-generics/issues/events{/number}","events_url":"https://api.github.com/repos/zalora/getopt-generics/events","assignees_url":"https://api.github.com/repos/zalora/getopt-generics/assignees{/user}","branches_url":"https://api.github.com/repos/zalora/getopt-generics/branches{/branch}","tags_url":"https://api.github.com/repos/zalora/getopt-generics/tags","blobs_url":"https://api.github.com/repos/zalora/getopt-generics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalora/getopt-generics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalora/getopt-generics/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalora/getopt-generics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalora/getopt-generics/statuses/{sha}","languages_url":"https://api.github.com/repos/zalora/getopt-generics/languages","stargazers_url":"https://api.github.com/repos/zalora/getopt-generics/stargazers","contributors_url":"https://api.github.com/repos/zalora/getopt-generics/contributors","subscribers_url":"https://api.github.com/repos/zalora/getopt-generics/subscribers","subscription_url":"https://api.github.com/repos/zalora/getopt-generics/subscription","commits_url":"https://api.github.com/repos/zalora/getopt-generics/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalora/getopt-generics/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalora/getopt-generics/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalora/getopt-generics/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalora/getopt-generics/contents/{+path}","compare_url":"https://api.github.com/repos/zalora/getopt-generics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalora/getopt-generics/merges","archive_url":"https://api.github.com/repos/zalora/getopt-generics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalora/getopt-generics/downloads","issues_url":"https://api.github.com/repos/zalora/getopt-generics/issues{/number}","pulls_url":"https://api.github.com/repos/zalora/getopt-generics/pulls{/number}","milestones_url":"https://api.github.com/repos/zalora/getopt-generics/milestones{/number}","notifications_url":"https://api.github.com/repos/zalora/getopt-generics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalora/getopt-generics/labels{/name}","releases_url":"https://api.github.com/repos/zalora/getopt-generics/releases{/id}","created_at":"2015-03-16T05:15:07Z","updated_at":"2015-03-30T12:38:50Z","pushed_at":"2015-04-07T06:54:04Z","git_url":"git://github.com/zalora/getopt-generics.git","ssh_url":"git@github.com:zalora/getopt-generics.git","clone_url":"https://github.com/zalora/getopt-generics.git","svn_url":"https://github.com/zalora/getopt-generics","homepage":null,"size":329,"stargazers_count":3,"watchers_count":3,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalora/getopt-generics/pulls/8"},"html":{"href":"https://github.com/zalora/getopt-generics/pull/8"},"issue":{"href":"https://api.github.com/repos/zalora/getopt-generics/issues/8"},"comments":{"href":"https://api.github.com/repos/zalora/getopt-generics/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/zalora/getopt-generics/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/zalora/getopt-generics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalora/getopt-generics/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/zalora/getopt-generics/statuses/a43f54f827afeea2f838da361afe326710008a10"}}}}