1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 13:21:59 +03:00

Evaluate terms in parallel.

This commit is contained in:
Rob Rix 2017-04-04 11:00:37 -04:00
parent b4d72cc62c
commit f4f83895f6

View File

@ -73,7 +73,7 @@ parseBlob blob = parse (languageForType (takeExtension (path blob))) blob
-- | Diff two terms.
diff :: HasField fields Category => Both (Term (Syntax Text) (Record fields)) -> Command (Diff (Syntax Text) (Record fields))
diff terms = Diff terms `Then` return
diff terms = Diff (terms `using` parTraversable rpar) `Then` return
-- | Diff two terms, producing an insertion/deletion when one is missing and Nothing when both are missing.
maybeDiff :: HasField fields Category => Both (Maybe (Term (Syntax Text) (Record fields))) -> Command (Maybe (Diff (Syntax Text) (Record fields)))