-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A parser for diff file formats -- -- Parse output produced by git diff. @package diff-parse @version 0.1.2 module Text.Diff.Parse.Types data Annotation Added :: Annotation Removed :: Annotation Context :: Annotation data Line Line :: Annotation -> Text -> Line lineAnnotation :: Line -> Annotation lineContent :: Line -> Text data Range Range :: Int -> Int -> Range rangeStartingLineNumber :: Range -> Int rangeNumberOfLines :: Range -> Int data Hunk Hunk :: Range -> Range -> [Line] -> Hunk hunkSourceRange :: Hunk -> Range hunkDestRange :: Hunk -> Range hunkLines :: Hunk -> [Line] data FileStatus Created :: FileStatus Deleted :: FileStatus Modified :: FileStatus data FileDelta FileDelta :: FileStatus -> Text -> Text -> [Hunk] -> FileDelta fileDeltaStatus :: FileDelta -> FileStatus fileDeltaSourceFile :: FileDelta -> Text fileDeltaDestFile :: FileDelta -> Text fileDeltaHunks :: FileDelta -> [Hunk] type FileDeltas = [FileDelta] instance Show Annotation instance Eq Annotation instance Show Line instance Eq Line instance Show Range instance Eq Range instance Show Hunk instance Eq Hunk instance Show FileStatus instance Eq FileStatus instance Show FileDelta instance Eq FileDelta module Text.Diff.Parse parseDiff :: Text -> Either String FileDeltas