Unify patterns, parsers and views