Total synthesis of the chlorine-containing hapalindoles K, A, and G.