Skip to content

Support levity polymorphic interface #356

Description

@konsumlamm

Since GHC 9.4, various primitives (Array#, SmallArray#, MutVar#, ...) and their corresponding primops are now levity polymorphic. I propose making the primitive wrappers (Array, SmallArray, MutVar, ...) also levity polymorphic, so that users can take advantage of the levity polymorphism without having to use the primops from GHC.Exts directly.

This would also supersede primitive-unlifted afaict.

I'm not sure if this would be a breaking change, but it should at least be minor, since type variables default to kind Type (so Array a would still be Array (a :: Type)).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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