package pidgin
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9f05aa80a2867cc15fabbf6d52239567d2d3b386c611dc0467c27799526e5bfc
sha512=42ae7eefe12dfba69266a1e4a19a36c7e4000a30325d222cff8f95fafb011d886b455f3aef0553c4de40d0f7d23455fdbbcca9a273a7095ca6f9d6e999e7aba7
doc/pidgin/Pidgin/Kind/index.html
Module Pidgin.KindSource
A Kind is a type of light type. It holds less information than a full-fledged type system and is used primarily for generating error messages (and perhaps, in the near future, for defunctionalize validation functions). Naively, they can be viewed as a representation that does not hold the value of a term described by Repr.t.
Even though the API is user-facing, it's best to build validators that allow users to ignore it.
Types
The type describing a Kind. Unlike representations, a user does not want to manipulate them explicitly, which is why they remain private. (Not abstract for inspection)
Inference/Deduction
Building kinds
For validation function, we want to be able to create kinds for error reporting. (Remember that kinds are mapped to Repr.t)
Describe the kind for Repr.float.
Describe the kind for Repr.string.
Describe the kind for Repr.record.
Build a tuple, if there is one value, it return it, otherwise it build a pair (possibly of pairs). Non Tail-recursive.