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:
parent
f2cede523e
commit
ea37bf8889
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user