Switch to monad-prim in order to allow transformer stacks
below Rand
Added tag v0.6 for changeset fc4f181c8c50