Re: [Haskell-cafe] cabal parse problems

sorrily nope, Brian ...
Vasili
On Wed, May 6, 2009 at 6:06 PM,
On Wednesday, 06.05.09 at 18:05, Vasili I. Galchin wrote:
Exposed-modules: Swish.HaskellRDF.BuiltInDatatypes, ... Swish.HaskellRDF.GraphMatch,
Think it probably doesn't like that trailing comma.

are them some CLI switches I can enable in order to better determine what
"parse error" is??
Kind regards, Vasili
On Wed, May 6, 2009 at 6:12 PM, Vasili I. Galchin
sorrily nope, Brian ...
Vasili
On Wed, May 6, 2009 at 6:06 PM,
wrote: On Wednesday, 06.05.09 at 18:05, Vasili I. Galchin wrote:
Exposed-modules: Swish.HaskellRDF.BuiltInDatatypes, ... Swish.HaskellRDF.GraphMatch,
Think it probably doesn't like that trailing comma.

I figured out myself ... even though the parse was allegedly was on line #24
.. it was below because I used as a separator '/' instead of '.'!
Kind regards, Vasili
On Wed, May 6, 2009 at 7:37 PM, Vasili I. Galchin
are them some CLI switches I can enable in order to better determine what "parse error" is??
Kind regards, Vasili
On Wed, May 6, 2009 at 6:12 PM, Vasili I. Galchin
wrote: sorrily nope, Brian ...
Vasili
On Wed, May 6, 2009 at 6:06 PM,
wrote: On Wednesday, 06.05.09 at 18:05, Vasili I. Galchin wrote:
Exposed-modules: Swish.HaskellRDF.BuiltInDatatypes, ... Swish.HaskellRDF.GraphMatch,
Think it probably doesn't like that trailing comma.

On Wed, 2009-05-06 at 19:37 -0500, Vasili I. Galchin wrote:
are them some CLI switches I can enable in order to better determine what "parse error" is??
The problem is that we're using a parser that has no support for producing parse errors (Text.ParserCombinators.ReadP). The only reason we're using this parser is because it's the only one in the core libraries. Packages like parsec cannot be used in Cabal because Cabal is a core library and parsec is not. For this reason we've been considering just copying another parser module into Cabal so that we can have saner (and quicker) parsing.
Kind regards, Vasili
On Wed, May 6, 2009 at 6:12 PM, Vasili I. Galchin
wrote: sorrily nope, Brian ...
For what it's worth, Brian was right, you cannot have a trailing comma in a list field. Perhaps there was an additional error in the file that we could not see in the bit you posted. Duncan

Thanks .. very interesting on the cabal "parsers". I somehow got around my
problem ... forgot how though.
Vasili
On Sat, May 9, 2009 at 10:48 AM, Duncan Coutts
On Wed, 2009-05-06 at 19:37 -0500, Vasili I. Galchin wrote:
are them some CLI switches I can enable in order to better determine what "parse error" is??
The problem is that we're using a parser that has no support for producing parse errors (Text.ParserCombinators.ReadP). The only reason we're using this parser is because it's the only one in the core libraries. Packages like parsec cannot be used in Cabal because Cabal is a core library and parsec is not.
For this reason we've been considering just copying another parser module into Cabal so that we can have saner (and quicker) parsing.
Kind regards, Vasili
On Wed, May 6, 2009 at 6:12 PM, Vasili I. Galchin
wrote: sorrily nope, Brian ... For what it's worth, Brian was right, you cannot have a trailing comma in a list field. Perhaps there was an additional error in the file that we could not see in the bit you posted.
Duncan
participants (2)
-
Duncan Coutts
-
Vasili I. Galchin