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

Safe HaskellNone
LanguageHaskell2010

Data.Kicad.PcbnewExpr

Contents

Synopsis

Types

Parse

parse :: String -> Either String PcbnewExpr Source #

Parse a Pcbnew expression from a string. Returns an String with an error - or a PcbnewExpr.

parseWithFilename :: String -> String -> Either String PcbnewExpr Source #

Parse a Pcbnew expression from a string giving a filename argument to be used in error strings.

Write

pretty :: PcbnewExpr -> Doc Source #

Pretty-print a PcbnewExpr as a readable s-expression Doc.

write :: PcbnewExpr -> String Source #

Serialize a PcbnewExpr as a compact s-expression String.