packages feed

language-c99 0.1.1 → 0.1.2

raw patch · 3 files changed

+13/−7 lines, 3 files

Files

ChangeLog.md view
@@ -1,9 +1,13 @@ # Revision history for language-c99 -## 0.1.1  -- 2019-04-01+## 0.1.2 -- 2019-11-30 +* Added newline to the end of translation units.++## 0.1.1 -- 2019-04-01+ * Small update, fixed indentation of some code blocks. -## 0.1.0.0  -- 2019-03-30+## 0.1.0.0 -- 2019-03-30  * First version. Containing full AST, but only a part of the pretty printer.
language-c99.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                language-c99-version:             0.1.1+version:             0.1.2 synopsis:            An implementation of the C99 AST that strictly follows the                      standard. description:
src/Language/C99/Pretty.hs view
@@ -630,10 +630,12 @@ {- EXTERNAL DEFINITIONS -} {- 6.9 -} instance Pretty TransUnit where-  pretty (TransUnitBase    ed) = pretty ed-  pretty (TransUnitCons tu ed) = case ed of-    ExtFun _ -> vcat [pretty tu, text "", pretty ed]-    _        -> vcat [pretty tu, pretty ed]+  pretty tu = vcat [pretty' tu, text ""]+    where+      pretty' (TransUnitBase    ed) = pretty ed+      pretty' (TransUnitCons tu ed) = case ed of+        ExtFun _ -> vcat [pretty' tu, text "", pretty ed]+        _        -> vcat [pretty' tu, pretty ed]  instance Pretty ExtDecln where   pretty (ExtFun fd)  = pretty fd