From 2731ac8bf6a828b94296570b61f4f811d89232c5 Mon Sep 17 00:00:00 2001 From: Gabriel Nordeborn Date: Thu, 17 Aug 2023 13:38:11 +0200 Subject: [PATCH 1/2] change outcome printer to adjust for uncurried the same way that the rest of the code does --- jscomp/syntax/src/res_outcome_printer.ml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jscomp/syntax/src/res_outcome_printer.ml b/jscomp/syntax/src/res_outcome_printer.ml index 7ec8069b0d..c9fda0c6d3 100644 --- a/jscomp/syntax/src/res_outcome_printer.ml +++ b/jscomp/syntax/src/res_outcome_printer.ml @@ -322,9 +322,7 @@ let rec printOutTypeDoc (outType : Outcometree.out_type) = ] and printOutArrowType ~uncurried typ = - let uncurried = - if !Config.uncurried <> Legacy then not uncurried else uncurried - in + let uncurried = Res_uncurried.getDotted ~uncurried !Config.uncurried in let typArgs, typ = collectArrowArgs typ [] in let args = Doc.join From b75ed93e38b9ea110c1bccbc0fdd2393421e5175 Mon Sep 17 00:00:00 2001 From: Gabriel Nordeborn Date: Thu, 17 Aug 2023 13:41:10 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3813402724..eff6690bb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ # 11.0.0-rc.2 (Unreleased) +#### :bug: Bug Fix + +- Fixed outcome printer resolution of uncurried config. https://github.com/rescript-lang/rescript-compiler/pull/6353 + # 11.0.0-rc.1 #### :rocket: New Feature