mirror of
https://github.com/github/semantic.git
synced 2024-12-26 16:33:03 +03:00
Compute a pair of Sources from a list of child lines.
This commit is contained in:
parent
048c9d34c2
commit
6eabdd06eb
@ -190,6 +190,9 @@ data Child = Child
|
|||||||
toSource :: [Child] -> Source.Source Char
|
toSource :: [Child] -> Source.Source Char
|
||||||
toSource = Source.fromList . concatMap show
|
toSource = Source.fromList . concatMap show
|
||||||
|
|
||||||
|
toSources :: [Join These Child] -> Both (Source.Source Char)
|
||||||
|
toSources = fmap toSource . toChildLists
|
||||||
|
|
||||||
toChildLists :: [Join These Child] -> Both [Child]
|
toChildLists :: [Join These Child] -> Both [Child]
|
||||||
toChildLists = foldMap (modifyJoin (fromThese [] []) . fmap (:[]))
|
toChildLists = foldMap (modifyJoin (fromThese [] []) . fmap (:[]))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user