[Agda] A feature request: typed pattern synonyms.

Roman effectfully at gmail.com
Mon Jun 20 13:51:54 CEST 2016


Thanks for your suggestion, Yorick. It's a great trick to get nice
case splitting, but having two data types (described lists and a view
for them) seems more heavy than two versions of constructors and
requires a lot more code to change. Currently, to type check the
contents of Data.List.Base after replacing the definition of `List`
with its generic counterpart I need only to rename constructors
(that's yet another problem: different patterns can't have the same
name unlike constructors) and then rename again (patterns to typed
functions) when there are unsolved metas.


More information about the Agda mailing list