canonicalizePath only works in GHC
|Reported by:||Neil Mitchell||Owned by:|
|Type of failure:||Test Case:|
|Related Tickets:||Differential Rev(s):|
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)