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
ea5da609
Commit
ea5da609
authored
Jan 10, 2014
by
Gabor Greif
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment typos only
parent
b7ddf633
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
compiler/basicTypes/Demand.lhs
compiler/basicTypes/Demand.lhs
+2
-2
compiler/simplCore/OccurAnal.lhs
compiler/simplCore/OccurAnal.lhs
+1
-1
compiler/typecheck/TcValidity.lhs
compiler/typecheck/TcValidity.lhs
+1
-1
docs/ndp/vect.tex
docs/ndp/vect.tex
+1
-1
No files found.
compiler/basicTypes/Demand.lhs
View file @
ea5da609
...
...
@@ -819,7 +819,7 @@ retCPR_maybe (RetSum t) = Just t
retCPR_maybe RetProd = Just fIRST_TAG
retCPR_maybe NoCPR = Nothing
-- See Notes [Default demand on free variales]
-- See Notes [Default demand on free varia
b
les]
-- and [defaultDmd vs. resTypeArgDmd]
defaultDmd :: Termination r -> JointDmd
defaultDmd Diverges = botDmd
...
...
@@ -839,7 +839,7 @@ Note [defaultDmd and resTypeArgDmd]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
These functions are similar: They express the demand on something not
explic
t
itly mentioned in the environment resp. the argument list. Yet they are
explicitly mentioned in the environment resp. the argument list. Yet they are
different:
* Variables not mentioned in the free variables environment are definitely
unused, so we can use absDmd there.
...
...
compiler/simplCore/OccurAnal.lhs
View file @
ea5da609
...
...
@@ -200,7 +200,7 @@ These conditions apply regardless of the activation of the RULE (eg it might be
inactive in this phase but become active later). Once a Rec is broken up
it can never be put back together, so we must be conservative.
The principle is that, regardless of rule firings, every variale is
The principle is that, regardless of rule firings, every varia
b
le is
always in scope.
* Note [Rules are extra RHSs]
...
...
compiler/typecheck/TcValidity.lhs
View file @
ea5da609
...
...
@@ -1009,7 +1009,7 @@ Here the instance decl really looks like
but the k's are not scoped, and hence won't match Uniques.
So instead we just match structure, with tcMatchTyX, and check
that distinct type variales match 1-1 with distinct type variables.
that distinct type varia
b
les match 1-1 with distinct type variables.
HOWEVER, we *still* make the instance type variables scope over the
type instances, to pick up non-obvious kinds. Eg
...
...
docs/ndp/vect.tex
View file @
ea5da609
...
...
@@ -50,7 +50,7 @@ representing dictionaries of type-dependent operations on parallel arrays:
\end{haskell}
In vectorised code, polymorphic functions must be supplied with a
\<
PA
\>
dictionary for each type varia
lb
e. For instance,
\<\Lambda\alpha
.e
\>
turns
dictionary for each type varia
bl
e. For instance,
\<\Lambda\alpha
.e
\>
turns
into
\<\Lambda\alpha
.
\lambda
{
dPA
_
\alpha
}
::PA
\alpha
.e'
\>
.
For higher-kinded type variables, we expect a function of appropriate type
...
...
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