canonicalizePath throws exception on paths that do not exist
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 (closed)) but it would be nice if it didn't crash.
Trac metadata
Trac field | Value |
---|---|
Version | 7.0.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/directory |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |