[Haskell-cafe] version of findIndex that works with a monadic predicate