To measure the rate of hydrolysis of haloalkanes with water, you can carry out the reaction in the presence of aqueous silver nitrate. As the reaction takes place, the halide ions are produced, which react with the silver ions to form a precipitate of their silver halide. The reaction is carried out in the presence of an ethanol solvent, which allows water and the haloalkane to mix and produce a single solution.