Skip to content

Newtype Deriving #514

Description

@paf31

Since the representation of newtypes is the same as the underlying type, we should be able to "derive" instances by just using the existing instance directly.

Suggested syntax:

newtype Trace a = Trace (Eff (trace :: Trace) a) deriving (functorEff, applyEff, applicativeEff, bindEff, monadEff)

Note this would allow us to apply optimizations like "magic do" to monads derived from Eff.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions