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

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