
20 Dec
2008
20 Dec
'08
8:38 a.m.
Hi Neil, Another question: Darcs/Commands/Optimize.lhs:110:1: Use isPrefixOf, and then remove the (==) test Found: 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) Thanks, Martijn.