1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
semantic/src/Renderer.hs

17 lines
467 B
Haskell
Raw Normal View History

module Renderer where
import Prologue
import Data.Functor.Both
import Diff
import Source
-- | A function that will render a diff, given the two source files.
type Renderer annotation = Diff Text annotation -> Both SourceBlob -> Text
2016-04-01 22:34:52 +03:00
data DiffArguments = DiffArguments { format :: Format, output :: Maybe FilePath, outputPath :: FilePath }
2016-04-12 20:10:24 +03:00
deriving (Show)
2016-04-01 22:34:52 +03:00
-- | The available types of diff rendering.
2016-05-18 19:01:16 +03:00
data Format = Split | Patch | JSON | Summary
2016-04-12 20:10:24 +03:00
deriving (Show)