Measurement of the production of high-pT electrons from heavy-flavour hadron decays in Pb–Pb collisions at √sNN = 2.76 TeV