[GHC] #3203: System.Directory.getDirectoryContents functionality on empty String

GHC trac at galois.com
Thu Apr 30 05:37:34 EDT 2009


#3203: System.Directory.getDirectoryContents functionality on empty String
------------------------------+---------------------------------------------
 Reporter:  jberryman         |          Owner:                  
     Type:  feature request   |         Status:  new             
 Priority:  normal            |      Milestone:                  
Component:  libraries/base    |        Version:  6.8.2           
 Severity:  normal            |     Resolution:                  
 Keywords:  System.Directory  |       Testcase:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
------------------------------+---------------------------------------------
Comment (by duncan):

 I have to say, I don't like the idea. There is no file or directory named
 "", though it's true that we alias the file "foo" with "./foo".

 The solution to your examples with `System.FilePath` functions is to fix
 them to return "." rather than "". I recall there being some discussion on
 this point elsewhere.

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


More information about the Glasgow-haskell-bugs mailing list