X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Futils.sgml;h=e9839af17ba60356ac736e7319314ec098e3a7aa;hb=6aae7d069771a18e31dceacb1996b10eddc693de;hp=d130c719bf09a073962c35928f4fbb35c42f04f1;hpb=2947e534cfb45e3eff9f06e8f60d19117da3ac63;p=ghc-hetmet.git diff --git a/ghc/docs/users_guide/utils.sgml b/ghc/docs/users_guide/utils.sgml index d130c71..e9839af 100644 --- a/ghc/docs/users_guide/utils.sgml +++ b/ghc/docs/users_guide/utils.sgml @@ -229,26 +229,28 @@ tags: Input syntax - All special processing is triggered by the - # character placed outside Haskell comments - and string literals. To output a literal #, - write it twice: ##. - - Otherwise # is followed by optional - spaces and tabs, an alphanumeric key that describes the - kind of processing, and its arguments. Arguments look - like C expressions separated by commas and extend up to the - nearest unmatched ), ], - or }, or to the end of line outside any - () [] {} '' "" /* */. Any character may be - preceded by a backslash and will not be treated specially. + All special processing is triggered by + the # operator. To output + a literal #, write it twice: + ##. Inside string literals and comments + # characters are not processed. + + A # is followed by optional + spaces and tabs, an alphanumeric keyword that describes + the kind of processing, and its arguments. Arguments look + like C expressions separated by commas (they are not + written inside parens). They extend up to the nearest + unmatched ), ] or + }, or to the end of line if it occurs outside + any () [] {} '' "" /**/ and is not preceded + by a backslash. Backslash-newline pairs are stripped. In addition #{stuff} is equivalent to #stuff except that it's self-delimited and thus needs not to be placed at the end of line or in some brackets. - Meanings of specific keys: + Meanings of specific keywords: