mirror of
https://github.com/github/semantic.git
synced 2024-11-28 18:23:44 +03:00
add type
This commit is contained in:
parent
dfe8648a11
commit
f79d04e437
@ -62,6 +62,7 @@ diffFiles parser renderer sourceBlobs = do
|
|||||||
Free (info :< _) -> cost <$> info
|
Free (info :< _) -> cost <$> info
|
||||||
Pure patch -> uncurry both (fromThese 0 0 (unPatch (cost . extract <$> patch)))
|
Pure patch -> uncurry both (fromThese 0 0 (unPatch (cost . extract <$> patch)))
|
||||||
|
|
||||||
|
getLabel :: HasField fields Category => CofreeF (Syntax leaf) (Record fields) b -> (Category, Maybe leaf)
|
||||||
getLabel (h :< t) = (category h, case t of
|
getLabel (h :< t) = (category h, case t of
|
||||||
Leaf s -> Just s
|
Leaf s -> Just s
|
||||||
_ -> Nothing)
|
_ -> Nothing)
|
||||||
|
Loading…
Reference in New Issue
Block a user