If there is an unfoldM like function then that might do the job, with Maybe or MaybeT m as your choice of monad.
_______________________________________________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@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners