1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Use distributeFor instead of bidistributeFor in Util too.

This commit is contained in:
Rob Rix 2018-04-04 14:39:03 -04:00
parent 47fc8172ca
commit 92a3c82259

View File

@ -211,7 +211,7 @@ diffWithParser ::
-> Task (Diff syntax (Record (Maybe Declaration ': fields)) (Record (Maybe Declaration ': fields))) -> Task (Diff syntax (Record (Maybe Declaration ': fields)) (Record (Maybe Declaration ': fields)))
diffWithParser parser = run (\ blob -> parse parser blob >>= decorate (declarationAlgebra blob)) diffWithParser parser = run (\ blob -> parse parser blob >>= decorate (declarationAlgebra blob))
where where
run parse blobs = bidistributeFor (runJoin blobs) (WrapTask . parse) (WrapTask . parse) >>= diffTermPair diffTerms run parse blobs = distributeFor blobs (WrapTask . parse) >>= diffTermPair diffTerms . runJoin
diffBlobWithParser :: diffBlobWithParser ::
( HasField fields Data.Span.Span ( HasField fields Data.Span.Span