
#478: allow comments on any line, don't require '.' for blank lines ----------------------------+----------------------------------------------- Reporter: duncan | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Cabal-1.8 Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: unknown Ghcversion: | Platform: ----------------------------+----------------------------------------------- Comment (by creswick): The error output for this could at least mention that comments aren't allowed at the end of lines. There is also an inconsistency in the syntax for build-depends and some other lists (eg: extra-source-files). Comments at the end of a line in an extra-source-files list do not cause a parse error, yet they do when added to the end of a line in a build-depends list. In my opinion, the simplest solution is to require that -- be escaped. (eg: \-\-, or \-- ) when it is not used as a comment delimiter. However, I say that without having any experience with the cabal source, so I can't judge the difficulty. I'm also a newbie to haskell, so perhaps this isn't such a great idea... I'd be willing to start working on such a fix if someone with more background than I can suggest one :) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/478#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects