Skip to content

Commit 04ee583

Browse files
committed
Fix rendering of range operators
Having a space between the ( and the first number of the range operator causes a problem parsing in the Ruby CDDL tool.
1 parent 55d2c65 commit 04ee583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codec/CBOR/Cuddle/Pretty.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ instance Pretty Type1 where
6767
instance Pretty Type2 where
6868
pretty (T2Value v) = pretty v
6969
pretty (T2Name n mg) = pretty n <> pretty mg
70-
pretty (T2Group g) = enclose "( " ")" . align $ pretty g
70+
pretty (T2Group g) = enclose "(" ")" . align $ pretty g
7171
pretty (T2Map g) = prettyGroup AsMap g
7272
pretty (T2Array g) = prettyGroup AsArray g
7373
pretty (T2Unwrapped n mg) = "~" <+> pretty n <> pretty mg

0 commit comments

Comments
 (0)