table: rewrite enumeration to use Data.Seq