@@ -8,6 +8,8 @@ import Data.List
88-- import qualified Data.Text as T
99import Text.Parsec
1010
11+import Core.TT
12+
1113data SExp = SexpList [SExp]
1214 | StringAtom String
1315 | BoolAtom Bool
@@ -42,6 +44,14 @@ instance SExpable Integer where
4244instance SExpable Int where
4345 toSExp n = IntegerAtom (toInteger n)
4446
47+
48+instance SExpable Name where
49+ toSExp (UN s) = SexpList [SymbolAtom "UN", StringAtom s]
50+ toSExp (NS s ns) = SexpList [SymbolAtom "NS", toSExp s, toSExp ns]
51+ toSExp (MN n s) = SexpList [SymbolAtom "MN", toSExp n, toSExp s]
52+ toSExp NErased = SexpList [SymbolAtom "NErased"]
53+
54+
4555instance (SExpable a) => SExpable (Maybe a) where
4656 toSExp Nothing = SexpList [SymbolAtom "Nothing"]
4757 toSExp (Just a) = SexpList [SymbolAtom "Just", toSExp a]