dev-haskell/cabal: autodetect version to mangle

Reported by 'fff' in irc://bynets/#haskell

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>