Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ran cabal init

  • Loading branch information...
commit 4c13cd51598689071f483bcce4794517d0cf7f97 1 parent a2f6bb5
@joeyadams authored
Showing with 38 additions and 0 deletions.
  1. +2 −0  Setup.hs
  2. +36 −0 bdelta.cabal
View
2  Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
View
36 bdelta.cabal
@@ -0,0 +1,36 @@
+Name: bdelta
+Version: 0.1
+Synopsis: Simple, fast binary diff/patch
+Description:
+ Compute a patch between two ByteStrings which can later be applied to the
+ first to produce the second. This can be used to save bandwidth and disk
+ space when many strings differing by a small number of bytes need to be
+ transmitted or stored.
+ .
+ The underlying implementation is written in C, and can also be found at
+ <http://ccan.ozlabs.org/info/bdelta.html>.
+ .
+ Currently, the patch does not save any space when two strings differ by
+ more than 1000 bytes. This arbitrary limit serves to keep applications
+ from spiking in memory and CPU usage, as the algorithm uses quadratic
+ space and time with respect to the length of the patch. A better
+ algorithm may be introduced in a future version of bdelta.
+
+Homepage: http://github.com/joeyadams/haskell-bdelta
+License: MIT
+License-file: LICENSE
+Author: Joey Adams
+Maintainer: joeyadams3.14159@gmail.com
+Copyright: Copyright (c) Joseph Adams 2011
+Category: Data
+
+Build-type: Simple
+Extra-source-files: bdelta.c bdelta.h
+Cabal-version: >=1.2
+Library
+ Exposed-modules: Data.BDelta
+ Build-depends: base >= 4 && < 5, bytestring
+ Build-tools: hsc2hs
+ GHC-Options: -Wall
+ C-Sources: bdelta.c
+ CC-Options: -Wall -O3
Please sign in to comment.
Something went wrong with that request. Please try again.