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

Remove dependency on ramda #37

Open
jethrolarson opened this issue Mar 24, 2016 · 5 comments
Open

Remove dependency on ramda #37

jethrolarson opened this issue Mar 24, 2016 · 5 comments

Comments

@jethrolarson
Copy link
Contributor

I know you're cherry picking the curry function but ramda is a bit big for just the one function.

@paldepind
Copy link
Owner

Yes. You are right. But it is a fine curry function 😓

@jethrolarson
Copy link
Contributor Author

Please

On Fri, Apr 15, 2016, 12:15 PM Texas Toland notifications@github.com
wrote:

Haha I'd be willing to rewrite it if you want.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#37 (comment)

@paldepind
Copy link
Owner

Ok 😄 We could copy and paste the curry function into union-type.

@texastoland
Copy link

I took a look and it'd be better to implement the subset of functionality you're using.

@wavebeem
Copy link

wavebeem commented Jun 2, 2016

I would highly approve of this. Also, it would be really nice to provide the Ramda.T function on this lib. It could be called Type.Any, which would read really well imo.

var List = Type({
  Nil: {},
  Cons: {
    head: Type.Any,
    tail: undefined
  }
});

Maybe even a Type.Self alias which is just undefined for recursive types.

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 a pull request may close this issue.

4 participants