[nhc-bugs] Patches for building NHC98 with current GHC

Sven Panne Sven.Panne@informatik.uni-muenchen.de
Tue, 02 Apr 2002 07:58:26 +0200


This is a multi-part message in MIME format.
--------------050106040704000908060501
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Although it's not good style to simply post to a mailing list without
thoroughly browsing the its archives for a similar problem, I'll do it
anyway... >:-)

To build NHC98 1.12 with a current (= from CVS) GHC, two patches have to
be applied:

    * PrelBase has gone and there are probably *very* few people out there
      (if any :-) with an ancient GHC <= 2.02, so the lines which make hmake
      fail can simply be nuked.

    * Besides other things, -fglasgow-exts switches on the handling of implicit
      paramters and the syntax %foo for linear implicit parameters. Alas, a space
      is missing then in LexLow.hs.

Cheers,
    S.

--------------050106040704000908060501
Content-Type: text/plain;
 name="patch-1.12-maybe"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="patch-1.12-maybe"

ZGlmZiAtdSAtciBuaGM5OC0xLjEyLW9yaWcvc3JjL2dyZWVuY2FyZC9EZWNsLmxocyBuaGM5
OC0xLjEyL3NyYy9ncmVlbmNhcmQvRGVjbC5saHMKLS0tIG5oYzk4LTEuMTItb3JpZy9zcmMv
Z3JlZW5jYXJkL0RlY2wubGhzCU1vbiBPY3QgMTEgMTI6NTA6MzggMTk5OQorKysgbmhjOTgt
MS4xMi9zcmMvZ3JlZW5jYXJkL0RlY2wubGhzCVR1ZSBBcHIgIDIgMDY6NTI6NTMgMjAwMgpA
QCAtMjAsMTAgKzIwLDYgQEAKIAogaW1wb3J0IFByZXR0eQogCi0jaWYgZGVmaW5lZChfX0dM
QVNHT1dfSEFTS0VMTF9fKSAmJiBfX0dMQVNHT1dfSEFTS0VMTF9fIDw9IDIwMgotaW1wb3J0
IFByZWxCYXNlKG1heWJlKSAtLSB3b3JrYXJvdW5kIGZvciBHSEMgMi4wMgotI2VuZGlmCi0K
IFxlbmR7Y29kZX0KIAogXGJlZ2lue2NvZGV9CmRpZmYgLXUgLXIgbmhjOTg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0jaWYgZGVmaW5lZChfX0dMQVNHT1dfSEFT
S0VMTF9fKSAmJiBfX0dMQVNHT1dfSEFTS0VMTF9fIDw9IDIwMgotaW1wb3J0IFByZWxCYXNl
KG1heWJlKSAtLSB3b3JrYXJvdW5kIGZvciBHSEMgMi4wMgotI2VuZGlmCi0KICNpZiBkZWZp
bmVkKF9fSEFTS0VMTDk4X18pCiAjICBpZiAhZGVmaW5lZChfX0hCQ19fKQogaW1wb3J0IElP
KGhQdXRTdHJMbikK
--------------050106040704000908060501
Content-Type: text/plain;
 name="patch-1.12-linear"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="patch-1.12-linear"

ZGlmZiAtdSAtciBuaGM5OC0xLjEyLW9yaWcvc3JjL2NvbXBpbGVyOTgvTGV4TG93LmhzIG5o
Yzk4LTEuMTIvc3JjL2NvbXBpbGVyOTgvTGV4TG93LmhzCi0tLSBuaGM5OC0xLjEyLW9yaWcv
c3JjL2NvbXBpbGVyOTgvTGV4TG93LmhzCVR1ZSBEZWMgMTEgMTA6NTU6MTMgMjAwMQorKysg
bmhjOTgtMS4xMi9zcmMvY29tcGlsZXI5OC9MZXhMb3cuaHMJVHVlIEFwciAgMiAwNzoyODoy
MSAyMDAyCkBAIC0yNDAsNyArMjQwLDcgQEAKIAogICAgICAgICAgICAgICAgIGxleEhlbHAg
aSAoYycnLHMsbSxlOnhzJycpIHwgKGUgPT0gJ2UnIHx8IGUgPT0gJ0UnKSA9CiAgICAgICAg
ICAgICAgICAgICAgICAgICBjYXNlIGxleEV4cCBjJycgeHMnJyBvZgotICAgICAgICAgICAg
ICAgICAgICAgICAgICAoYycnJyxlLHhzJycnKSAtPiAocixjJycnLExfUkFUSU9OQUwgKCgo
KGkqcyttKSVzKTo6UmF0aW9uYWwpKjEwXl5lKSx4cycnJykKKyAgICAgICAgICAgICAgICAg
ICAgICAgICAgKGMnJycsZSx4cycnJykgLT4gKHIsYycnJyxMX1JBVElPTkFMICgoKChpKnMr
bSkgJSBzKTo6UmF0aW9uYWwpKjEwXl5lKSx4cycnJykKIC0tLSAgICAgICAgICAgICAgICAg
ICAgICAgICAgKGMnJycsZSx4cycnJykgLT4gKHIsYycnJyxMX1JBVElPTkFMICgoKChpKnMr
bSklcyk6OlJhdGlvbmFsKXstKihmcm9tSW50ZWdlciAxMF5eZSktfSkseHMnJycpICAgLS0t
IEdPRkVSIE9OTFkgISEhCiAgICAgICAgICAgICAgICAgbGV4SGVscCBpIChjJycscyxtLHhz
JycpID0KICAgICAgICAgICAgICAgICAgICAgICAgIChyLGMnJyxMX1JBVElPTkFMICgoaSpz
K20pICUgcykseHMnJykK
--------------050106040704000908060501--