on master help sign in
Add missing output annotation serialization to ideslave
commit6370ef37071c29b65bd401abfaa428ad15fc431b authorDavid Raymond Christiansen <david@davidchristiansen.dk> dateWed 19 Feb 2014, 10:12 (13 years ago) parent68a54dc
1 file changed+4
src/Idris/IdeSlave.hs+4
src/Idris/IdeSlave.hs+4
@@ -89,6 +89,10 @@ instance SExpable OutputAnnotation where
8989 (SymbolAtom "implicit", BoolAtom imp)]
9090 toSExp AnnConstData = toSExp [(SymbolAtom "decor", SymbolAtom "data")]
9191 toSExp AnnConstType = toSExp [(SymbolAtom "decor", SymbolAtom "type")]
92+ toSExp (AnnFC (FC f l c)) = toSExp [(SymbolAtom "source-loc",
93+ ((SymbolAtom "filename", StringAtom f),
94+ (SymbolAtom "line", IntegerAtom (toInteger l)),
95+ (SymbolAtom "column", IntegerAtom (toInteger c))))]
9296
9397escape :: String -> String
9498escape = concatMap escapeChar