Re: [Haskell-cafe] Re: [Haskell] Re: ANN: Haddock version 2.1.0

2008-05-13 Thread Thomas Schilling
Feel free to CC me or the ticket with things like that. I'll be working on this for this year's GSoC and it'd be helpful to find out what I should tackle first. On Fri, May 9, 2008 at 8:30 PM, Claus Reinke <[EMAIL PROTECTED]> wrote: > > > > Ah, I didn't think about the GHC options that change the

Re: [Haskell-cafe] Re: [Haskell] Re: ANN: Haddock version 2.1.0

2008-05-12 Thread David Waern
2008/5/9 Claus Reinke <[EMAIL PROTECTED]>: > > > > Ah, I didn't think about the GHC options that change the lexical > > syntax. You're right, using the GHC lexer should be easier. > > > > and, if you do that, you could also make the GHC lexer > squirrel away the comments (including pragmas, if th

Re: [Haskell-cafe] Re: [Haskell] Re: ANN: Haddock version 2.1.0

2008-05-09 Thread Claus Reinke
Ah, I didn't think about the GHC options that change the lexical syntax. You're right, using the GHC lexer should be easier. and, if you do that, you could also make the GHC lexer squirrel away the comments (including pragmas, if they aren't already in the AST) someplace safe, indexed by, or a

[Haskell-cafe] Re: [Haskell] Re: ANN: Haddock version 2.1.0

2008-05-09 Thread David Waern
2008/5/9 Simon Marlow <[EMAIL PROTECTED]>: > David Waern wrote: >> >> 2008/5/8 Simon Marlow <[EMAIL PROTECTED]>: >>> >>> So basically you want to run a lexer over the source again to collect all >>> the comments? >> >> Yes. >> >>> You really want to use GHC's lexer, because otherwise you >>> have t

[Haskell-cafe] Re: [Haskell] Re: ANN: Haddock version 2.1.0

2008-05-09 Thread Simon Marlow
David Waern wrote: 2008/5/8 Simon Marlow <[EMAIL PROTECTED]>: So basically you want to run a lexer over the source again to collect all the comments? Yes. You really want to use GHC's lexer, because otherwise you have to write another lexer. I don't mind writing a lexer that just collects

[Haskell-cafe] Re: [Haskell] Re: ANN: Haddock version 2.1.0

2008-05-08 Thread David Waern
2008/5/8 Simon Marlow <[EMAIL PROTECTED]>: > So basically you want to run a lexer over the source again to collect all > the comments? Yes. > You really want to use GHC's lexer, because otherwise you > have to write another lexer. I don't mind writing a lexer that just collects the comments. It

[Haskell-cafe] Re: [Haskell] Re: ANN: Haddock version 2.1.0

2008-05-08 Thread Simon Marlow
David Waern wrote: 2008/5/2 Claus Reinke <[EMAIL PROTECTED]>: 2008/5/2 Simon Marlow <[EMAIL PROTECTED]>: David Waern wrote: No it doesn't, but it's on the TODO list. It needs a fix in GHC. By the way, I'm going to experiment with doing the parsing of comments on the Haddock side instead of