Implementation of a genetic algorithm in haskell.