Incorrect suggestion to replace hPutStrLn with putStrLn
Open
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
- 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
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