On 6/17/07, Stefan O'Rear <[EMAIL PROTECTED]> wrote:
On Sun, Jun 17, 2007 at 12:08:26PM -0700, Tim Chevalier wrote:
> There's nothing to stop us from just adding deriving(Show) and
> deriving(Read) to those existing data types, right? Of course, this
> requires adding instances for a number of data types. I guess the real
> problem is that someone such as Neil who wants to read in the
> resulting code would have to import a lot of code from GHC.
Why is that a problem? It's almost completely automatic:
import GHC
Maybe it's not a problem. But it seems to me like one of the reasons
to bother having an external file format at all is so that people can
write tools to process Core without having their code be (too)
entangled with GHC. It could be that that's a lost cause, or it could
be that since, as you point out, snarfing in code from GHC is a lot
easier than it used to be, maybe this is no longer one of the reasons
to support an external file format for Core.
Cheers,
Tim
--
Tim Chevalier* [EMAIL PROTECTED] *Often in error, never in doubt
"Aristotle maintained that women have fewer teeth than men; although he was
twice married, it never occurred to him to verify this statement by examining
his wives' mouths." -- Bertrand Russell
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc