ndmitchell/hlint

Make it possible to forbid "`fromIntegral` without visible type arguments"

Open

#1.637 aberto em 17 de fev. de 2025

Ver no GitHub
 (9 comments) (5 reactions) (0 assignees)Haskell (208 forks)batch import
good first issue

Métricas do repositório

Stars
 (1.594 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

fromIntegral @Int16 @Int32 is refactor safe but fromIntegral is not. I want to allow the former but forbid the latter.

See https://github.com/haskell/core-libraries-committee/issues/314 for context and in particular Ad-hoc polymorphism erodes type-safety.

Guia do colaborador