| Safe Haskell | None |
|---|
Data.Kicad.PcbnewExpr
- data PcbnewExpr
- parse :: String -> Either String PcbnewExpr
- fromSExpr :: SExpr -> Either String PcbnewExpr
- pretty :: PcbnewExpr -> Doc
- write :: PcbnewExpr -> String
Types
data PcbnewExpr Source
Constructors
| PcbnewExprModule PcbnewModule | |
| PcbnewExprItem PcbnewItem | |
| PcbnewExprAttribute PcbnewAttribute |
Instances
Parse
parse :: String -> Either String PcbnewExprSource
Parse a PcbnewExpr from a String. Returns an String with an error or
a PcbnewExpr.
fromSExpr :: SExpr -> Either String PcbnewExprSource
Interpret a SExpr as a PcbnewExpr.
Write
pretty :: PcbnewExpr -> DocSource
Pretty-print a PcbnewExpr as a readable s-expression Doc.
write :: PcbnewExpr -> StringSource
Serialize a PcbnewExpr as a compact s-expression String.