haskell / haskell/hackage-security

Change index representation to avoid pure exceptions

Open
#62 0 comments 0 reactions 0 assignees View on GitHub
cabal-install
Dominant language
Haskell
Stars
63
Forks
56
PR merge metrics
No merged PRs in 30d

Description

That is, change cabal-install's internal index type to something like `PackageId -> Either Problem Content`. This will however have consequences all through the code base. (And note that until we have author signing, we haven't actually introduced any new kinds of errors that can occur while accessing the index.)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating cabal-install's internal index type and tracing every use across the code base. Compare the current exception-based access with the proposed Either Problem Content representation; done means all affected uses consistently handle the result, with no further scope or tests specified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
security
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.