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:
parent
722f8d3a18
commit
4eb0e76bee
@ -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) <> ["]"]
|
||||
|
Loading…
Reference in New Issue
Block a user