[Hackage] #712: File names can contain spaces

Hackage cvs-ghc at haskell.org
Sat Jul 17 22:13:52 EDT 2010


#712: File names can contain spaces
----------------------------+-----------------------------------------------
  Reporter:  guest          |        Owner:         
      Type:  defect         |       Status:  closed 
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:  HEAD   
  Severity:  normal         |   Resolution:  invalid
  Keywords:                 |   Difficulty:  unknown
Ghcversion:                 |     Platform:         
----------------------------+-----------------------------------------------
Changes (by duncan):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 As far as I know this is correct. The example cited is a misunderstanding.
 The correct test is:
 {{{
 readP_to_S parseFilePathQ "\"C:\\\\Path With Spaces\\\\\""
 }}}
 because that corresponds to the Haskell String "C:\\Path With Spaces\\"
 which is the representation of
 {{{
 C:\Path With Spaces\
 }}}
 If one uses the following in a .cabal file then it works as expected
 {{{
 extra-lib-dirs: "C:\\Path With Spaces\\"
 }}}

 I am assuming therefore that this ticket is just a misunderstanding. If
 there is a genuine bug then please reopen with further details. If the bug
 is in the user guide then lets improve that, suggestions welcome. Or
 perhaps we should make it an error for a token to start with " but then to
 have incorrect Haskell String lexical syntax.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/712#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list