Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,252
Issues
4,252
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
397
Merge Requests
397
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
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
Glasgow Haskell Compiler
GHC
Commits
2c634afb
Commit
2c634afb
authored
Feb 22, 2007
by
mnislaih
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unbreak HEAD
My previous patch was creating problems with hs-boot files.
parent
3f9e522b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
compiler/deSugar/DsBinds.lhs
compiler/deSugar/DsBinds.lhs
+4
-2
No files found.
compiler/deSugar/DsBinds.lhs
View file @
2c634afb
...
...
@@ -65,9 +65,9 @@ import Data.List
dsTopLHsBinds :: AutoScc -> LHsBinds Id -> DsM [(Id,CoreExpr)]
dsTopLHsBinds auto_scc binds = do
mb_mod_name_ref <- getModNameRefDs
debugging <- debug_enabled
case mb_mod_name_ref of
Just _ -> ds_lhs_binds auto_scc binds
Nothing -> do -- Inject a CAF with the module name as literal
Nothing | debugging -> do -- Inject a CAF with the module name as literal
mod <- getModuleDs
mod_name_ref <- do
u <- newUnique
...
...
@@ -78,6 +78,8 @@ dsTopLHsBinds auto_scc binds = do
withModNameRefDs mod_name_ref $ do
res <- ds_lhs_binds auto_scc binds
return$ (mod_name_ref, mod_lit) : res
_ -> ds_lhs_binds auto_scc binds
dsLHsBinds :: LHsBinds Id -> DsM [(Id,CoreExpr)]
dsLHsBinds binds = ds_lhs_binds NoSccs binds
...
...
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