Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Glasgow Haskell Compiler
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
Shayne Fletcher
Glasgow Haskell Compiler
Commits
1b115b16
Commit
1b115b16
authored
Oct 27, 2017
by
Gabor Greif
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in accessor name
and in comments
parent
82bad1a9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
11 deletions
+11
-11
compiler/deSugar/Check.hs
compiler/deSugar/Check.hs
+3
-3
compiler/deSugar/DsBinds.hs
compiler/deSugar/DsBinds.hs
+1
-1
compiler/specialise/SpecConstr.hs
compiler/specialise/SpecConstr.hs
+1
-1
compiler/typecheck/TcType.hs
compiler/typecheck/TcType.hs
+1
-1
libraries/base/GHC/IO/Encoding/CodePage/API.hs
libraries/base/GHC/IO/Encoding/CodePage/API.hs
+2
-2
testsuite/mk/boilerplate.mk
testsuite/mk/boilerplate.mk
+1
-1
testsuite/tests/simplCore/should_compile/spec001.hs
testsuite/tests/simplCore/should_compile/spec001.hs
+1
-1
testsuite/tests/th/T10638.hs
testsuite/tests/th/T10638.hs
+1
-1
No files found.
compiler/deSugar/Check.hs
View file @
1b115b16
...
...
@@ -239,10 +239,10 @@ instance Monoid Provenance where
mappend
=
(
Semi
.<>
)
data
PartialResult
=
PartialResult
{
presultProven
e
nce
::
Provenance
presultProven
a
nce
::
Provenance
-- keep track of provenance because we don't want
-- to warn about redundant matches if the result
-- is conta
i
minated with a COMPLETE pragma
-- is contaminated with a COMPLETE pragma
,
presultCovered
::
Covered
,
presultUncovered
::
Uncovered
,
presultDivergent
::
Diverged
}
...
...
@@ -1640,7 +1640,7 @@ force_if True pres = forces pres
force_if
False
pres
=
pres
set_provenance
::
Provenance
->
PartialResult
->
PartialResult
set_provenance
prov
pr
=
pr
{
presultProven
e
nce
=
prov
}
set_provenance
prov
pr
=
pr
{
presultProven
a
nce
=
prov
}
-- ----------------------------------------------------------------------------
-- * Propagation of term constraints inwards when checking nested matches
...
...
compiler/deSugar/DsBinds.hs
View file @
1b115b16
...
...
@@ -655,7 +655,7 @@ dsSpec mb_poly_rhs (L loc (SpecPrag poly_id spec_co spec_inl))
=
putSrcSpanDs
loc
$
do
{
warnDs
NoReason
(
text
"Ignoring useless SPECIALISE pragma for NOINLINE function:"
<+>
quotes
(
ppr
poly_id
))
;
return
Nothing
}
-- Function is NOINLINE, and the specialiation inherits that
;
return
Nothing
}
-- Function is NOINLINE, and the speciali
s
ation inherits that
-- See Note [Activation pragmas for SPECIALISE]
|
otherwise
...
...
compiler/specialise/SpecConstr.hs
View file @
1b115b16
...
...
@@ -1811,7 +1811,7 @@ that specialisations didn't fire inside wrappers; see test
simplCore/should_compile/spec-inline.
So now I just use the inline-activation of the parent Id, as the
activation for the specialiation RULE, just like the main specialiser;
activation for the speciali
s
ation RULE, just like the main specialiser;
This in turn means there is no point in specialising NOINLINE things,
so we test for that.
...
...
compiler/typecheck/TcType.hs
View file @
1b115b16
...
...
@@ -958,7 +958,7 @@ Moreover, consider
inert item: [G] b ~R f a
We use anyRewritableTyVar to decide whether to kick out the inert item,
on the grounds that the work item might rewrite it. Well, 'a' is certainly
free in [G] b ~R f a. But bec
ua
se the role of a type variable ('f' in
free in [G] b ~R f a. But bec
au
se the role of a type variable ('f' in
this case) is nominal, the work item can't actually rewrite the inert item.
Moreover, if we were to kick out the inert item the exact same situation
would re-occur and we end up with an infninite loop in which each kicks
...
...
libraries/base/GHC/IO/Encoding/CodePage/API.hs
View file @
1b115b16
...
...
@@ -285,7 +285,7 @@ cpEncode cp _max_char_size = \ibuf obuf -> do
return
(
why2
,
mbuf'
,
obuf
)
#
else
case
why2
of
-- If we succesfully translate all of the UTF-16 buffer, we need to know why
-- If we succes
s
fully translate all of the UTF-16 buffer, we need to know why
-- we weren't able to get any more UTF-16 out of the UTF-32 buffer
InputUnderflow
|
isEmptyBuffer
mbuf'
->
return
(
why1
,
ibuf'
,
obuf
)
|
otherwise
->
errorWithoutStackTrace
"cpEncode: impossible underflown UTF-16 buffer"
...
...
@@ -361,7 +361,7 @@ bSearch msg code ibuf mbuf target_to_elems = go
--
-- Luckily if we have InvalidSequence/OutputUnderflow and we do not appear to have reached
-- the target, what we should do is the same as normal because the fraction of ibuf that our
-- first "code" coded succesfully must be invalid-sequence-free, and ibuf will always
-- first "code" coded succes
s
fully must be invalid-sequence-free, and ibuf will always
-- have been decoded as far as the first invalid sequence in it.
case
bufferElems
mbuf
`
compare
`
target_to_elems
of
-- Coding n "from" chars from the input yields exactly as many "to" chars
...
...
testsuite/mk/boilerplate.mk
View file @
1b115b16
...
...
@@ -54,7 +54,7 @@ ifeq "$(TEST_HC)" ""
# Tests should be able to handle paths with spaces.
#
# One of the things ./validate (without --fast) does is check if binary
# distributions can succesfully be installed and used in paths containing
# distributions can succes
s
fully be installed and used in paths containing
# spaces.
#
# It does so in the following way:
...
...
testsuite/tests/simplCore/should_compile/spec001.hs
View file @
1b115b16
...
...
@@ -2,7 +2,7 @@
{-# OPTIONS_GHC -O #-}
-- In GHC 6.4, compiling this module gave a Core Lint failure following the
-- specialier, because a function was floated out that had a RULE that
-- speciali
s
er, because a function was floated out that had a RULE that
-- mentioned another function (unpack, in fact). but the latter wasn't
-- floated because we didn't take the RULES into account properly; result,
-- variable out of scope.
...
...
testsuite/tests/th/T10638.hs
View file @
1b115b16
...
...
@@ -10,7 +10,7 @@ import GHC.Exts
headers and the static keyword.
-}
-- check that quasiquoting roundtrips succesfully and that the declaration
-- check that quasiquoting roundtrips succes
s
fully and that the declaration
-- does not include the static keyword
test1
::
String
test1
=
$
(
do
(
ds
@
[
ForeignD
(
ImportF
_
_
p
_
_
)])
<-
...
...
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