@@ -9,6 +9,7 @@ Maintainer : The Idris Community.
99module IRTS.Portable (writePortable) where
1010
1111import Idris.Core.CaseTree
12+import Idris.Core.Evaluate
1213import Idris.Core.TT
1314import IRTS.Bytecode
1415import IRTS.CodegenCommon
@@ -53,7 +54,8 @@ instance ToJSON CodegenInfo where
5354 "lift-decls" .= (liftDecls ci),
5455 "defun-decls" .= (defunDecls ci),
5556 "simple-decls" .= (simpleDecls ci),
56− "bytecode" .= (map toBC (simpleDecls ci))]
57+ "bytecode" .= (map toBC (simpleDecls ci)),
58+ "tt-decls" .= (ttDecls ci)]
5759
5860instance ToJSON Name where
5961 toJSON n = toJSON $ showCG n
@@ -279,3 +281,18 @@ instance ToJSON Reg where
279281 toJSON (T i) = object ["T" .= i]
280282 toJSON (L i) = object ["L" .= i]
281283 toJSON Tmp = object ["Tmp" .= Null]
284+
285+instance ToJSON RigCount where
286+ toJSON r = object ["RigCount" .= show r]
287+
288+instance ToJSON Totality where
289+ toJSON t = object ["Totality" .= show t]
290+
291+instance ToJSON MetaInformation where
292+ toJSON m = object ["MetaInformation" .= show m]
293+
294+instance ToJSON Def where
295+ toJSON d = object ["Def" .= show d]
296+
297+instance ToJSON Accessibility where
298+ toJSON a = object ["Accessibility" .= show a]