[#120] expose target type in type check functions
Description
Problem: `typeCheckValue` and a couple of related functions return
`Typed.Value t` wrapped in an existentially-quantified wrapper. However
these functions also accept something like `Notes t`, from which they
derive the actual desired type of the value being type-checked. This
seems like an unneccessary complication.
Solution: drop existential wrappers and make these function get the type
via TypeApplications.
Related issue(s)
Resolves #120 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Maxim Koltsov