-
Notifications
You must be signed in to change notification settings - Fork 430
Closed
Labels
KIND: BUGPrinterthings that have to do with turning an AST into Reason codethings that have to do with turning an AST into Reason code
Description
In unstable from melange's playground, it breaks code missing { } when a function has a sequence:
onEvent "/echo" (fun request ->
let request_stream = get_body_stream request in
stream
~headers:[ ("Content-Type", "application/octet-stream") ]
(fun response_stream -> Js.log response_stream))
refmt generates
onEvent("/echo", request =>
let request_stream = get_body_stream(request);
stream(
~headers=[("Content-Type", "application/octet-stream")], response_stream =>
Js.log(response_stream)
);
);
correct version
onEvent("/echo", request => {
let request_stream = get_body_stream(request);
stream(
~headers=[("Content-Type", "application/octet-stream")], response_stream =>
Js.log(response_stream)
);
});
Metadata
Metadata
Assignees
Labels
KIND: BUGPrinterthings that have to do with turning an AST into Reason codethings that have to do with turning an AST into Reason code