diff options
author | sof <unknown> | 1999-02-17 10:51:42 +0000 |
---|---|---|
committer | sof <unknown> | 1999-02-17 10:51:42 +0000 |
commit | 92e722754bbeaadc049e15155be9b742f474108c (patch) | |
tree | 445383f84ba5b133a4f459290bd2053186d8987f /ghc/docs/users_guide/using.vsgml | |
parent | 6b01bd9dfb3ad9459f17736f42d5da1d5d10024b (diff) | |
download | haskell-92e722754bbeaadc049e15155be9b742f474108c.tar.gz |
[project @ 1999-02-17 10:51:42 by sof]
Document __HASKELL98__
Diffstat (limited to 'ghc/docs/users_guide/using.vsgml')
-rw-r--r-- | ghc/docs/users_guide/using.vsgml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ghc/docs/users_guide/using.vsgml b/ghc/docs/users_guide/using.vsgml index 934ef562e1..02ab9d826d 100644 --- a/ghc/docs/users_guide/using.vsgml +++ b/ghc/docs/users_guide/using.vsgml @@ -1098,14 +1098,22 @@ the usual C way. The @ghc@ driver pre-defines several macros: <descrip> +<tag>@__HASKELL98__@:</tag> +<nidx>__HASKELL98__</nidx> +If defined, this means that GHC supports the language +defined by the Haskell 98 report. + +NB. This macro is <em/only/ set when pre-processing Haskell source +(ie. @.hs@ or @.lhs@ files). + <tag>@__HASKELL1__@:</tag> <nidx>__HASKELL1__ macro</nidx> If defined to <em/n/, that means GHC supports the Haskell language defined in the Haskell report version <em/1.n/. -Currently 4. +Currently 5. -NB. This macro is <em/only/ set when pre-processing Haskell source -(ie. @.hs@ or @.lhs@ files). +NB. As with <tt/__HASKELL98__/, this macro is <em/only/ set when +pre-processing Haskell source (ie. @.hs@ or @.lhs@ files). <tag>@__GLASGOW_HASKELL__@:</tag> <nidx>__GLASGOW_HASKELL__ macro</nidx> |