Skip to content

Commit

Permalink
Merge pull request #598 from HigherOrderCO/return-term-do-check
Browse files Browse the repository at this point in the history
Use the term from 'check' to check for unfilled metas
  • Loading branch information
VictorTaelin authored Oct 29, 2024
2 parents 9ab334f + 8af8097 commit 8e701ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Kind/API.hs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ apiCheck bookPath (book, defs, _) defName defPath = do
case M.lookup fileDefName book of
Just term -> do
case envRun (doCheck term) book of
Done state _ -> do
Done state chkTerm -> do
apiPrintLogs state
apiPrintWarn term state
apiPrintWarn chkTerm state
putStrLn $ "\x1b[32m✓ " ++ fileDefName ++ "\x1b[0m"
return $ Right ()
Fail state -> do
Expand Down
2 changes: 1 addition & 1 deletion src/Kind/Check.hs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ checkUnreachable src cNam term dep = go src cNam term dep where

checkLater :: Bool -> Maybe Cod -> Term -> Term -> Int -> Env Term
checkLater False src term typx dep = check False src term typx dep
checkLater True src term typx dep = envSusp (Check src term typx dep) >> return (Met 0 [])
checkLater True src term typx dep = envSusp (Check src term typx dep) >> return term

doCheckMode :: Bool -> Term -> Env Term
doCheckMode sus (Ann _ val typ) = do
Expand Down

0 comments on commit 8e701ae

Please sign in to comment.