Skip to content

added takeTok, when and get to Token module #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 4, 2015

Conversation

cryogenian
Copy link
Member

I found this three function very useful in parsing token streams.

takeTok :: forall m a. (Monad m) => ParserT [a] m a
takeTok = ParserT $ \s ->
return $ case s of
x:xs -> {consumed: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please make this formatting consistent with the rest of the code?

@paf31
Copy link
Contributor

paf31 commented Mar 4, 2015

Code looks good, thanks, but I have some comments on style above. Could you please add a test? Thanks.

@cryogenian
Copy link
Member Author

Is it ok now?

@paf31
Copy link
Contributor

paf31 commented Mar 4, 2015

Looks great, thank you!

paf31 added a commit that referenced this pull request Mar 4, 2015
added takeTok, when and get to Token module
@paf31 paf31 merged commit c06eab2 into purescript-contrib:master Mar 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants