1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 21:01:35 +03:00
semantic/src/Renderer.hs

18 lines
462 B
Haskell

module Renderer where
import Prologue
import Data.Functor.Both
import Diff
import Info
import Source
-- | A function that will render a diff, given the two source files.
type Renderer = Diff Text Info -> Both SourceBlob -> Text
data DiffArguments = DiffArguments { format :: Format, output :: Maybe FilePath, outputPath :: FilePath }
deriving (Show)
-- | The available types of diff rendering.
data Format = Split | Patch | JSON | Summary
deriving (Show)