Skip to content
  • Thomas Miedema's avatar
    hpc: use System.FilePath.(</>) instead of (++) · 801f4b98
    Thomas Miedema authored
    Summary:
    BAD: "." ++ "/" ++ "/absolute/path" == ".//absolute/path"
    GOOD: "." </> "/absolute/path" == "/absolute path"
    
    Also replace `++ ".ext"` with `<.> "ext"`. Although it doesn't fix any
    bugs in this instance, it might in some other. As a general rule it's
    better not to use (++) on FilePaths.
    
    Reviewed By: austin, hvr
    
    Differential Revision: https://phabricator.haskell.org/D703
    
    GHC Trac Issues: #10138
    801f4b98