Debian Codegraph @

doc/README/Design/LevelPolymorphism.md

raw
1 * Level polymorphism
2
3 `⊥` in `Data.Empty` and `⊤` in `Data.Unit` are not `Level`-polymorphic as that
4 tends to lead to unsolved metas (see discussion at issue #312). This is understandable
5 as very often the level of (say) `⊤` is under-determined by its surrounding context,
6 leading to unsolved metas. This is frequent enough that it makes sense for the default
7 versions to be monomorphic (at Level 0).
8
9 But there are other cases where exactly the opposite is needed. for that purpose,
10 there are level-polymorphic versions in `Data.Empty.Polymorphic` and
11 `Data.Unit.Polymorphic` respectively.
12
13 The same issue happens in `Relation.Unary` which defines `Ø` and `U` at `Level` 0, else
14 a lot of unsolved metas appear (for example in `Relation.Unary.Properties`). For that
15 purpose, `Relation.Unary.Polymorphic` exists.