kirancodes.me
To Proof Maintenance & Beyond!

Pattern synonyms

Matthew Pickering, Gergo Érdi, Simon Peyton Jones, Richard A. Eisenberg

Abstract

Pattern matching has proven to be a convenient, expressive way of inspecting data. Yet this language feature, in its traditional form, is limited: patterns must be data constructors of concrete data types. No computation or abstraction is allowed. The data type in question must be concrete, with no ability to enforce any invariants. Any change in this data type requires all clients to update their code.

Related papers