Suggestions for NumDecimals
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 1.6k
- Forks
- 210
- PR merge metrics
- No merged PRs in 30d
Description
GHC 7.8 supports language extension -XNumDecimals: this allows large integer values to be written in floating-point format, e.g. 1.2e6.
A description of this feature can be found in ch. 7.3.4 of http://www.haskell.org/ghc/docs/7.8.1-rc1/users_guide.pdf
A future version of HLint could add suggestions like the following:
found:
5 * 10^(6::Int)
why not:
5e6
What do you think?
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
The issue proposes HLint suggestions for GHC 7.8's NumDecimals extension, with the linked GHC user guide as background. Review the existing HLint suggestion mechanisms, decide which equivalent expressions are in scope, and use the 5 * 10^(6::Int) to 5e6 example as the completion criterion; no files or tests are named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100