@@ -26,13 +26,15 @@ sExpToString (List l) = "(" ++ intercalate " " (map sExpToString l) ++ "
2626class SExpable a where
2727 toSExp :: a -> SExp
2828
29+instance SExpable SExp where
30+ toSExp a = a
31+
2932instance SExpable Bool where
3033 toSExp True = BoolAtom True
3134 toSExp False = BoolAtom False
3235
3336instance SExpable String where
34− toSExp (':' : xs) = SymbolAtom xs
35− toSExp s = StringAtom s
37+ toSExp s = StringAtom s
3638
3739instance SExpable Integer where
3840 toSExp n = IntegerAtom n