[Haskell-cafe] How to parsing files

Henning Thielemann lemming at henning-thielemann.de
Wed Jul 20 12:24:30 EDT 2005

On Wed, 20 Jul 2005, Jake Luck wrote:

> > I need to parse a file in this format:
> >   float float float
> >   float float float
> > Each row has 3-columns of floating procision number divided by white
> > space. The number of lines is undefined. I use (lines (readFile "..."))
> > to read the file.
> Text.ParserCombinators.Parsec sounds perfect, no?

That's certainly overkill since 'lines', 'words', 'read' will suffice.

More information about the Haskell-Cafe mailing list