{"action":"created","comment":{"url":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/comments/41896356","id":41896356,"diff_hunk":"@@ -46,3 +56,35 @@ string :: String -> Parser String\n string nt = Parser (\\s fc sc -> case s of\n   { str = str, pos = i } | indexOf' nt i str == Just i -> sc nt { str: str, pos: i + length nt }\n   { pos = i } -> fc i (ParseError $ \"Expected '\" ++ nt ++ \"'.\"))\n+\n+-- | Match a character satisfying the given predicate.\n+satisfy :: (Char -> Boolean) -> Parser Char\n+satisfy f = try do\n+  c <- anyChar\n+  if f c\n+     then return c\n+     else fail \"Character did not satisfy predicate\"\n+\n+-- | Match the specified character.\n+char :: Char -> Parser Char\n+char c = satisfy (== c)","path":"src/Text/Parsing/StringParser/String.purs","position":39,"original_position":39,"commit_id":"aacd663c32c9313c35c75c4c84a8a6ea86adcbe1","original_commit_id":"aacd663c32c9313c35c75c4c84a8a6ea86adcbe1","user":{"login":"paf31","id":630306,"avatar_url":"https://avatars.githubusercontent.com/u/630306?v=3","gravatar_id":"","url":"https://api.github.com/users/paf31","html_url":"https://github.com/paf31","followers_url":"https://api.github.com/users/paf31/followers","following_url":"https://api.github.com/users/paf31/following{/other_user}","gists_url":"https://api.github.com/users/paf31/gists{/gist_id}","starred_url":"https://api.github.com/users/paf31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paf31/subscriptions","organizations_url":"https://api.github.com/users/paf31/orgs","repos_url":"https://api.github.com/users/paf31/repos","events_url":"https://api.github.com/users/paf31/events{/privacy}","received_events_url":"https://api.github.com/users/paf31/received_events","type":"User","site_admin":false},"body":"Perhaps add a better error message here?","created_at":"2015-10-13T17:19:44Z","updated_at":"2015-10-13T17:19:44Z","html_url":"https://github.com/paf31/purescript-string-parsers/pull/11#discussion_r41896356","pull_request_url":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/comments/41896356"},"html":{"href":"https://github.com/paf31/purescript-string-parsers/pull/11#discussion_r41896356"},"pull_request":{"href":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/11","id":47482126,"html_url":"https://github.com/paf31/purescript-string-parsers/pull/11","diff_url":"https://github.com/paf31/purescript-string-parsers/pull/11.diff","patch_url":"https://github.com/paf31/purescript-string-parsers/pull/11.patch","issue_url":"https://api.github.com/repos/paf31/purescript-string-parsers/issues/11","number":11,"state":"open","locked":false,"title":"added satisfy, char, whiteSpace, skipSpaces, oneOf, noneOf, and Eq instance","user":{"login":"Thimoteus","id":1145958,"avatar_url":"https://avatars.githubusercontent.com/u/1145958?v=3","gravatar_id":"","url":"https://api.github.com/users/Thimoteus","html_url":"https://github.com/Thimoteus","followers_url":"https://api.github.com/users/Thimoteus/followers","following_url":"https://api.github.com/users/Thimoteus/following{/other_user}","gists_url":"https://api.github.com/users/Thimoteus/gists{/gist_id}","starred_url":"https://api.github.com/users/Thimoteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thimoteus/subscriptions","organizations_url":"https://api.github.com/users/Thimoteus/orgs","repos_url":"https://api.github.com/users/Thimoteus/repos","events_url":"https://api.github.com/users/Thimoteus/events{/privacy}","received_events_url":"https://api.github.com/users/Thimoteus/received_events","type":"User","site_admin":false},"body":"also, I bumped up the dependency versions.","created_at":"2015-10-13T01:30:35Z","updated_at":"2015-10-13T17:19:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"65cc79e7e380b607b18170ec0f2dc5e0e60a1d13","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/11/commits","review_comments_url":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/11/comments","review_comment_url":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paf31/purescript-string-parsers/issues/11/comments","statuses_url":"https://api.github.com/repos/paf31/purescript-string-parsers/statuses/aacd663c32c9313c35c75c4c84a8a6ea86adcbe1","head":{"label":"Thimoteus:master","ref":"master","sha":"aacd663c32c9313c35c75c4c84a8a6ea86adcbe1","user":{"login":"Thimoteus","id":1145958,"avatar_url":"https://avatars.githubusercontent.com/u/1145958?v=3","gravatar_id":"","url":"https://api.github.com/users/Thimoteus","html_url":"https://github.com/Thimoteus","followers_url":"https://api.github.com/users/Thimoteus/followers","following_url":"https://api.github.com/users/Thimoteus/following{/other_user}","gists_url":"https://api.github.com/users/Thimoteus/gists{/gist_id}","starred_url":"https://api.github.com/users/Thimoteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thimoteus/subscriptions","organizations_url":"https://api.github.com/users/Thimoteus/orgs","repos_url":"https://api.github.com/users/Thimoteus/repos","events_url":"https://api.github.com/users/Thimoteus/events{/privacy}","received_events_url":"https://api.github.com/users/Thimoteus/received_events","type":"User","site_admin":false},"repo":{"id":44141932,"name":"purescript-string-parsers","full_name":"Thimoteus/purescript-string-parsers","owner":{"login":"Thimoteus","id":1145958,"avatar_url":"https://avatars.githubusercontent.com/u/1145958?v=3","gravatar_id":"","url":"https://api.github.com/users/Thimoteus","html_url":"https://github.com/Thimoteus","followers_url":"https://api.github.com/users/Thimoteus/followers","following_url":"https://api.github.com/users/Thimoteus/following{/other_user}","gists_url":"https://api.github.com/users/Thimoteus/gists{/gist_id}","starred_url":"https://api.github.com/users/Thimoteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thimoteus/subscriptions","organizations_url":"https://api.github.com/users/Thimoteus/orgs","repos_url":"https://api.github.com/users/Thimoteus/repos","events_url":"https://api.github.com/users/Thimoteus/events{/privacy}","received_events_url":"https://api.github.com/users/Thimoteus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Thimoteus/purescript-string-parsers","description":"A parsing library specialized to handling strings","fork":true,"url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers","forks_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/forks","keys_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/teams","hooks_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/hooks","issue_events_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/issues/events{/number}","events_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/events","assignees_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/assignees{/user}","branches_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/branches{/branch}","tags_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/tags","blobs_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/git/refs{/sha}","trees_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/statuses/{sha}","languages_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/languages","stargazers_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/stargazers","contributors_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/contributors","subscribers_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/subscribers","subscription_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/subscription","commits_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/commits{/sha}","git_commits_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/git/commits{/sha}","comments_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/comments{/number}","issue_comment_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/issues/comments{/number}","contents_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/contents/{+path}","compare_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/merges","archive_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/downloads","issues_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/issues{/number}","pulls_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/pulls{/number}","milestones_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/milestones{/number}","notifications_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/labels{/name}","releases_url":"https://api.github.com/repos/Thimoteus/purescript-string-parsers/releases{/id}","created_at":"2015-10-13T00:33:04Z","updated_at":"2015-10-13T00:33:05Z","pushed_at":"2015-10-13T01:27:40Z","git_url":"git://github.com/Thimoteus/purescript-string-parsers.git","ssh_url":"git@github.com:Thimoteus/purescript-string-parsers.git","clone_url":"https://github.com/Thimoteus/purescript-string-parsers.git","svn_url":"https://github.com/Thimoteus/purescript-string-parsers","homepage":null,"size":108,"stargazers_count":0,"watchers_count":0,"language":"PureScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"paf31:master","ref":"master","sha":"fd18816905c78b1e7aeddcb37214680fec44b79e","user":{"login":"paf31","id":630306,"avatar_url":"https://avatars.githubusercontent.com/u/630306?v=3","gravatar_id":"","url":"https://api.github.com/users/paf31","html_url":"https://github.com/paf31","followers_url":"https://api.github.com/users/paf31/followers","following_url":"https://api.github.com/users/paf31/following{/other_user}","gists_url":"https://api.github.com/users/paf31/gists{/gist_id}","starred_url":"https://api.github.com/users/paf31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paf31/subscriptions","organizations_url":"https://api.github.com/users/paf31/orgs","repos_url":"https://api.github.com/users/paf31/repos","events_url":"https://api.github.com/users/paf31/events{/privacy}","received_events_url":"https://api.github.com/users/paf31/received_events","type":"User","site_admin":false},"repo":{"id":19330212,"name":"purescript-string-parsers","full_name":"paf31/purescript-string-parsers","owner":{"login":"paf31","id":630306,"avatar_url":"https://avatars.githubusercontent.com/u/630306?v=3","gravatar_id":"","url":"https://api.github.com/users/paf31","html_url":"https://github.com/paf31","followers_url":"https://api.github.com/users/paf31/followers","following_url":"https://api.github.com/users/paf31/following{/other_user}","gists_url":"https://api.github.com/users/paf31/gists{/gist_id}","starred_url":"https://api.github.com/users/paf31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paf31/subscriptions","organizations_url":"https://api.github.com/users/paf31/orgs","repos_url":"https://api.github.com/users/paf31/repos","events_url":"https://api.github.com/users/paf31/events{/privacy}","received_events_url":"https://api.github.com/users/paf31/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paf31/purescript-string-parsers","description":"A parsing library specialized to handling strings","fork":false,"url":"https://api.github.com/repos/paf31/purescript-string-parsers","forks_url":"https://api.github.com/repos/paf31/purescript-string-parsers/forks","keys_url":"https://api.github.com/repos/paf31/purescript-string-parsers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paf31/purescript-string-parsers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paf31/purescript-string-parsers/teams","hooks_url":"https://api.github.com/repos/paf31/purescript-string-parsers/hooks","issue_events_url":"https://api.github.com/repos/paf31/purescript-string-parsers/issues/events{/number}","events_url":"https://api.github.com/repos/paf31/purescript-string-parsers/events","assignees_url":"https://api.github.com/repos/paf31/purescript-string-parsers/assignees{/user}","branches_url":"https://api.github.com/repos/paf31/purescript-string-parsers/branches{/branch}","tags_url":"https://api.github.com/repos/paf31/purescript-string-parsers/tags","blobs_url":"https://api.github.com/repos/paf31/purescript-string-parsers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paf31/purescript-string-parsers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paf31/purescript-string-parsers/git/refs{/sha}","trees_url":"https://api.github.com/repos/paf31/purescript-string-parsers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paf31/purescript-string-parsers/statuses/{sha}","languages_url":"https://api.github.com/repos/paf31/purescript-string-parsers/languages","stargazers_url":"https://api.github.com/repos/paf31/purescript-string-parsers/stargazers","contributors_url":"https://api.github.com/repos/paf31/purescript-string-parsers/contributors","subscribers_url":"https://api.github.com/repos/paf31/purescript-string-parsers/subscribers","subscription_url":"https://api.github.com/repos/paf31/purescript-string-parsers/subscription","commits_url":"https://api.github.com/repos/paf31/purescript-string-parsers/commits{/sha}","git_commits_url":"https://api.github.com/repos/paf31/purescript-string-parsers/git/commits{/sha}","comments_url":"https://api.github.com/repos/paf31/purescript-string-parsers/comments{/number}","issue_comment_url":"https://api.github.com/repos/paf31/purescript-string-parsers/issues/comments{/number}","contents_url":"https://api.github.com/repos/paf31/purescript-string-parsers/contents/{+path}","compare_url":"https://api.github.com/repos/paf31/purescript-string-parsers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paf31/purescript-string-parsers/merges","archive_url":"https://api.github.com/repos/paf31/purescript-string-parsers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paf31/purescript-string-parsers/downloads","issues_url":"https://api.github.com/repos/paf31/purescript-string-parsers/issues{/number}","pulls_url":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls{/number}","milestones_url":"https://api.github.com/repos/paf31/purescript-string-parsers/milestones{/number}","notifications_url":"https://api.github.com/repos/paf31/purescript-string-parsers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paf31/purescript-string-parsers/labels{/name}","releases_url":"https://api.github.com/repos/paf31/purescript-string-parsers/releases{/id}","created_at":"2014-04-30T23:19:43Z","updated_at":"2015-06-09T23:51:17Z","pushed_at":"2015-10-13T01:30:35Z","git_url":"git://github.com/paf31/purescript-string-parsers.git","ssh_url":"git@github.com:paf31/purescript-string-parsers.git","clone_url":"https://github.com/paf31/purescript-string-parsers.git","svn_url":"https://github.com/paf31/purescript-string-parsers","homepage":null,"size":323,"stargazers_count":1,"watchers_count":1,"language":"PureScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/11"},"html":{"href":"https://github.com/paf31/purescript-string-parsers/pull/11"},"issue":{"href":"https://api.github.com/repos/paf31/purescript-string-parsers/issues/11"},"comments":{"href":"https://api.github.com/repos/paf31/purescript-string-parsers/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paf31/purescript-string-parsers/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/paf31/purescript-string-parsers/statuses/aacd663c32c9313c35c75c4c84a8a6ea86adcbe1"}}}}