Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andy-morris opened this issue Jul 31, 2020 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@andy-morris
Copy link
Contributor

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
@andy-morris andy-morris added this to the milestone Jul 31, 2020
@andy-morris andy-morris added the enhancement New feature or request label Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant