1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 17:04:47 +03:00

Add a BranchAlignment type.

This commit is contained in:
Rob Rix 2016-05-25 10:41:17 -04:00
parent 13aaee7526
commit 03ec660dbc

View File

@ -192,6 +192,8 @@ data BranchElement
| Margin (Join These String)
deriving Show
data BranchAlignment = BranchAlignment { branchElements :: [BranchElement] }
branchElementContents :: BranchElement -> Join These String
branchElementContents (Child _ contents) = contents
branchElementContents (Margin contents) = contents