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,322
Issues
4,322
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
388
Merge Requests
388
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
7f6674d6
Commit
7f6674d6
authored
Apr 21, 2017
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments and tiny refactoring
parent
2744c941
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
compiler/deSugar/DsBinds.hs
compiler/deSugar/DsBinds.hs
+1
-0
compiler/typecheck/TcBinds.hs
compiler/typecheck/TcBinds.hs
+2
-5
No files found.
compiler/deSugar/DsBinds.hs
View file @
7f6674d6
...
...
@@ -536,6 +536,7 @@ thought!
Note [Desugar Strict binds]
~~~~~~~~~~~~~~~~~~~~~~~~~~~
See https://ghc.haskell.org/trac/ghc/wiki/StrictPragma
Desugaring strict variable bindings looks as follows (core below ==>)
...
...
compiler/typecheck/TcBinds.hs
View file @
7f6674d6
...
...
@@ -1651,12 +1651,9 @@ decideGeneralisationPlan dflags lbinds closed sig_fn
restricted
(
VarBind
{
var_id
=
v
})
=
no_sig
v
restricted
(
FunBind
{
fun_id
=
v
,
fun_matches
=
m
})
=
restricted_match
m
&&
no_sig
(
unLoc
v
)
restricted
(
PatSynBind
{})
=
panic
"isRestrictedGroup/unrestricted PatSynBind"
restricted
(
AbsBinds
{})
=
panic
"isRestrictedGroup/unrestricted AbsBinds"
restricted
(
AbsBindsSig
{})
=
panic
"isRestrictedGroup/unrestricted AbsBindsSig"
restricted
b
=
pprPanic
"isRestrictedGroup/unrestricted"
(
ppr
b
)
restricted_match
(
MG
{
mg_alts
=
L
_
(
L
_
(
Match
_
[]
_
_
)
:
_
)})
=
True
restricted_match
_
=
False
restricted_match
mg
=
matchGroupArity
mg
==
0
-- No args => like a pattern binding
-- Some args => a function binding
...
...
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