Haskell based indexer