Skip to content

make Regex an instance of Show #4

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 1 commit into from
Jul 5, 2014
Merged

Conversation

michaelficarra
Copy link
Contributor

Fixes #3.

You probably don't want to merge as is. I was unable to make my foreign function showRegexP private using let bindings. Should I explicitly list the exports in that file instead? Is there a better way?

@garyb
Copy link
Member

garyb commented Jul 5, 2014

Yeah, using explicit exports from the module is the way we've been doing this elsewhere.

I've thought about local foreign declarations a few times, but I think we don't do it because it interferes with the idea of foreign declarations being imported, and perhaps would be a bit syntactically awkward to deal with too. Any thoughts @paf31?

@michaelficarra
Copy link
Contributor Author

Okay, this is ready to go. We should continue the language discussion in a PureScript issue.

edit: PureScript issue created: purescript/purescript#460

garyb added a commit that referenced this pull request Jul 5, 2014
make Regex an instance of Show
@garyb garyb merged commit 37fadf1 into purescript:master Jul 5, 2014
@garyb
Copy link
Member

garyb commented Jul 5, 2014

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make Regex instance of Show
2 participants