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,249
Issues
4,249
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
393
Merge Requests
393
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
19632501
Commit
19632501
authored
Dec 21, 2015
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments and white space
parent
b55ad1b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
compiler/deSugar/DsExpr.hs
compiler/deSugar/DsExpr.hs
+1
-1
compiler/deSugar/DsMeta.hs
compiler/deSugar/DsMeta.hs
+3
-3
compiler/hsSyn/HsUtils.hs
compiler/hsSyn/HsUtils.hs
+1
-1
No files found.
compiler/deSugar/DsExpr.hs
View file @
19632501
...
...
@@ -81,7 +81,7 @@ dsLocalBinds (HsIPBinds binds) body = dsIPBinds binds body
-------------------------
dsValBinds
::
HsValBinds
Id
->
CoreExpr
->
DsM
CoreExpr
dsValBinds
(
ValBindsOut
binds
_
)
body
=
foldrM
ds_val_bind
body
binds
dsValBinds
(
ValBindsIn
_
_
)
_
=
panic
"dsValBinds ValBindsIn"
dsValBinds
(
ValBindsIn
{})
_
=
panic
"dsValBinds ValBindsIn"
-------------------------
dsIPBinds
::
HsIPBinds
Id
->
CoreExpr
->
DsM
CoreExpr
...
...
compiler/deSugar/DsMeta.hs
View file @
19632501
...
...
@@ -665,9 +665,9 @@ repBangTy ty = do
repDerivs
::
HsDeriving
Name
->
DsM
(
Core
TH
.
CxtQ
)
repDerivs
deriv
=
do
let
clauses
|
Just
(
L
_
ctxt
)
<-
deriv
=
ctxt
|
otherwise
=
[]
let
clauses
=
case
deriv
of
Nothing
->
[]
Just
(
L
_
ctxt
)
->
ctxt
tys
<-
repList
typeQTyConName
(
rep_deriv
.
hsSigType
)
clauses
...
...
compiler/hsSyn/HsUtils.hs
View file @
19632501
...
...
@@ -749,7 +749,7 @@ collect_out_binds :: Bool -> [(RecFlag, LHsBinds id)] -> [id]
collect_out_binds
ps
=
foldr
(
collect_binds
ps
.
snd
)
[]
collect_binds
::
Bool
->
LHsBindsLR
idL
idR
->
[
idL
]
->
[
idL
]
-- Collect Ids, or Ids + patter synonyms, depending on boolean flag
-- Collect Ids, or Ids + patter
n
synonyms, depending on boolean flag
collect_binds
ps
binds
acc
=
foldrBag
(
collect_bind
ps
.
unLoc
)
acc
binds
collect_bind
::
Bool
->
HsBindLR
idL
idR
->
[
idL
]
->
[
idL
]
...
...
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