Verified Commit 68f19fef authored by Camil Staps's avatar Camil Staps 🚀

Fix pretty-printing of constructor arguments that need parentheses

parent d4997410
Pipeline #14670 passed with stage
in 1 minute and 8 seconds
......@@ -267,7 +267,9 @@ where
print st cons=:{pc_arg_types=[]} = print st cons.pc_cons_ident
print st cons = print st
(cons.pc_cons_ident :+: " " :+:
[if s "!" "" :+: t \\ t <- cons.pc_arg_types & s <- strictnessListToBools cons.pc_args_strictness])
[if s "!" "" :+: print {st & cpp_parens=True} t
\\ t <- cons.pc_arg_types
& s <- strictnessListToBools cons.pc_args_strictness])
instance print Annotation
where
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment