Add `Applicative` instance for `MemLog` in `demo.hs`

Fix AMP warning

See: 525bac95b2578f91e506fb45b531ed1280b3cf17