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:
parent
755d9877b4
commit
91e25e811e
@ -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 diff’s patches.
|
||||
diffCostWithCachedTermCosts :: HasField fields Cost => Diff leaf (Record fields) -> Integer
|
||||
|
Loading…
Reference in New Issue
Block a user