Don't make ids for empty output tokens

This commit is contained in:
Niels G. W. Serup 2024-09-25 22:12:38 +02:00
parent 6ecb577402
commit 5e73358df7
No known key found for this signature in database
GPG Key ID: 38EEEBCE67324F19
1 changed files with 1 additions and 3 deletions

View File

@ -76,9 +76,7 @@ runFunctionIO :: FunctionIO -> Token a -> DepGenM' b
runFunctionIO f input = genDependency (makeDependency input (FunctionIO f)) runFunctionIO f input = genDependency (makeDependency input (FunctionIO f))
runFunctionIO' :: FunctionIO -> Token a -> DepGenM () runFunctionIO' :: FunctionIO -> Token a -> DepGenM ()
runFunctionIO' f input = do runFunctionIO' f input = tellDep $ makeDependency input (FunctionIO f) NoToken
_ <- runFunctionIO f input
pure ()
mapDepGenM :: (Token a -> DepGenM' b) -> Token [a] -> DepGenM' [b] mapDepGenM :: (Token a -> DepGenM' b) -> Token [a] -> DepGenM' [b]
mapDepGenM f input = genDependencyM $ \target -> do mapDepGenM f input = genDependencyM $ \target -> do