]> git.rmz.io Git - my-scheme.git/commit
Show values (except Lists)
authorSamir Benmendil <me@rmz.io>
Tue, 23 Jan 2018 22:27:16 +0000 (22:27 +0000)
committerSamir Benmendil <me@rmz.io>
Tue, 23 Jan 2018 22:27:16 +0000 (22:27 +0000)
commitfabc3d8bdaef310b2f18bc53735ad7ee53518822
tree098d0a8079b614232608b63f1149e396e5abe90b
parentae8ff4666104497a9d6f1d89f044bbb202f10c71
Show values (except Lists)

We introduce a `showVal :: LispVal -> String` function, to turn a
LispVal into a printable string.

This function uses pattern matching to "specialize" on various types.
The declaration that matches the specific type is chosen.
app/Main.hs