From: reid Date: Tue, 19 May 1998 16:47:43 +0000 (+0000) Subject: [project @ 1998-05-19 16:47:43 by reid] X-Git-Tag: Approx_2487_patches~676 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=05f35ec5085e59c3fd2d36fdba7df3b9978f4f60 [project @ 1998-05-19 16:47:43 by reid] Added first draft of coding style doc --- diff --git a/docs/coding-style.html b/docs/coding-style.html new file mode 100644 index 0000000..ba93509 --- /dev/null +++ b/docs/coding-style.html @@ -0,0 +1,484 @@ + + + + Access To The GHC CVS Repository + + + + +

Coding suggestions for GHC/Hugs related code

+ +

Comments

+ +NB These are just suggestions. They're not set in stone. Some of +them are probably misguided. If you disagree with them, feel free to +modify this document (and make your commit message reasonably informative) +or mail someone (eg The FP-CVS mailing list or +reid-alastair@cs.yale.edu). + + +

References

+ +If you haven't read them already, you might like to check the following. +Where they conflict with our suggestions, they're probably right. + + + + +

Portability issues

+ + + +

Debugging/robustness tricks

+ + +Anyone who has tried to debug a garbage collector or code generator +will tell you: "If a program is going to crash, it should crash as +soon, as noisily and as often as possible." There's nothing worse +than trying to find a bug which only shows up when running GHC on +itself and doesn't manifest itself until 10 seconds after the actual +cause of the problem. + +

+The ideas in this section are mostly aimed at this issue: + +

+ +

Syntactic details

+ + + +

CVS issues

+ + + + + + +