diff --git a/demo/index.html b/demo/index.html index 13ffa6a..d43f034 100644 --- a/demo/index.html +++ b/demo/index.html @@ -27,7 +27,7 @@ margin: 0; padding: 0; border: none; - +fieldset {margin-top: .5rem;} + + fieldset {margin-top: .5rem;} } pre { overflow-y: scroll; @@ -47,6 +47,18 @@

agda2lambox

+ + +
+ + + + +
+
+ Output - +
+
+ Function +
diff --git a/src/Agda2Lambox/Compile/Type.hs b/src/Agda2Lambox/Compile/Type.hs index 42d6ff8..b045dfd 100644 --- a/src/Agda2Lambox/Compile/Type.hs +++ b/src/Agda2Lambox/Compile/Type.hs @@ -143,6 +143,7 @@ compileTypeTerm = \case -- if it's an inductive, we only apply the parameters else if isDataOrRecDef def then do + lift $ requireDef q ind <- liftTCM $ toInductive q ([],) . foldl' LBox.TApp (LBox.TInd ind) <$> compileElims (take (getInductiveParams def) es)