Structure of the HX-HX′ dimers