Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Glasgow Haskell Compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
a63bd8f5
Commit
a63bd8f5
authored
Sep 09, 2002
by
simonpj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2002-09-09 12:50:26 by simonpj]
Formatting only
parent
fd1e03d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
ghc/compiler/typecheck/TcBinds.lhs
ghc/compiler/typecheck/TcBinds.lhs
+9
-7
No files found.
ghc/compiler/typecheck/TcBinds.lhs
View file @
a63bd8f5
...
...
@@ -18,8 +18,7 @@ import HsSyn ( HsExpr(..), HsBinds(..), MonoBinds(..), Sig(..),
collectMonoBinders, andMonoBinds,
collectSigTysFromMonoBinds
)
import RnHsSyn ( RenamedHsBinds, RenamedSig, RenamedMonoBinds,
RenamedTyClDecl )
import RnHsSyn ( RenamedHsBinds, RenamedSig, RenamedMonoBinds )
import TcHsSyn ( TcMonoBinds, TcId, zonkId, mkHsLet )
import TcMonad
...
...
@@ -263,13 +262,16 @@ tcBindWithSigs top_lvl mbind tc_ty_sigs inline_sigs is_rec
dict_tys = map idType zonked_dict_ids
inlines = mkNameSet [name | InlineSig True name _ loc <- inline_sigs]
no_inlines = listToFM [(name, phase) | InlineSig _ name phase _ <- inline_sigs,
not (isAlwaysActive phase)]
-- Any INLINE sig (regardless of phase control)
-- makes the RHS look small
inline_phases = listToFM [(name, phase) | InlineSig _ name phase _ <- inline_sigs,
not (isAlwaysActive phase)]
-- Set the IdInfo field to control the inline phase
-- AlwaysActive is the default, so don't bother with them
mk_export binder_name zonked_mono_id
= (tyvars,
attach
NoInlinePrag no_inlin
es poly_id,
attach
InlinePhase inline_phas
es poly_id,
zonked_mono_id)
where
(tyvars, poly_id) =
...
...
@@ -314,8 +316,8 @@ tcBindWithSigs top_lvl mbind tc_ty_sigs inline_sigs is_rec
lie_free, poly_ids
)
attach
NoInlinePrag no_inlin
es bndr
= case lookupFM
no_inlin
es (idName bndr) of
attach
InlinePhase inline_phas
es bndr
= case lookupFM
inline_phas
es (idName bndr) of
Just prag -> bndr `setInlinePragma` prag
Nothing -> bndr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment