Skip to content

Commit

Permalink
Dan's suggested tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPenner committed Dec 9, 2024
1 parent 1ec1b86 commit be210b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions unison-runtime/src/Unison/Runtime/Machine.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2125,8 +2125,10 @@ codeValidate tml cc = do
ntys = M.fromList $ zip (S.toList ntys0) [fty ..]
rty = ntys <> rty0
ftm <- readTVarIO (freshTm cc)
rtm <- readTVarIO (refTm cc)
let rns = RN (refLookup "ty" rty) (refLookup "tm" rtm) (const Nothing)
rtm0 <- readTVarIO (refTm cc)
let rs = fst <$> tml
rtm = rtm0 `M.union` M.fromList (zip rs [ftm ..])
rns = RN (refLookup "ty" rty) (refLookup "tm" rtm) (const Nothing)
combinate (n, (r, g)) = evaluate $ emitCombs rns r n g
(Nothing <$ traverse_ combinate (zip [ftm ..] tml))
`catch` \(CE cs perr) ->
Expand Down

0 comments on commit be210b5

Please sign in to comment.