haskell-cafe@haskell.org
[Top] [All Lists]

Re: [Haskell-cafe] How efficient is read?

Subject: Re: [Haskell-cafe] How efficient is read?
From: Pierre-Etienne Meunier
Date: Sat, 8 May 2010 23:43:35 -0400
In fact, the time you'd spend writing read instances would not compare to the 
half hour required to learn parsec.
And your parser will be efficient (at least, according to the guys from the 
parser team ;-)

Cheers,
PE


El 08/05/2010, a las 23:32, Tom Hawkins escribió:

> I have a lot of structured data in a program written in a different
> language, which I would like to read in and analyze with Haskell.  And
> I'm free to format this data in any shape or form from the other
> language.
> 
> Could I define a Haskell type for this data that derives the default
> Read, then simply print out Haskell code from the program and 'read'
> it in?  Would this be horribly inefficient?  It would save me some
> time of writing a parser.
> 
> -Tom
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@xxxxxxxxxxx
> http://www.haskell.org/mailman/listinfo/haskell-cafe

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>