one line fix for issue where TDNR decisions not being substituted into TLCs

This commit is contained in:
Paul Chiusano 2018-11-09 22:25:50 -05:00
parent 113740f20b
commit 1483b68d8c

View File

@ -132,7 +132,7 @@ synthesizeFile preexistingTypes preexistingNames unisonFile = do
(topLevelComponents :: [[(v, Term v, Type v)]]) <-
let
topLevelBindings :: Map Name (Term v)
topLevelBindings = Map.mapKeys Var.name $ extractTopLevelBindings term
topLevelBindings = Map.mapKeys Var.name $ extractTopLevelBindings tdnrTerm
extractTopLevelBindings (Term.LetRecNamed' bs _) = Map.fromList bs
extractTopLevelBindings _ = Map.empty
tlcsFromTypechecker =