diff options
author | James Crayne <jim.crayne@gmail.com> | 2018-10-28 19:23:49 -0400 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2018-10-28 19:23:49 -0400 |
commit | b5e42b330ab522c1ec81f65feae24896aa70225e (patch) | |
tree | 8c46cc476667a1b29927eadc146f8775c3d378b7 | |
parent | 4aab5a236e578f3cd97566bc142027e06e955f73 (diff) |
document the main haskell module
-rw-r--r-- | haskell/Data/VCDIFF.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/haskell/Data/VCDIFF.hs b/haskell/Data/VCDIFF.hs index a776052..ae8a6af 100644 --- a/haskell/Data/VCDIFF.hs +++ b/haskell/Data/VCDIFF.hs | |||
@@ -11,6 +11,20 @@ | |||
11 | {-# LANGUAGE RankNTypes #-} | 11 | {-# LANGUAGE RankNTypes #-} |
12 | {-# LANGUAGE TypeFamilies #-} | 12 | {-# LANGUAGE TypeFamilies #-} |
13 | {-# LANGUAGE TypeOperators #-} | 13 | {-# LANGUAGE TypeOperators #-} |
14 | -- | | ||
15 | -- | ||
16 | -- Create and apply binary diffs in the VCDIFF format. | ||
17 | -- | ||
18 | -- To create a diff: | ||
19 | -- > diff = computeDiff defaultConfig source target | ||
20 | -- | ||
21 | -- To apply a change to produce an updated version: | ||
22 | -- > target = applyPatch defaultConfig source diff | ||
23 | -- | ||
24 | -- Unlike typical text patches, context is ignored and | ||
25 | -- there is no fuzz. This means the file you apply | ||
26 | -- the patch to must have identical contents to the source | ||
27 | -- used to create it. | ||
14 | module Data.VCDIFF where | 28 | module Data.VCDIFF where |
15 | 29 | ||
16 | import Control.Monad | 30 | import Control.Monad |