ndmitchell / ndmitchell/hlint

Suggestions for NumDecimals

Open
#36 5 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.