mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
16 lines
417 B
Haskell
16 lines
417 B
Haskell
module Renderer where
|
|
|
|
import Data.Functor.Both
|
|
import Diff
|
|
import Info
|
|
import Source
|
|
import Data.Text
|
|
|
|
-- | A function that will render a diff, given the two source files.
|
|
type Renderer a = Diff a Info -> Both SourceBlob -> Text
|
|
|
|
data DiffArguments = DiffArguments { format :: Format, output :: Maybe FilePath, outputPath :: FilePath }
|
|
|
|
-- | The available types of diff rendering.
|
|
data Format = Split | Patch | JSON
|