Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Generic1 #14

@paf31

Description

@paf31

Not sure how simple this. Maybe something like

class Generic1 f where
  toSpine1 :: forall a. f a -> GenericSpine
  fromSpine1 :: forall a. GenericSpine -> Maybe (f a)
  toSignature1 :: Proxy1 f -> GenericSignature1

where GenericSignature1 adds a constructor for the type argument somehow.

With a view to deriving Functor, Foldable, Traversable, etc.

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