Idris2-boot/tests/typedd-book
Edwin Brady 04e4ebf80e Better approach to erasure in pattern matching
It's a big patch, but the summary is that it's okay to use a pattern in
an erased position if either:

- the pattern can also be solved by unification (this is the same as
  'dot patterns' for matching on non-constructor forms)
- the argument position is detaggable w.r.t. non-erased arguments, which
  means we can tell which pattern it is without pattern matching

The second case, in particular, means we can still pattern match on
proof terms which turn out to be irrelevant, especially Refl.

Fixes #178
2020-01-21 18:47:43 +00:00
..
chapter01 Add '--no-banner' option 2019-09-24 20:26:25 +06:00
chapter02 Make a start on Data.Vect 2019-06-30 17:38:40 +01:00
chapter03 Make a start on Data.Vect 2019-06-30 17:38:40 +01:00
chapter04 Remove trailing whitespace from Idris sources. 2019-10-25 14:24:25 -07:00
chapter05 Remove trailing whitespace from Idris sources. 2019-10-25 14:24:25 -07:00
chapter06 Add 'last chance' unification and tweak guesses 2019-07-05 00:09:00 +01:00
chapter07 Remove trailing whitespace from Idris sources. 2019-10-25 14:24:25 -07:00
chapter08 Remove trailing whitespace from Idris sources. 2019-10-25 14:24:25 -07:00
chapter09 Better approach to erasure in pattern matching 2020-01-21 18:47:43 +00:00
chapter10 Better approach to erasure in pattern matching 2020-01-21 18:47:43 +00:00
chapter11 Remove trailing whitespace from Idris sources. 2019-10-25 14:24:25 -07:00
chapter12 Remove trailing whitespace from Idris sources. 2019-10-25 14:24:25 -07:00