gdritter repos s-cargot / f2b902c
Added haskell annotation to interactive code block (to see how github responds) Getty Ritter 9 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Collapse all Expand all
3636 S-expression data, and the third represents only a subset of possible
3737 S-expressions.
3838
39 ~~~~
39 ~~~~.haskell
4040 -- cons-based representation
4141 data SExpr atom
4242 = SCons (SExpr atom) (SExpr atom)
6767 representation using the `asRich` and `asWellFormed`
6868 functions.
6969
70 ~~~~
70 ~~~~.haskell
7171 *Data.SCargot.General> decode spec "(a b)"
7272 Right [SCons (SAtom "a") (SCons (SAtom "b") SNil)]
7373 *Data.SCargot.General> decode (asRich spec) "(a b)"