1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +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
2016-07-29 19:24:12 +03:00
-- | A function that will render a diff, given the two source blobs.
2016-07-29 19:59:07 +03:00
type Renderer annotation = Both SourceBlob -> Diff Text annotation -> 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)