You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A phantom type is a parametrised type whose parameters do not all appear on the right-hand side of its definition
In FStar, type parameters are added as regular implicits arguments of the type constructors (for example, on can project them). So morally, they do appear on the right-hand side. This is mentioned by @kyoDralliam in #65.
I don't know if lack of phantom types is such an issue, but it seems like a weird setting to me. Anyway as projecting type parameters from constructors is about to be forbidden (fix for #65), opening this issue for discussion.
Question: maybe we shouldn't carry them around at all?
The text was updated successfully, but these errors were encountered:
According to the Haskell Wiki:
In FStar, type parameters are added as regular implicits arguments of the type constructors (for example, on can project them). So morally, they do appear on the right-hand side. This is mentioned by @kyoDralliam in #65.
I don't know if lack of phantom types is such an issue, but it seems like a weird setting to me. Anyway as projecting type parameters from constructors is about to be forbidden (fix for #65), opening this issue for discussion.
Question: maybe we shouldn't carry them around at all?
The text was updated successfully, but these errors were encountered: