A flow-insensitive, modular effect system for purity