Skip to content
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

move @@type properties to type representatives #112

Merged
merged 1 commit into from
Dec 27, 2016
Merged

Conversation

davidchambers
Copy link
Member

This pull request accompanies sanctuary-js/sanctuary-type-classes#22.

}

Either.prototype['@@type'] = 'sanctuary-def/Either';
Copy link
Member

Choose a reason for hiding this comment

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

I guess prototype is not needed here?

Copy link
Member Author

Choose a reason for hiding this comment

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

var MaybeTypeDict = {
'fantasy-land/empty': function() { return Nothing; },
'fantasy-land/of': function(x) { return Just(x); }
function _Maybe(tag, value) {
Copy link
Member

@safareli safareli Dec 23, 2016

Choose a reason for hiding this comment

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

btw would be nice if we move this types in FL as we have them in sanctuary, sanctuary-dev and i think in sanctuary-type-classes too 👯‍♂️

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree!

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.

2 participants