Fix ambiquity due to generalised `elem`

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