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

GHC trac at galois.com
Tue May 5 06:36:27 EDT 2009


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

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => invalid
 * cc: NeilMitchell (added)

Comment:

 Replying to [comment:2 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.

 Agreed.  See #2034 (In FilePath, current directory should be ".", not "")

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


More information about the Glasgow-haskell-bugs mailing list