#5014: canonicalizePath throws exception on paths that do not exist
---------------------------------+------------------------------------------
    Reporter:  hesselink         |       Owner:                     
        Type:  bug               |      Status:  new                
    Priority:  normal            |   Component:  libraries/directory
     Version:  7.0.2             |    Keywords:                     
    Testcase:                    |   Blockedby:                     
          Os:  Unknown/Multiple  |    Blocking:                     
Architecture:  Unknown/Multiple  |     Failure:  Runtime crash      
---------------------------------+------------------------------------------
 Assume path `foo` exists, but `foo/bar` doesn't. On GHC 6.12,
 `canonicalizePath "foo/bar"` gave back a result. On GHC 7.02, I get an
 exception:

 {{{
 *** Exception: foo/bar: canonicalizePath: does not exist (No such file or
 directory)
 }}}

 The behavior is not defined by the documentation, or at all (see #4215)
 but it would be nice if it didn't crash.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to