Browse Source

Fix for issue 10: flat printing of SCons of two SAtoms.

Kevin Quick 6 years ago
parent
commit
27e052ec07
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Data/SCargot/Print.hs

+ 2 - 0
Data/SCargot/Print.hs

@@ -269,6 +269,8 @@ flatPrintSExpr = TL.toStrict . B.toLazyText . pHead
     pHead SNil         =
       B.fromString "()"
 
+    pTail e@(SCons _ (SAtom _)) =
+        B.fromString " " <> pHead e <> B.fromString ")"
     pTail (SCons x xs) =
       B.fromString " " <> pHead x <> pTail xs
     pTail (SAtom t) =