-
-
Notifications
You must be signed in to change notification settings - Fork 18
Conversation
Signatures are actually complex objects. We could use `Value` here since it's unlikely that any consumers care about this, but it's cheap enough to just define a structure for the signature objects. In practice this isn't an issue because it seems like this field is never populated in Hackage, but it can be populated if you build a custom Hackage it can happen. Fixes #16.
I wonder how risky a dependency Sadly I fear we should avoid it, as it has a lot of dependencies which is annoying to have pulled in for |
Yeah, obviously using the proper parser would avoid a lot of these problems, but it's nice to have something minimal here! Just means we need to correct it if things are off :) |
In that light it seems actually better to go with If we document that, I think that's a reasonable compromise and easy enough to use. If ppl want to actually deal with the signatures (i.e. verify them), they should probably be using the proper package anyways. |
Isn't that outside the target usecases of this package? If you have I don't mind using |
See NixOS/cabal2nix#575. |
Signatures are actually complex objects. We could use
Value
here sinceit's unlikely that any consumers care about this, but it's cheap enough
to just define a structure for the signature objects.
In practice this isn't an issue because it seems like this field is
never populated in Hackage, but it can be populated if you build a
custom Hackage it can happen.
Fixes NixOS/cabal2nix#573.