Duality for representations of a Hecke algebra