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,251
Issues
4,251
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
394
Merge Requests
394
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
0095cde3
Commit
0095cde3
authored
Aug 05, 2018
by
Krzysztof Gogolewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos
parent
73683f14
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
compiler/iface/IfaceType.hs
compiler/iface/IfaceType.hs
+1
-1
compiler/llvmGen/LlvmCodeGen/CodeGen.hs
compiler/llvmGen/LlvmCodeGen/CodeGen.hs
+2
-2
compiler/typecheck/TcPatSyn.hs
compiler/typecheck/TcPatSyn.hs
+2
-2
compiler/utils/GraphColor.hs
compiler/utils/GraphColor.hs
+1
-1
testsuite/driver/runtests.py
testsuite/driver/runtests.py
+1
-1
testsuite/tests/patsyn/should_fail/T14552.stderr
testsuite/tests/patsyn/should_fail/T14552.stderr
+1
-1
No files found.
compiler/iface/IfaceType.hs
View file @
0095cde3
...
...
@@ -728,7 +728,7 @@ pprPrecIfaceType :: PprPrec -> IfaceType -> SDoc
pprPrecIfaceType
prec
ty
=
eliminateRuntimeRep
(
ppr_ty
prec
)
ty
ppr_ty
::
PprPrec
->
IfaceType
->
SDoc
ppr_ty
_
(
IfaceFreeTyVar
tyvar
)
=
ppr
tyvar
-- This is the main reson for IfaceFreeTyVar!
ppr_ty
_
(
IfaceFreeTyVar
tyvar
)
=
ppr
tyvar
-- This is the main re
a
son for IfaceFreeTyVar!
ppr_ty
_
(
IfaceTyVar
tyvar
)
=
ppr
tyvar
-- See Note [TcTyVars in IfaceType]
ppr_ty
ctxt_prec
(
IfaceTyConApp
tc
tys
)
=
pprTyTcApp
ctxt_prec
tc
tys
ppr_ty
ctxt_prec
(
IfaceTupleTy
i
p
tys
)
=
pprTuple
ctxt_prec
i
p
tys
...
...
compiler/llvmGen/LlvmCodeGen/CodeGen.hs
View file @
0095cde3
...
...
@@ -1534,8 +1534,8 @@ genMachOp_slow opt op [x, y] = case op of
panicOp
=
panic
$
"LLVM.CodeGen.genMachOp_slow: unary op encountered"
++
"with two arguments! ("
++
show
op
++
")"
-- More th
e
n two expression, invalid!
genMachOp_slow
_
_
_
=
panic
"genMachOp: More th
e
n 2 expressions in MachOp!"
-- More th
a
n two expression, invalid!
genMachOp_slow
_
_
_
=
panic
"genMachOp: More th
a
n 2 expressions in MachOp!"
-- | Handle CmmLoad expression.
...
...
compiler/typecheck/TcPatSyn.hs
View file @
0095cde3
...
...
@@ -188,7 +188,7 @@ badUnivTvErr ex_tvs bad_tv
,
nest
2
(
ppr_with_kind
bad_tv
)
,
hang
(
text
"Existentially-bound variables:"
)
2
(
vcat
(
map
ppr_with_kind
ex_tvs
))
,
text
"Probable fix: give the pattern synoym a type signature"
,
text
"Probable fix: give the pattern syno
n
ym a type signature"
]
where
ppr_with_kind
tv
=
ppr
tv
<+>
dcolon
<+>
ppr
(
tyVarKind
tv
)
...
...
@@ -1016,7 +1016,7 @@ tcPatToExpr name args pat = go pat
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For a bidirectional pattern synonym we need to produce an /expression/
that matches the supplied /pattern/, given values for the arguments
of the pattern syno
ymy
. For example
of the pattern syno
nym
. For example
pattern F x y = (Just x, [y])
The 'builder' for F looks like
$builderF x y = (Just x, [y])
...
...
compiler/utils/GraphColor.hs
View file @
0095cde3
...
...
@@ -116,7 +116,7 @@ colorGraph iterative spinCount colors triv spill graph0
-- | Scan through the conflict graph separating out trivially colorable and
-- potentially uncolorable (problem) nodes.
--
-- Checking whether a node is trivially colorable or not is a resonably expensive operation,
-- Checking whether a node is trivially colorable or not is a re
a
sonably expensive operation,
-- so after a triv node is found and removed from the graph it's no good to return to the 'start'
-- of the graph and recheck a bunch of nodes that will probably still be non-trivially colorable.
--
...
...
testsuite/driver/runtests.py
View file @
0095cde3
...
...
@@ -285,7 +285,7 @@ for name in config.only:
framework_fail
(
name
,
''
,
'test not found'
)
else
:
# Let user fix .T file errors before reporting on unfound tests.
# The reson the test can not be found is likely because of those
# The re
a
son the test can not be found is likely because of those
# .T file errors.
pass
...
...
testsuite/tests/patsyn/should_fail/T14552.stderr
View file @
0095cde3
...
...
@@ -5,5 +5,5 @@ T14552.hs:22:9: error:
Existentially-bound variables:
k :: *
w :: k --> *
Probable fix: give the pattern synoym a type signature
Probable fix: give the pattern syno
n
ym a type signature
• In the declaration for pattern synonym ‘FOO’
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