Created
December 16, 2017 16:46
-
-
Save simenge/8809d7be57b791f93cdf03474d62589c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Test where | |
data Lisp = Integer Int | |
| Str String | |
| FloatT Float | |
toString :: Lisp -> String | |
toString x = case x of | |
Integer i -> show i | |
| Str s -> s | |
| FloatT f -> show f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment