scanl package:monoid-subclasses

Equivalent to scanl from Data.List when applied to a String, but preserves all non-character data.
Equivalent to scanl1 from Data.List when applied to a String, but preserves all non-character data.
scanl f c == scanl1 f . (singleton c <>)