initial "foreign import prim" patches for review
Ian Lynagh
igloo at earth.li
Sun Jun 14 18:24:42 EDT 2009
On Sun, Jun 14, 2009 at 10:26:45PM +0100, Neil Mitchell wrote:
>
> > I've changed it to require -XGHCForeignImportPrim.
>
> The idea of naming a language feature with a compilers name seems like
> a bad idea - surely these extensions could possibly work in other
> compilers, for example LHC.
It's a bit of an odd one: The Haskell syntax
foreign import prim "foo" ident :: type
is in principle portable, but whatever lies on the other side (some C--
code in the case of GHC) is almost certainly not.
Personally I'd have named it ForeignImportPrim, but I can also see the
logic behind making the name GHC-specific. I don't feel strongly either
way.
I think that ForeignImportGhcPrim is a better name than
GHCForeignImportPrim, though.
Thanks
Ian
More information about the Cvs-ghc
mailing list