Skip to content

Bunch of combinators and some string stuff. #8

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 8 commits into from
Nov 8, 2014

Conversation

joneshf
Copy link
Member

@joneshf joneshf commented Aug 23, 2014

Sorry, I did this before the Alternative reform, so let me know if something should be moved out of here and into the respective place. Or any other things I might have missed.

joneshf added 2 commits August 6, 2014 02:25
Conflicts:
	docs/Module.md
	src/Text/Parsing/Parser.purs
	src/Text/Parsing/Parser/Combinators.purs
@jdegoes
Copy link
Contributor

jdegoes commented Aug 23, 2014

@sellout The travis build is failing, can you please take a look?

@joneshf
Copy link
Member Author

joneshf commented Aug 24, 2014

Fixed build by using pre-compiled binaries, rather than building it from scratch, look at that 28 second build time! https://travis-ci.org/purescript-contrib/purescript-parsing/builds/33435799

But I see that some of these functions are still using {} rather than Unit. Don't merge this just yet.

@joneshf
Copy link
Member Author

joneshf commented Nov 8, 2014

Okay, everything is up to date.

state <- p s
return state{input = s, consumed = false}

instance showParseError :: Show ParseError where
Copy link

Choose a reason for hiding this comment

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

The instance should be moved to the Parser module together with the rest of the instances for ParseError.
Great addition BTW

Copy link

Choose a reason for hiding this comment

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

Also, I'd consider showing ParseError(message) instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, the instance should be moved to where the data type is defined. Then I'll merge.

Thanks for your work on this @joneshf, looks great!

@joneshf
Copy link
Member Author

joneshf commented Nov 8, 2014

Updated.

jdegoes added a commit that referenced this pull request Nov 8, 2014
Bunch of combinators and some string stuff.
@jdegoes jdegoes merged commit 8f2e625 into purescript-contrib:master Nov 8, 2014
@paf31
Copy link
Contributor

paf31 commented Nov 8, 2014

👍

@joneshf
Copy link
Member Author

joneshf commented Nov 8, 2014

Thanks!

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.

4 participants