Skip to content

Commit

Permalink
from concrete
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Nov 20, 2024
1 parent f8fd9f4 commit e3a7a76
Show file tree
Hide file tree
Showing 7 changed files with 257 additions and 67 deletions.
3 changes: 2 additions & 1 deletion src/Juvix/Compiler/Internal/Data/InfoTable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ functionInfoFromFunctionDef isLocal FunctionDef {..} =
}

inductiveInfoFromInductiveDef :: InductiveDef -> InductiveInfo
inductiveInfoFromInductiveDef InductiveDef {..} =
inductiveInfoFromInductiveDef d@InductiveDef {..} =
InductiveInfo
{ _inductiveInfoName = _inductiveName,
_inductiveInfoType = _inductiveType,
_inductiveInfoLoc = getLoc d,
_inductiveInfoBuiltin = _inductiveBuiltin,
_inductiveInfoParameters = _inductiveParameters,
_inductiveInfoConstructors = map (^. inductiveConstructorName) _inductiveConstructors,
Expand Down
Loading

0 comments on commit e3a7a76

Please sign in to comment.