-
Notifications
You must be signed in to change notification settings - Fork 56
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
Turn off uncurried #778
base: master
Are you sure you want to change the base?
Turn off uncurried #778
Conversation
@@ -918,13 +918,13 @@ Path Js.n | |||
"label": "nullable", | |||
"kind": 22, | |||
"tags": [], | |||
"detail": "type nullable<+'a>", | |||
"documentation": {"kind": "markdown", "value": "\n A value of this type can be undefined, null or 'a. This type is equivalent to Js.Null_undefined.t.\n"} | |||
"detail": "type nullable<'a> = Value('a) | Null | Undefined", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zth we lost the +
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, that's... weird. Don't think we changed the +
in the implementation...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is the intended printing, inherited from OCaml, which only prints the +
when the type is abstract:
# type 'a t1;;
type 'a t1
# type +'a t2;;
type +'a t2
# type +'a t2 = | A;;
type 'a t2 = A
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting! That's good to know 😀
Based on #777 but where unhurried is turned off.