Either package:incipit-base

Some utilities for working with Either.
Version of readEither that returns Text in case of the parse error.
>>> readEither @Int "123"
Right 123

>>> readEither @Int "aa"
Left "Prelude.read: no parse"