Porting text layout. Making use of mapAccumL from new version of purescript-foldable-traversable