Get External Core (-fext-core) working with readline
authorSamuel Bronson <naesten@gmail.com>
Wed, 1 Nov 2006 00:36:49 +0000 (00:36 +0000)
committerSamuel Bronson <naesten@gmail.com>
Wed, 1 Nov 2006 00:36:49 +0000 (00:36 +0000)
commite513c1cc1de895fed5796d16cb67525f4b581b2a
tree22bd9ef00c1d75bc4ee3dfd77da986fb6f264367
parent2011e9b1cbe775094dc2fd7968a8175068dc0ee8
Get External Core (-fext-core) working with readline
Had to add support for dynamic C calls and for foreign labels (Addr#
constants). Actually I only did the printing side -- parsing is not
done yet. But at least now you can build the libraries with -fext-core.

I also got the function arrow to print out properly again (it was
printing fully-qualified and z-coded!)

I also added a field for calling convention name to the External
data constructor in ExternalCore.Exp (for static C calls).

I'm not exactly sure where to document all of this, so I haven't done
that, though I did comment the code a bit.
compiler/coreSyn/ExternalCore.lhs
compiler/coreSyn/MkExternalCore.lhs
compiler/coreSyn/PprExternalCore.lhs