Skip to content

make Regex an instance of Show#4

Merged
garyb merged 1 commit into
purescript:masterfrom
michaelficarra:show
Jul 5, 2014
Merged

make Regex an instance of Show#4
garyb merged 1 commit into
purescript:masterfrom
michaelficarra:show

Conversation

@michaelficarra

Copy link
Copy Markdown
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

garyb commented Jul 5, 2014

Copy link
Copy Markdown
Member

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
Copy Markdown
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

garyb commented Jul 5, 2014

Copy link
Copy Markdown
Member

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