-
Notifications
You must be signed in to change notification settings - Fork 204
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 GenMap support in the compiler. #3437
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.
Looks very good. Thank you.
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.
Nice. Thank you.
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.
Nice work, thanks a lot!
@@ -211,6 +212,14 @@ typeOfBuiltin = \case | |||
BEMapDelete -> pure $ TForall (alpha, KStar) $ TText :-> TMap tAlpha :-> TMap tAlpha | |||
BEMapToList -> pure $ TForall (alpha, KStar) $ TMap tAlpha :-> TList (TMapEntry tAlpha) | |||
BEMapSize -> pure $ TForall (alpha, KStar) $ TMap tAlpha :-> TInt64 | |||
BEGenMapEmpty -> pure $ TForall (alpha, KStar) $ TForall (beta, KStar) $ TGenMap tAlpha tBeta |
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.
Perhaps that is nitpicking but I would find this easier to read if we called the type variables k
and v
or key
and value
.
* Add GenMap support in the compiler. * Add GenMap ticket number in Upgrade.hs
This PR advances the implementation of #2256.
This PR adds all the GenMap support that should be necessary in the compiler. That includes:
DAML_GENMAP
BTGenMap
andBEGenMap_*
to the LF ASTThis PR does not update the stdlib.