1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Use square brackets for collections.

This commit is contained in:
Rob Rix 2019-10-03 14:24:00 -04:00
parent 722f8d3a18
commit 4eb0e76bee
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -78,5 +78,5 @@ instance ToSExpression t => GToSExpression (Rec1 t) where
instance (Foldable f, GToSExpression g) => GToSExpression (f :.: g) where
gtoSExpression (Comp1 fs) n
| null fs = [nl n <> pad n <> "()"]
| otherwise = nl n <> pad n <> "(" : foldMap gtoSExpression fs (n + 1) <> [")"]
| null fs = [nl n <> pad n <> "[]"]
| otherwise = nl n <> pad n <> "[" : foldMap gtoSExpression fs (n + 1) <> ["]"]