1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Stub in a type representing the elements of branches.

This commit is contained in:
Rob Rix 2016-05-20 21:50:52 -04:00
parent 6eabdd06eb
commit 3aaa9f79ca

View File

@ -187,6 +187,10 @@ data Child = Child
, childMargin :: String
}
data BranchElement
= Child' String (Join These String {- newlines or asterisks -})
| Margin (Join These String {- newlines or hyphens -})
toSource :: [Child] -> Source.Source Char
toSource = Source.fromList . concatMap show