Released some Haskell packages


I finished and released a couple of packages written in Haskell today. Here are a few details about them. Posted by Thomas Sutton on April 3, 2015

edit-distance-vector

The edit-distance-vector package is a small library for calculating the optimal edit script and cost to transform one sequence of values into another. The implementation uses the Wagner-Fischer algorithm and the rather fun constructN function.

I have a draft blog post on the way about the details of this package but until that’s done you’ll have to make do with the documentation.

aeson-diff

The aeson-diff package includes a library and two command-line programs for extracting the differences between two JSON documents and for applying these changes. The commands are:

  • aeson-diff which compares two JSON documents and generates a patch describing the differences between them; and

  • aeson-patch which takes a JSON document and updates it according to patch.

I find the aeson-diff command quite useful for comparing different versions of the JSON documents spewed out by several systems I have to deal with at work.

This post was published on April 3, 2015 and last modified on January 26, 2024. It is tagged with: haskell, functional programming, algorithms, software, work.