Skip to content

Commit

Permalink
recursi InductiveParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jul 4, 2024
1 parent 19ad4e9 commit 2006557
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/Juvix/Compiler/Internal/Extra/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,13 @@ instance HasExpressions AxiomDef where
}

instance HasExpressions InductiveParameter where
directExpressions _ = pure

-- do
-- ty' <- directExpressions f _inductiveParamType
-- pure
-- InductiveParameter
-- { _inductiveParamType = ty',
-- _inductiveParamName
-- }
directExpressions f InductiveParameter {..} = do
ty' <- directExpressions f _inductiveParamType
pure
InductiveParameter
{ _inductiveParamType = ty',
_inductiveParamName
}

instance HasExpressions InductiveDef where
directExpressions f InductiveDef {..} = do
Expand Down

0 comments on commit 2006557

Please sign in to comment.