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
301b3418
Commit
301b3418
authored
26 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-01-18 13:09:45 by sof]
A 'foreign export dynamic' *does* bind a Haskell name.
parent
0416fed0
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/rename/RnNames.lhs
+7
-7
7 additions, 7 deletions
ghc/compiler/rename/RnNames.lhs
with
7 additions
and
7 deletions
ghc/compiler/rename/RnNames.lhs
+
7
−
7
View file @
301b3418
...
...
@@ -16,7 +16,7 @@ import CmdLineOpts ( opt_NoImplicitPrelude, opt_WarnDuplicateExports,
import HsSyn ( HsModule(..), ImportDecl(..), HsDecl(..), TyClDecl(..),
IE(..), ieName,
ForeignDecl(..),
ExtName(..),
ForKind(..),
ForeignDecl(..), ForKind(..),
isDynamic,
FixitySig(..), Sig(..),
collectTopBinders
)
...
...
@@ -291,9 +291,9 @@ getLocalDeclBinders new_name (ValD binds)
do_one (rdr_name, loc) = new_name rdr_name loc `thenRn` \ name ->
returnRn (Avail name)
-- foreign
import
declaration
getLocalDeclBinders new_name (ForD (ForeignDecl nm kind _
_
_ loc))
| binds_haskell_name kind
-- foreign declaration
s
getLocalDeclBinders new_name (ForD (ForeignDecl nm kind _
dyn
_ loc))
| binds_haskell_name kind
dyn
= new_name nm loc `thenRn` \ name ->
returnRn [Avail name]
...
...
@@ -306,9 +306,9 @@ getLocalDeclBinders new_name decl
NotAvailable -> returnRn [] -- Instance decls and suchlike
other -> returnRn [avail]
binds_haskell_name (FoImport _) = True
binds_haskell_name FoLabel = True
binds_haskell_name FoExport
= False
binds_haskell_name (FoImport _)
_
= True
binds_haskell_name FoLabel
_
= True
binds_haskell_name FoExport
ext_nm = isDynamic ext_nm
fixitiesFromLocalDecls :: GlobalRdrEnv -> [RdrNameHsDecl] -> RnMG FixityEnv
fixitiesFromLocalDecls gbl_env decls
...
...
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