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

pqGramDecorator takes p and q parameters.

This commit is contained in:
Rob Rix 2016-07-27 00:22:31 -04:00
parent 755d9877b4
commit 91e25e811e

View File

@ -126,8 +126,8 @@ compareCategoryEq = (==) `on` category . extract
termCostDecorator :: (Prologue.Foldable f, Functor f) => TermDecorator f a Cost
termCostDecorator c = 1 + sum (cost <$> tailF c)
pqGramDecorator :: (Prologue.Foldable f, Functor f) => (forall b. CofreeF f (Record a) b -> label) -> TermDecorator f a (DList.DList (Gram label))
pqGramDecorator getLabel (a :< s) = empty
pqGramDecorator :: (Prologue.Foldable f, Functor f) => (forall b. CofreeF f (Record a) b -> label) -> Int -> Int -> TermDecorator f a (DList.DList (Gram label))
pqGramDecorator getLabel p q (a :< s) = empty
-- | The sum of the node count of the diffs patches.
diffCostWithCachedTermCosts :: HasField fields Cost => Diff leaf (Record fields) -> Integer