Changes between Version 6 and Version 7 of NewPragmas


Ignore:
Timestamp:
Nov 24, 2006 12:24:03 PM (9 years ago)
Author:
malcolm.wallace@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewPragmas

    v6 v7  
    33While implementations are never under any obligation to follow pragmas, it is good to have standardized meanings for common pragmas so that when implementations do use them they can do so in a way that is compatable with others. 
    44 
     5Haskell'98 specifies: 
     6 * INLINE 
     7 * NOINLINE 
     8 * SPECIALIZE 
     9 
     10Here are some suggestions for newer pragmas to standardise: 
    511 * LINE - hopefully with optional character position as well as line number so that intraline error reporting can work properly. 
    612 * SRCLOC_ANNOTATE - generalized [wiki:Assertions] which can be used to annotate any function with its use site. 
     
    1925 * PREPROCESS - pragma to specify arbitrary program to preprocess file 
    2026 
    21 GHC supports DEPRECATED, LANGUAGE and INCLUDE. 
     27GHC supports INLINE, NOINLINE, SPECIALIZE, LINE, DEPRECATED, LANGUAGE, INCLUDE, RULES, OPTIONS_GHC. 
     28 
     29nhc98 supports LINE, OPTIONS_NHC. 
     30 
    2231Cabal uses LANGUAGE and INCLUDE. 
    2332