haskell / hackage-security

Hackage security framework based on TUF (The Update Framework)
http://hackage.haskell.org/package/hackage-security
56 stars 48 forks source link

Report missing .meta keys as SchemaErrors #224

Closed hvr closed 5 years ago

hvr commented 5 years ago

This change was triggered by trying make the codebase MonadFail compatible which exposed a lookupM convenience wrapper which reported lookup failures via Monad(fail). However, schema errors such as missing keys or similar are supposed to be reported via the ReportSchemaError(expected) mechanism.

This however prompts a major version increment to 0.6.0.0.

So this fixes two issues with one commit.