Collective intelligence in haskell