ndmitchell / ndmitchell/hlint

Incorrect suggestion to replace hPutStrLn with putStrLn

Open
#294 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scope
Dominant language
Haskell
Stars
1.6k
Forks
210
PR merge metrics
No merged PRs in 30d

Description

{-# LANGUAGE NoImplicitPrelude #-}
module Test where

import Data.IOData
import System.IO (stdout)

main :: IO ()
main = hPutStrLn stdout "Hello, World!"

This hPutStrLn comes from Data.IOData (in chunked-data), which has different behavior to the suggested putStrLn (which isn't even in scope, due to NoImplicitPrelude).

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

Start with the Haskell example using Data.IOData.hPutStrLn, NoImplicitPrelude, and stdout, then locate the suggestion logic that proposes putStrLn. The issue is done when HLint no longer recommends that replacement when it changes behavior or is not in scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.