How to specify discard do binds hint?
Open
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 1.6k
- Forks
- 210
- PR merge metrics
- No merged PRs in 30d
Description
Hi! I would like to specify the following rule with hlint:
- warn:
lhs: _ <- foo
rhs: foo_
However, when I try to run hlint (version 2.2.2), I see the following error:
hlint: user error (Failed to read YAML configuration file ~/haskell/sandbox/.hlint.yaml
Aeson exception:
Error in $: Error when decoding YAML, Failed to parse Parse error: <-, when parsing:
_ <- foo
Along path: root 0 warn lhs
When at: String
- warn:
lhs: _ <- foo
rhs: foo_
)
Is there any way to specify discarding of monadic computation inside do-block?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the .hlint.yaml configuration shown in the issue and investigate how HLint parses the lhs and rhs values in version 2.2.2. Check whether the discard rule can be represented by the existing hint syntax; done means a valid configuration expresses the rule and runs without the reported YAML parse error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100