The joint evolution of baryons and dark matter haloes | Synapse