I got the idea while thinking about how a "direct compression" distiller works.
Basically, tap water is let into an evaporator chamber through an expansion valve. There is a vacuum in a chamber so the water "cold boils". An independent heat exchanger cycle cools water that then flows through a radiator that is used to cool the room. (This way, it would be easy to clean the evaporator.) Some water is pumped out to clean out any impurities left behind, using a counter-flow heat exchanger to precool the incoming water. The waste water then subcools the product water and is then either used or disposed of. A centrifugal compressor (either oil-less or using vegetable oil) takes the vapor from the evaporator chamber and pumps it into the outdoor condenser, where the vapor recondenses into a liquid. The (very pure) liquid water is then pumped into a storage tank for use. Since tap water contains some dissolved gases, a purge system after the condenser pumps out non-condensables.

I can just imagine its applications. What about a water vending machine that uses the cooling function to cool the product water? Or a bottled water factory that is cooled down by the distiller?