[Haskell-beginners] ByteString unfold that can fail

Oliver Charles ollie at ocharles.org.uk
Tue May 3 08:29:10 UTC 2016


If there is an unfoldM like function then that might do the job, with Maybe
or MaybeT m as your choice of monad.

Ollie

On Mon, 2 May 2016, 11:49 p.m. John Ky, <newhoggy at gmail.com> wrote:

> Hello,
>
> Does anyone know of anything like Data.ByteString.unfoldr, except that it
> can fail with a return value?
>
> Cheers,
>
> -John
>> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160503/8933f5f8/attachment.html>


More information about the Beginners mailing list