'cabal repl': require Cabal version to be >= 1.18.

Fixes #1478.