generalized Danmaku Monad