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
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
Alex D
GHC
Commits
8e8068df
Commit
8e8068df
authored
Dec 03, 2009
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak layout for alternative layout rule
parent
3e18f8be
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
compiler/main/Packages.lhs
compiler/main/Packages.lhs
+4
-4
compiler/parser/Lexer.x
compiler/parser/Lexer.x
+1
-1
compiler/parser/RdrHsSyn.lhs
compiler/parser/RdrHsSyn.lhs
+3
-3
compiler/stranal/DmdAnal.lhs
compiler/stranal/DmdAnal.lhs
+3
-3
No files found.
compiler/main/Packages.lhs
View file @
8e8068df
...
@@ -556,12 +556,12 @@ shadowPackages pkgs preferred
...
@@ -556,12 +556,12 @@ shadowPackages pkgs preferred
in listToFM shadowed
in listToFM shadowed
where
where
check (shadowed,pkgmap) pkg
check (shadowed,pkgmap) pkg
| Just oldpkg <- lookupUFM pkgmap (packageConfigId pkg)
,
| Just oldpkg <- lookupUFM pkgmap (packageConfigId pkg)
let
,
let
ipid_new = installedPackageId pkg
ipid_new = installedPackageId pkg
ipid_old = installedPackageId oldpkg
,
ipid_old = installedPackageId oldpkg
--
--
ipid_old /= ipid_new
,
ipid_old /= ipid_new
= if ipid_old `elem` preferred
= if ipid_old `elem` preferred
then ( (ipid_new, ShadowedBy ipid_old) : shadowed, pkgmap )
then ( (ipid_new, ShadowedBy ipid_old) : shadowed, pkgmap )
else ( (ipid_old, ShadowedBy ipid_new) : shadowed, pkgmap' )
else ( (ipid_old, ShadowedBy ipid_new) : shadowed, pkgmap' )
...
...
compiler/parser/Lexer.x
View file @
8e8068df
compiler/parser/RdrHsSyn.lhs
View file @
8e8068df
compiler/stranal/DmdAnal.lhs
View file @
8e8068df
...
@@ -217,9 +217,9 @@ dmdAnal sigs dmd (Lam var body)
...
@@ -217,9 +217,9 @@ dmdAnal sigs dmd (Lam var body)
(deferType lam_ty, Lam var' body')
(deferType lam_ty, Lam var' body')
dmdAnal sigs dmd (Case scrut case_bndr ty [alt@(DataAlt dc,bndrs,rhs)])
dmdAnal sigs dmd (Case scrut case_bndr ty [alt@(DataAlt dc,bndrs,rhs)])
| let tycon = dataConTyCon dc
,
| let tycon = dataConTyCon dc
isProductTyCon tycon,
, isProductTyCon tycon
not (isRecursiveTyCon tycon)
,
not (isRecursiveTyCon tycon)
= let
= let
sigs_alt = extendSigEnv NotTopLevel sigs case_bndr case_bndr_sig
sigs_alt = extendSigEnv NotTopLevel sigs case_bndr case_bndr_sig
(alt_ty, alt') = dmdAnalAlt sigs_alt dmd alt
(alt_ty, alt') = dmdAnalAlt sigs_alt dmd alt
...
...
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