Re: [Haskell-cafe] Parsing words with parsec

2007-03-31 Thread Paolo Veronelli
On Friday 30 March 2007 06:59, Stefan O'Rear wrote: Anyway, I think parsec is *far* too big a hammer for the nail you're trying to hit. In the end , the big hammer solution has become parseLine = fmap (map fst. filter snd) $ many parser where parser = do w - option (,False) parseAWord

Re: [Haskell-cafe] Parsing words with parsec

2007-03-30 Thread Paolino
On 3/30/07, Stefan O'Rear [EMAIL PROTECTED] wrote: On Fri, Mar 30, 2007 at 05:43:34AM +0200, paolino wrote: Hi, I had a bad time trying to parse the words of a text. I suspect I miss some parsec knowledge. I'd start by not sextuple-posting, it just sextuples the ugliness ;-) Mhh,

[Haskell-cafe] Parsing words with parsec

2007-03-29 Thread paolino
Hi, I had a bad time trying to parse the words of a text. I suspect I miss some parsec knowledge. In the end it seems working, though I haven't tested much and this example contains the main features I was looking. *Main parseTest (parseLine eof) [EMAIL PROTECTED] sara,mimmo! 9ab a9b

[Haskell-cafe] Parsing words with parsec

2007-03-29 Thread paolino
Hi, I had a bad time trying to parse the words of a text. I suspect I miss some parsec knowledge. In the end it seems working, though I haven't tested much and this example contains the main features I was looking. *Main parseTest (parseLine eof) [EMAIL PROTECTED] sara,mimmo! 9ab a9b