-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add with-unknown-type #71
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the small PR 😄
| EPrimTypeMacro (SplitTypePtr -> Syntax -> Expand ()) (TypePatternPtr -> Syntax -> Expand ()) | ||
-- ^ For type-level special forms - first as types, then as type patterns | ||
| EPrimModuleMacro (Syntax -> Expand ()) | ||
| EPrimDeclMacro (DeclTreePtr -> DeclOutputScopesPtr -> Syntax -> Expand ()) | ||
| EPrimPatternMacro (Either (Ty, Ty, PatternPtr) (Ty, TypePatternPtr) -> Syntax -> Expand ()) | ||
| EPrimUniversalMacro (MacroDest -> Syntax -> Expand ()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is a "universal" macro?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Universal in the sense that it works in any syntactic context, be it expression, type, decl, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is its meaning in a pattern context? Looks like an error? And in a declaration context? What about a module context? (Not trying to be annoying, just trying to understand 😄)
Universal in the sense that it works in any syntactic context, be it
expression, type, decl, etc.
…On Wed, May 6, 2020, 07:37 Langston Barrett ***@***.***> wrote:
***@***.**** approved this pull request.
Love the small PR 😄
------------------------------
In src/Expander/Monad.hs
<#71 (comment)>:
> | EPrimTypeMacro (SplitTypePtr -> Syntax -> Expand ()) (TypePatternPtr -> Syntax -> Expand ())
-- ^ For type-level special forms - first as types, then as type patterns
| EPrimModuleMacro (Syntax -> Expand ())
| EPrimDeclMacro (DeclTreePtr -> DeclOutputScopesPtr -> Syntax -> Expand ())
| EPrimPatternMacro (Either (Ty, Ty, PatternPtr) (Ty, TypePatternPtr) -> Syntax -> Expand ())
+ | EPrimUniversalMacro (MacroDest -> Syntax -> Expand ())
What is a "universal" macro?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#71 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4FAX3HQ2WPCQ2KI45NVTRQFYYZANCNFSM4M2D6UAQ>
.
|
This is half of #60. See that issue for a description of the new operator.