Inferring chromospheric flare heating from hydrogen-line wings