Fix ambiquity due to generalised `elem`

In base-4.8, `elem` has been generalised to `Foldable`, so in
combination with `-XOverloadedStrings`, something like `\c -> elem c "abc"`
can't be type-inferred anymore.

Fixes #41