1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00

Don’t bind syntax.

This commit is contained in:
Rob Rix 2017-05-05 15:56:04 -04:00
parent 274095720b
commit 628bf46ed3

View File

@ -97,7 +97,7 @@ diffTOC blobs diff = removeDupes (diffToTOCSummaries (source <$> blobs) diff) >>
diff' = free (Prologue.fst <$> diff)
(beforeInfo, afterInfo) = runJoin $ termToDiffInfo <$> sources
in case first (toTOCSummaries . mapPatch beforeInfo afterInfo) diff of
(Free (_ :< syntax)) -> mapToInSummarizable sources diff' (toList syntax >>= snd)
(Free _) -> mapToInSummarizable sources diff' (toList diff >>= snd)
(Pure summaries) -> summaries
-- Mark which leaves are summarizable.