added polymorphic fold over parsers