Chemoenzymatic intermolecular haloether synthesis