feat: fs2 instead of parTraverse #46

Merged
gk1623 merged 4 commits from fs2 into master 2025-03-14 18:36:00 +00:00
2 changed files with 11 additions and 2 deletions
Showing only changes of commit 8dd23f9e5c - Show all commits

View File

@@ -27,7 +27,7 @@ object semantics {
toRename = (main +: chunks).toList
res <- toRename
.zip(scope.subscopes(toRename.size))
.traverse(checkFunc)
.parTraverse(checkFunc)
(typedChunks, errors) = res.foldLeft((Chain.empty[microWacc.FuncDecl], Chain.empty[Error])) {
case ((acc, err), (funcDecl, errors)) =>
(acc :+ funcDecl, err ++ errors)