Ticket #4488 (closed feature request: fixed)
Warn about unnecessary fromIntegral and other conversions
| Reported by: | mitar | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.4.1 |
| Component: | Compiler | Version: | 6.12.3 |
| Keywords: | Cc: | mmitar@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | |
| Test Case: | deSugar/should_compile/T4488 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
GHC should report unnecessary fromIntegral and other conversions. Sometimes you change the type later on and fromIntegral stays in the code but it is not necessary anymore. HLint cannot do that because it does not know about types.
Change History
Note: See
TracTickets for help on using
tickets.
