1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Add a Unified datatype to render to.

This commit is contained in:
Rob Rix 2015-11-27 14:15:34 -05:00
parent f2cede523e
commit ea37bf8889

View File

@ -11,6 +11,10 @@ import Data.List hiding (foldl)
import qualified Data.Map as Map
import Rainbow
data Unified =
One (Chunk String)
| Many [Unified]
unified :: Diff a Info -> String -> String -> IO ByteString
unified diff before after = do
renderer <- byteStringMakerFromEnvironment