Skip to content

TypeRepMap should have role representational #112

Closed
@re-xyr

Description

@re-xyr

Currently, TypeRepMap has type role phantom which allows us to conjure Void out of thin air:

k :: TypeRepMap Identity
k = TMap.one (Identity True)

k' :: Void
k' = getConst $ fromJust $ TMap.lookup @Bool $ coerce k

which is not something very desirable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions