To hack and tweak some haskell