Changes between Version 35 and Version 36 of Commentary/CodingStyle


Ignore:
Timestamp:
May 7, 2011 9:55:16 PM (3 years ago)
Author:
igloo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/CodingStyle

    v35 v36  
    173173===  The OPTIONS pragma === 
    174174 
    175 An {{{{-# OPTIONS_GHC ... #-}}}} pragma is optional, but if present it should go right at the top of the file. Things you might want to put in OPTIONS include:  
    176  
    177  * {{{#include}}} options to bring into scope prototypes for FFI declarations  
    178  * {{{-fvia-C}}} if you know that this module won't compile with the native code generator.  (deprecated: 
    179    everything should compile with the NCG nowadays, but that wasn't always the case). 
     175An {{{{-# OPTIONS_GHC ... #-}}}} pragma is optional, but if present it should go right at the top of the file. 
    180176 
    181177Don't bother putting `-cpp` or `-fglasgow-exts` in the `OPTIONS` pragma; these are already added to the command line by the build system.