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

16 lines
417 B
Haskell
Raw Normal View History

module Renderer where
import Data.Functor.Both
import Diff
2016-03-31 00:26:52 +03:00
import Info
import Source
2016-04-05 00:20:26 +03:00
import Data.Text
-- | A function that will render a diff, given the two source files.
2016-04-05 00:20:26 +03:00
type Renderer a = Diff a Info -> Both SourceBlob -> Text
2016-04-01 22:34:52 +03:00
data DiffArguments = DiffArguments { format :: Format, output :: Maybe FilePath, outputPath :: FilePath }
-- | The available types of diff rendering.
data Format = Split | Patch | JSON