The reason Gengar’s evolution requires a trade in Legends Z-A is that the developers removed alternate mechanics that existed in some other games (like linking cord or special evolution items).
Unfortunately, there is only one way to Evolve Haunter into Gengar in Pokemon Legends Z-A, trading. That is right, almost ...