Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Fail constraints for instances which don't belong? #49
As mentioned in previous issues, like #30, this library shouldn't include instances for common PS types, instead only instances for JS-native types.
To prevent creation of more issues asking for instances like these, should we add a Fail constraint, as described in paf31/24-days-of-purescript-2016 21. Custom Type Errors? I'd like to add one for Maybe, where the error message instructs to use the Null or Undefined newtype instead.
Actually, I would prefer to remove the
Either that, or we should require that
referenced this issue
Jan 29, 2017
person = writeObject [ "name" .= "chris" , "age" .= 100 ]
Is there any current replacement for the above? (I searched Pursuit and couldn't find anything not relating to React that did this) If not, I'd be willing to implement what's needed myself/create another package. Thanks!
I guess the other option in the above would be to encode just by rewriting as the desired record and the
Although it is a little "risky", as you're not forced to encode all the values involved.