Use (.&.) instead of mod in GHC.Event.Manager since the modulus is a power of 2.