Changes between Version 2 and Version 3 of NewPragmas


Ignore:
Timestamp:
Dec 6, 2005 12:43:58 PM (10 years ago)
Author:
ross@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewPragmas

    v2 v3  
    1 = possible new pragmas = 
     1= Possible New Pragmas = 
    22 
    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. 
     
    55 * LINE - hopefully with optional character position as well as line number so that intraline error reporting can work properly. 
    66 * SRCLOC_ANNOTATE - generalized [wiki:Assertions] which can be used to annotate any function with its use site. 
    7  * DEPRECATED - mark routines which have been deprecated 
     7 * DEPRECATED - mark modules, classes, types and functions that have been deprecated 
    88 * LANGUAGE - a pragma for specifying language options with a common compiler-independent namespace. 
    9  * ENCODING - see [wiki:Unicode] 
     9 * ENCODING - see UnicodeInHaskellSource 
     10 * INCLUDE - see ForeignFunctionInterface 
     11 
     12GHC supports DEPRECATED, LANGUAGE and INCLUDE. 
     13Cabal uses LANGUAGE and INCLUDE. 
     14 
     15== References == 
     16 * [http://www.haskell.org/onlinereport/pragmas.html Compiler Pragmas] in Haskell 98 
     17 * [http://www.haskell.org/ghc/docs/latest/html/users_guide/pragmas.html Pragmas] in the GHC User's Guide