The `lexer` target was removed in https://github.com/haskell/cabal/pull/8980
mentioned in commit 2df0f7e4
mentioned in commit f2999b3c