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,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
385
Merge Requests
385
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
61995883
Commit
61995883
authored
Jun 21, 2016
by
Gabor Greif
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More typos in comments [skip ci]
parent
4e7d8350
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
14 additions
and
14 deletions
+14
-14
compiler/basicTypes/DataCon.hs
compiler/basicTypes/DataCon.hs
+1
-1
compiler/basicTypes/Demand.hs
compiler/basicTypes/Demand.hs
+1
-1
compiler/basicTypes/MkId.hs
compiler/basicTypes/MkId.hs
+1
-1
compiler/codeGen/StgCmmClosure.hs
compiler/codeGen/StgCmmClosure.hs
+1
-1
compiler/coreSyn/CoreUtils.hs
compiler/coreSyn/CoreUtils.hs
+2
-2
compiler/main/HscTypes.hs
compiler/main/HscTypes.hs
+1
-1
compiler/rename/RnSource.hs
compiler/rename/RnSource.hs
+1
-1
compiler/simplCore/OccurAnal.hs
compiler/simplCore/OccurAnal.hs
+1
-1
compiler/simplCore/Simplify.hs
compiler/simplCore/Simplify.hs
+1
-1
compiler/typecheck/TcRnTypes.hs
compiler/typecheck/TcRnTypes.hs
+1
-1
compiler/types/FamInstEnv.hs
compiler/types/FamInstEnv.hs
+1
-1
compiler/types/TyCon.hs
compiler/types/TyCon.hs
+1
-1
rts/RtsAPI.c
rts/RtsAPI.c
+1
-1
No files found.
compiler/basicTypes/DataCon.hs
View file @
61995883
...
...
@@ -598,7 +598,7 @@ Terminology:
Note [Data con representation]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The dcRepType field contains the type of the representation of a contructor
The dcRepType field contains the type of the representation of a con
s
tructor
This may differ from the type of the constructor *Id* (built
by MkId.mkDataConId) for two reasons:
a) the constructor Id may be overloaded, but the dictionary isn't stored
...
...
compiler/basicTypes/Demand.hs
View file @
61995883
...
...
@@ -894,7 +894,7 @@ CPRResult: NoCPR
RetProd RetSum ConTag
Product contructors return (Dunno (RetProd rs))
Product con
s
tructors return (Dunno (RetProd rs))
In a fixpoint iteration, start from Diverges
We have lubs, but not glbs; but that is ok.
-}
...
...
compiler/basicTypes/MkId.hs
View file @
61995883
...
...
@@ -497,7 +497,7 @@ mkDataConRep dflags fam_envs wrap_name mb_bangs data_con
-- The Cpr info can be important inside INLINE rhss, where the
-- wrapper constructor isn't inlined.
-- And the argument strictness can be important too; we
-- may not inline a contructor when it is partially applied.
-- may not inline a con
s
tructor when it is partially applied.
-- For example:
-- data W = C !Int !Int !Int
-- ...(let w = C x in ...(w p q)...)...
...
...
compiler/codeGen/StgCmmClosure.hs
View file @
61995883
...
...
@@ -292,7 +292,7 @@ mkLFImported id
-- Dynamic pointer tagging
-----------------------------------------------------
type
ConTagZ
=
Int
-- A *zero-indexed* contructor tag
type
ConTagZ
=
Int
-- A *zero-indexed* con
s
tructor tag
type
DynTag
=
Int
-- The tag on a *pointer*
-- (from the dynamic-tagging paper)
...
...
compiler/coreSyn/CoreUtils.hs
View file @
61995883
...
...
@@ -714,7 +714,7 @@ missed the first one.)
combineIdenticalAlts
::
[
AltCon
]
-- Constructors that cannot match DEFAULT
->
[
CoreAlt
]
->
(
Bool
,
-- True <=> something happened
[
AltCon
],
-- New contructors that cannot match DEFAULT
[
AltCon
],
-- New con
s
tructors that cannot match DEFAULT
[
CoreAlt
])
-- New alternatives
-- See Note [Combine identical alternatives]
-- True <=> we did some combining, result is a single DEFAULT alternative
...
...
@@ -2118,7 +2118,7 @@ rhsIsStatic :: Platform
-- This is a bit like CoreUtils.exprIsHNF, with the following differences:
-- a) scc "foo" (\x -> ...) is updatable (so we catch the right SCC)
--
-- b) (C x xs), where C is a contructor is updatable if the application is
-- b) (C x xs), where C is a con
s
tructor is updatable if the application is
-- dynamic
--
-- c) don't look through unfolding of f in (f x).
...
...
compiler/main/HscTypes.hs
View file @
61995883
...
...
@@ -1793,7 +1793,7 @@ implicitTyConThings tc
implicitCoTyCon
tc
++
-- for each data constructor in order,
-- the contructor, worker, and (possibly) wrapper
-- the con
s
tructor, worker, and (possibly) wrapper
[
thing
|
dc
<-
tyConDataCons
tc
,
thing
<-
AConLike
(
RealDataCon
dc
)
:
dataConImplicitTyThings
dc
]
-- NB. record selectors are *not* implicit, they have fully-fledged
...
...
compiler/rename/RnSource.hs
View file @
61995883
...
...
@@ -1728,7 +1728,7 @@ rnDataDefn doc (HsDataDefn { dd_ND = new_or_data, dd_cType = cType
badGadtStupidTheta
::
HsDocContext
->
SDoc
badGadtStupidTheta
_
=
vcat
[
text
"No context is allowed on a GADT-style data declaration"
,
text
"(You can put a context on each contructor, though.)"
]
text
"(You can put a context on each con
s
tructor, though.)"
]
rnFamDecl
::
Maybe
Name
-- Just cls => this FamilyDecl is nested
-- inside an *class decl* for cls
...
...
compiler/simplCore/OccurAnal.hs
View file @
61995883
...
...
@@ -1507,7 +1507,7 @@ type GlobalScruts = IdSet -- See Note [Binder swap on GlobalId scrutinees]
-- y = /\a -> (p a, q a) -- Still don't inline p or q
-- z = f (p,q) -- Do inline p,q; it may make a rule fire
-- So OccEncl tells enought about the context to know what to do when
-- we encounter a contructor application or PAP.
-- we encounter a con
s
tructor application or PAP.
data
OccEncl
=
OccRhs
-- RHS of let(rec), albeit perhaps inside a type lambda
...
...
compiler/simplCore/Simplify.hs
View file @
61995883
...
...
@@ -2645,7 +2645,7 @@ Rather than do this we simply agree to re-simplify the original (small) thing la
Note [Funky mkLamTypes]
~~~~~~~~~~~~~~~~~~~~~~
Notice the funky mkLamTypes. If the contructor has existentials
Notice the funky mkLamTypes. If the con
s
tructor has existentials
it's possible that the join point will be abstracted over
type variables as well as term variables.
Example: Suppose we have
...
...
compiler/typecheck/TcRnTypes.hs
View file @
61995883
...
...
@@ -695,7 +695,7 @@ data TcLclEnv -- Changes as we move inside an expression
-- Does *not* include global name envt; may shadow it
-- Includes both ordinary variables and type variables;
-- they are kept distinct because tyvar have a different
-- occurrence contructor (Name.TvOcc)
-- occurrence con
s
tructor (Name.TvOcc)
-- We still need the unsullied global name env so that
-- we can look up record field names
...
...
compiler/types/FamInstEnv.hs
View file @
61995883
...
...
@@ -329,7 +329,7 @@ A FamInstEnv maps a family name to the list of known instances for that family.
The same FamInstEnv includes both 'data family' and 'type family' instances.
Type families are reduced during type inference, but not data families;
the user explains when to use a data family instance by using contructors
the user explains when to use a data family instance by using con
s
tructors
and pattern matching.
Nevertheless it is still useful to have data families in the FamInstEnv:
...
...
compiler/types/TyCon.hs
View file @
61995883
...
...
@@ -215,7 +215,7 @@ See also Note [Wrappers for data instance tycons] in MkId.hs
* The axiom ax_ti may be eta-reduced; see
Note [Eta reduction for data family axioms] in TcInstDcls
* The data contructor T2 has a wrapper (which is what the
* The data con
s
tructor T2 has a wrapper (which is what the
source-level "T2" invokes):
$WT2 :: Bool -> T Int
...
...
rts/RtsAPI.c
View file @
61995883
...
...
@@ -22,7 +22,7 @@
Building Haskell objects from C datatypes.
TODO: Currently this code does not tag created pointers,
however it is not unsafe (the contructor code will do it)
however it is not unsafe (the con
s
tructor code will do it)
just inefficient.
------------------------------------------------------------------------- */
HaskellObj
...
...
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