Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
7fcfee1c
Commit
7fcfee1c
authored
Oct 05, 2015
by
Gabor Greif
💬
Browse files
A few typos in comments
parent
c0bdfee7
Changes
3
Hide whitespace changes
Inline
Side-by-side
compiler/coreSyn/CoreUnfold.hs
View file @
7fcfee1c
...
@@ -1239,7 +1239,7 @@ CONLIKE thing (modulo lets).
...
@@ -1239,7 +1239,7 @@ CONLIKE thing (modulo lets).
Note [Lone variables] See also Note [Interaction of exprIsWorkFree and lone variables]
Note [Lone variables] See also Note [Interaction of exprIsWorkFree and lone variables]
~~~~~~~~~~~~~~~~~~~~~ which appears below
~~~~~~~~~~~~~~~~~~~~~ which appears below
The "lone-variable" case is important. I spent ages messing about
The "lone-variable" case is important. I spent ages messing about
with unsatisfactory var
a
ints, but this is nice. The idea is that if a
with unsatisfactory vari
a
nts, but this is nice. The idea is that if a
variable appears all alone
variable appears all alone
as an arg of lazy fn, or rhs BoringCtxt
as an arg of lazy fn, or rhs BoringCtxt
...
...
compiler/typecheck/TcUnify.hs
View file @
7fcfee1c
...
@@ -850,7 +850,7 @@ We may encounter a unification ty1 ~ ty2 that cannot be performed syntactically,
...
@@ -850,7 +850,7 @@ We may encounter a unification ty1 ~ ty2 that cannot be performed syntactically,
and yet its consistency is undetermined. Previously, there was no way to still
and yet its consistency is undetermined. Previously, there was no way to still
make it consistent. So a mismatch error was issued.
make it consistent. So a mismatch error was issued.
Now these unfications are deferred until constraint simplification, where type
Now these un
i
fications are deferred until constraint simplification, where type
family instances and given equations may (or may not) establish the consistency.
family instances and given equations may (or may not) establish the consistency.
Deferred unifications are of the form
Deferred unifications are of the form
F ... ~ ...
F ... ~ ...
...
@@ -860,7 +860,7 @@ E.g.
...
@@ -860,7 +860,7 @@ E.g.
id :: x ~ y => x -> y
id :: x ~ y => x -> y
id e = e
id e = e
involves the unfication x = y. It is deferred until we bring into account the
involves the un
i
fication x = y. It is deferred until we bring into account the
context x ~ y to establish that it holds.
context x ~ y to establish that it holds.
If available, we defer original types (rather than those where closed type
If available, we defer original types (rather than those where closed type
...
...
testsuite/tests/gadt/records-fail1.hs
View file @
7fcfee1c
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
-- It's been removed in August 2015
-- It's been removed in August 2015
-- see Phab D1118
-- see Phab D1118
-- test should result in
to
parse error
-- test should result in
a
parse error
module
ShouldFail
where
module
ShouldFail
where
...
...
Write
Preview
Supports
Markdown
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