Skip to content

function to show the effective output datatype after an extension #28

Description

@andy-morris

something like

extensible [d| data A = A |]

{-
other stuff, plus:
printExtendA :: String -- ^ datatype name
             -> [Name] -- ^ extra tyvars
             -> ExtA -> Dec
-}
>>> ppr $ printExtendA "A" [] $ defaultExtA {typeA = Just [[t|Int|]]}
data A = A Int

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions