Avoid double commas (fixes test suite).

This commit is contained in:
Felipe Lessa 2013-05-17 14:23:07 -03:00
parent fee867165b
commit f6969d5971

View File

@ -700,7 +700,7 @@ data Mode = SELECT | SELECT_DISTINCT | DELETE | UPDATE
uncommas :: [TLB.Builder] -> TLB.Builder
uncommas = mconcat . intersperse ", "
uncommas = mconcat . intersperse ", " . filter (/= mempty)
uncommas' :: Monoid a => [(TLB.Builder, a)] -> (TLB.Builder, a)
uncommas' = (uncommas *** mconcat) . unzip