1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/src/Renderer.hs
2016-04-04 17:20:26 -04:00

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