The haskell code to compute patches
compiling per cabal works now