listToMaybe package:automaton

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