[GHC] #983: canonicalizePath only works in GHC

GHC trac at galois.com
Fri Nov 3 09:40:16 EST 2006


#983: canonicalizePath only works in GHC
------------------------------+---------------------------------------------
    Reporter:  Neil Mitchell  |       Owner:         
        Type:  bug            |      Status:  new    
    Priority:  normal         |   Milestone:         
   Component:  Compiler       |     Version:  6.6    
    Severity:  major          |    Keywords:         
  Difficulty:  Unknown        |    Testcase:         
Architecture:  Unknown        |          Os:  Unknown
------------------------------+---------------------------------------------
In System.IO, the function canonicalizePath is defined as:

 {{{
 #ifdef __GLASGOW_HASKELL__
 -- | Given path referring to a file or directory, returns a
 -- canonicalized path, with the intent that two paths referring
 -- to the same file\/directory will map to the same canonicalized
 -- path. Note that it is impossible to guarantee that the
 -- implication (same file\/dir \<=\> same canonicalizedPath) holds
 -- in either direction: this function can make only a best-effort
 -- attempt.
 canonicalizePath :: FilePath -> IO FilePath
 ...
 #else /* !__GLASGOW_HASKELL__ */
 -- dummy implementation
 canonicalizePath :: FilePath -> IO FilePath
 canonicalizePath fpath = return fpath
 #endif /* !__GLASGOW_HASKELL__ */
 }}}

 This is obviously a problem for anyone who uses Hugs or Yhc.

 (Opening it as a GHC bug because it must have been someone using GHC who
 put this in)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/983>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list