-
Notifications
You must be signed in to change notification settings - Fork 64
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 PIsData
and PlutusType
instances for PMap
and PValue
#161
Conversation
actually I think I can implement the remaining instances manually. Don't merge this yet |
|
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 good 👍 ,
If further compromise is needed just to get lifting for Value
working, then it itself could just be monomorphically special-cased.
Never mind, the
So, the instance for |
@@ -572,10 +571,15 @@ instance PIsDataRepr PDCert where | |||
|
|||
---------- AssocMap | |||
|
|||
newtype PMap (a :: PType) (b :: PType) (s :: S) | |||
= PMap (Term s (PBuiltinMap a b)) | |||
newtype PMap (k :: PType) (v :: PType) (s :: S) = PMap (Term s (PBuiltinMap k v)) |
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.
@t1lde why did you make a newtype for this BTW?
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.
LGTM
Here it is, it works!
We're still missing
PConstant
/PLift
instance forPMap
andPValue
- I can't figure out the error but I have documented it. With that said, I'd argue aPConstant
/PLift
instance isn't as important right now.