[GHC] #8752: System.FilePath.Windows.combine does not really check isAbsolute

GHC ghc-devs at haskell.org
Mon Sep 15 16:15:01 UTC 2014


#8752: System.FilePath.Windows.combine does not really check isAbsolute
-------------------------------------+-------------------------------------
              Reporter:  joeyhess    |            Owner:  thomie
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  libraries   |          Version:  7.9
  (other)                            |         Keywords:  filepath
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:  Windows     |       Difficulty:  Unknown
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by joeyhess):

 Changing the doc string in only System.FilePath.Windows.combine would be
 confusing because System.FilePath.Posix.combine has the same doc string.
 And I assume most users just use System.FilePath and assume it works for
 any OS, so probably won't notice if the windows version has a caveat
 added.

 Would changing the implementation to really check isAbsolute be likely to
 break things?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8752#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list