listToMaybe package:dunai

Converts a list to an MSF in MaybeT, which outputs an element of the list at each step, throwing Nothing when the list ends.