mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Add type annotation
This commit is contained in:
parent
b928f94b05
commit
741e34a16b
@ -27,7 +27,8 @@ json blobs diff = JSONOutput $ Map.fromList [
|
||||
("rows", toJSON (annotateRows (alignDiff (source <$> blobs) diff))),
|
||||
("oids", toJSON (oid <$> blobs)),
|
||||
("paths", toJSON (path <$> blobs)) ]
|
||||
where annotateRows = fmap (fmap NumberedLine) . numberedRows
|
||||
where annotateRows :: [Join These a] -> [Join These (NumberedLine a)]
|
||||
annotateRows = fmap (fmap NumberedLine) . numberedRows
|
||||
|
||||
-- | A numbered 'a'.
|
||||
newtype NumberedLine a = NumberedLine (Int, a)
|
||||
|
Loading…
Reference in New Issue
Block a user