refresh compilation phase in the new format

This commit is contained in:
aarne
2007-12-07 10:23:18 +00:00
parent 64ebc4f167
commit e013138f0c
6 changed files with 80 additions and 60 deletions

View File

@@ -5,7 +5,9 @@ compactPrint = compactPrintCustom keywordGF (const False)
compactPrintGFCC = compactPrintCustom (const False) keywordGFCC
compactPrintCustom pre post = tail . concat . map (spaceIf pre post) . words
compactPrintCustom pre post = dps . concat . map (spaceIf pre post) . words
dps = dropWhile isSpace
spaceIf pre post w = case w of
_ | pre w -> "\n" ++ w