mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Remove termToSummary
This commit is contained in:
parent
b16166d78a
commit
727b1538c3
@ -41,14 +41,6 @@ diffSummary = cata diffSummary' where
|
||||
prependSummary :: a -> DiffSummary a -> DiffSummary a
|
||||
prependSummary annotation summary = summary { parentAnnotations = annotation : parentAnnotations summary }
|
||||
|
||||
termToSummary :: Term leaf Info -> DiffSummary a
|
||||
termToSummary = Foldable.cata summary where
|
||||
summary :: TermF leaf Info f -> DiffSummary a
|
||||
summary (info :< Leaf replace) = undefined
|
||||
summary (info :< Indexed children) = undefined
|
||||
summary (info :< Fixed children) = undefined
|
||||
summary (info :< Keyed _) = undefined
|
||||
|
||||
maybeFirstCategory :: (Categorizable a) => a -> Maybe Category
|
||||
maybeFirstCategory term = listToMaybe . toList $ Category.categories term
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user