Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Enable derivation of makeHFunctor for rank-polymorphic mixed data types. #1

Description

@ymdfield

For example, the Provider effect class:

class Provider c i g (f :: Type -> Type) where
    provide :: i -> (forall h. c h => (f ~> h) -> h a) -> f (g a)

and the effect class data-type:

data ProviderH c i g f a where
    Provide :: i -> (forall h. c h => (f ~> h) -> h a) -> ProviderH c i g f (g a)

Improvement is needed to make makeHFunctor work automatically for this.

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions