The electronic structure of hydrogen fluoride