Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
6af1c68b
Commit
6af1c68b
authored
25 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-08-24 15:33:09 by simonmar]
Add -D__HASKELL__=98
parent
4d55ca70
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ghc/docs/users_guide/using.vsgml
+12
-11
12 additions, 11 deletions
ghc/docs/users_guide/using.vsgml
ghc/driver/ghc.lprl
+2
-1
2 additions, 1 deletion
ghc/driver/ghc.lprl
with
14 additions
and
12 deletions
ghc/docs/users_guide/using.vsgml
+
12
−
11
View file @
6af1c68b
...
...
@@ -1169,24 +1169,25 @@ Specify a directory in which to look for @#include@ files, in
the usual C way.
</descrip>
The @ghc@ driver pre-defines several macros:
The @ghc@ driver pre-defines several macros when processing Haskell
source code (@.hs@ or @.lhs@ files):
<descrip>
<tag>@__HASKELL98__@:</tag>
<nidx>__HASKELL98__</nidx>
If defined, this means that GHC supports the language
defined by the
Haskell 98 report.
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>@__HASKELL__=98@:</tag>
<nidx>__HASKELL__</nidx>
In GHC 4.04 and later, the @__HASKELL__@ macro is defined as having
the value @98@.
<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 5.
NB. As with <tt/__HASKELL98__/, this macro is <em/only/ set when
pre-processing Haskell source (ie. @.hs@ or @.lhs@ files).
If defined to <em/n/, that means GHC supports the Haskell language
defined in the Haskell report version <em/1.n/. Currently 5. This
macro is deprecated, and will probably disappear in future versions.
<tag>@__GLASGOW_HASKELL__@:</tag>
<nidx>__GLASGOW_HASKELL__ macro</nidx>
...
...
This diff is collapsed.
Click to expand it.
ghc/driver/ghc.lprl
+
2
−
1
View file @
6af1c68b
...
...
@@ -367,7 +367,8 @@ $Haskell1Version = 5; # i.e., Haskell 1.4
# Cpp symbols defined when we're processing Haskell source.
@HsSourceCppOpts =
( "-D__HASKELL1__=$Haskell1Version"
( "-D__HASKELL__=98"
, "-D__HASKELL1__=$Haskell1Version"
, "-D__GLASGOW_HASKELL__=$ProjectVersionInt"
, "-D__HASKELL98__"
, "-D__CONCURRENT_HASKELL__"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment