Sometimes puresript has difficulty inferring phantom types involved. In this case either add explicit type application or use
EffR
directly across your monadic computation.