Setting up monad stacks for handling memory maps