[Haskell-cafe] Re: [Haskell] ANN: HLint 1.0

Martijn van Steenbergen martijn at van.steenbergen.nl
Sat Dec 20 08:38:10 EST 2008

Hi Neil,

Another question:

Darcs/Commands/Optimize.lhs:110:1: Use isPrefixOf, and then remove the 
(==) test
take 4 (just_name pinfo) == "TAG "
Why not:
(4 == length "TAG ") && ("TAG " `isPrefixOf` just_name pinfo)

I assume the (==) referred to in the name of the fix is the one in the 
suggestion. Why doesn't the suggestion come with the check removed? I.e.:

Why not:
("TAG " `isPrefixOf` just_name pinfo)



More information about the Haskell-Cafe mailing list