Closed YuMingLiao closed 5 years ago
Actually, I don't need phantom types.
I can create a type constructor by toAddTypeEpxr
now. It works well.
Don't know what happened to me. :p Please ignore this issue.
Right. As you discovered, phantom types are not supported right now, though I can foresee how they might be useful.
The type variable resolution is actually somewhat broken right now- #226. I need to create a mirror type variable dictionary (like GHC does with a
becoming a0
in error messages), but the workaround is easy enough that I haven't spent the time on it.
I see. Thank you for clarifying it!
I was adding a feature in project-m36-typed. I want to auto-derive all the new datatypes found in a schema. And there is a type in
DbRecord a
to represent an id of various types: data RecordId a = RecordId TextIn ProjectM36, am I allowed to create a type whose type variable isn't used in data?