dumpString: avoid monadic pattern matching in pure code
dumpString: avoid monadic pattern matching in pure code

These changes avoid the need for having a MonadFail instance for Decoder.

xmonad/xmonad-contrib,xmonad/xmonad-contrib