Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ollef committed Jan 7, 2024
1 parent 40590a4 commit 54f7d3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/ClosureConverted/Context.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import Var (Var)

data Context (v :: Data.Kind.Type) = Context
{ indices :: Index.Map v Var
, values :: EnumMap Var Domain.Value
, types :: EnumMap Var Domain.Type
, glueableBefore :: !(Index (Succ v))
}
Expand All @@ -28,7 +27,6 @@ empty :: Context Void
empty =
Context
{ indices = Index.Map.Empty
, values = mempty
, types = mempty
, glueableBefore = Index.Zero
}
Expand All @@ -49,7 +47,7 @@ toEnvironment
toEnvironment context =
Environment
{ indices = indices context
, values = values context
, values = mempty
, glueableBefore = glueableBefore context
}

Expand Down
2 changes: 1 addition & 1 deletion src/Elaboration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ inferTopLevelDefinition definitionKind defName def = do
(def', type_) <- inferDefinition context def
postponed <- readIORef context.postponed
metaVars <- readIORef context.metas
errors <- readIORef $ context.errors
errors <- readIORef context.errors
let zonkedDef = ZonkPostponedChecks.zonkDefinition postponed def'
eagerMetaVars <- Meta.toEagerState metaVars zonkedDef $ Just type_
pure ((zonkedDef, type_, eagerMetaVars), toList errors)
Expand Down
2 changes: 1 addition & 1 deletion src/Elaboration/Context.hs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ toEnvironment
toEnvironment context =
Environment
{ indices = context.indices
, values = context.values
, values = mempty
, glueableBefore = Index.Zero
}

Expand Down

0 comments on commit 54f7d3c

Please sign in to comment.