BartMassey / BartMassey/parseargs

parseArgsIO is lazy

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Haskell
Stars
10
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Even though it is in the IO monad, `parseArgsIO` does not finish until its result is needed. Unfortunately, this means that argument parsing errors may not happen in time. An obvious workaround is to evaluate some argument test early. Perhaps bang patterns should be added to `parseargs` for this: it is not clear. More consideration is needed.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the parseArgsIO entry point and the parseargs implementation named in the issue, focusing on when argument parsing errors are evaluated. Determine an agreed evaluation point and verify that parsing errors occur before the result is needed; the issue does not name a test or file beyond these entry points.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.