A small information retrieval library in Haskell