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
92e72275
Commit
92e72275
authored
26 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-02-17 10:51:42 by sof]
Document __HASKELL98__
parent
6b01bd9d
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/docs/users_guide/using.vsgml
+11
-3
11 additions, 3 deletions
ghc/docs/users_guide/using.vsgml
with
11 additions
and
3 deletions
ghc/docs/users_guide/using.vsgml
+
11
−
3
View file @
92e72275
...
...
@@ -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.
T
his macro is <em/only/ set when
pre-processing Haskell source
(ie. @.hs@ or @.lhs@ files).
NB.
As with <tt/__HASKELL98__/, t
his macro is <em/only/ set when
pre-processing Haskell source
(ie. @.hs@ or @.lhs@ files).
<tag>@__GLASGOW_HASKELL__@:</tag>
<nidx>__GLASGOW_HASKELL__ macro</nidx>
...
...
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