kicad-data-0.3.0.0: Parser and writer for KiCad files.

Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Kicad.SExpr.Write

Synopsis

Documentation

pretty :: SExpr -> Doc Source

Pretty-print a SExpr as a readable Doc.

write :: SExpr -> String Source

Serialize an SExpr as a compact s-expression String.

writeKeyword :: Keyword -> String Source

Write a Keyword as a String. Removes "Key" from the Show instance and converts the rest to underscore (e.g KeyFpTextType becomes "fp_text_type").