mirror of
https://github.com/github/semantic.git
synced 2024-12-18 12:21:57 +03:00
Merge pull request #275 from github/declare-the-type-of-textElements
Declare the type of textElements.
This commit is contained in:
commit
4a0b320640
@ -136,6 +136,7 @@ contextRows childIndices previousIndices sources = zipWithMaybe rowFromMaybeRows
|
|||||||
leftElements = textElements (Range (fst previousIndices) (fst childIndices)) (fst sources)
|
leftElements = textElements (Range (fst previousIndices) (fst childIndices)) (fst sources)
|
||||||
rightElements = textElements (Range (snd previousIndices) (snd childIndices)) (snd sources)
|
rightElements = textElements (Range (snd previousIndices) (snd childIndices)) (snd sources)
|
||||||
|
|
||||||
|
textElements :: Range -> String -> [HTML]
|
||||||
textElements range source = Text <$> actualLines (substring range source)
|
textElements range source = Text <$> actualLines (substring range source)
|
||||||
|
|
||||||
starts :: (Range , Range) -> (Int, Int)
|
starts :: (Range , Range) -> (Int, Int)
|
||||||
|
Loading…
Reference in New Issue
Block a user