dev-haskell/alex: add a safety check around circular depend

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