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
0f37550c
Commit
0f37550c
authored
Dec 01, 2016
by
Gabor Greif
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typos in comments
parent
6576bf83
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
13 additions
and
13 deletions
+13
-13
compiler/coreSyn/MkCore.hs
compiler/coreSyn/MkCore.hs
+1
-1
compiler/main/DynFlags.hs
compiler/main/DynFlags.hs
+2
-2
compiler/main/HeaderInfo.hs
compiler/main/HeaderInfo.hs
+1
-1
compiler/typecheck/TcDeriv.hs
compiler/typecheck/TcDeriv.hs
+1
-1
compiler/typecheck/TcFlatten.hs
compiler/typecheck/TcFlatten.hs
+1
-1
compiler/typecheck/TcSMonad.hs
compiler/typecheck/TcSMonad.hs
+1
-1
libraries/base/Control/Exception.hs
libraries/base/Control/Exception.hs
+1
-1
libraries/base/tests/unicode001.hs
libraries/base/tests/unicode001.hs
+1
-1
libraries/integer-gmp/src/GHC/Integer/Type.hs
libraries/integer-gmp/src/GHC/Integer/Type.hs
+1
-1
testsuite/tests/simplCore/should_run/simplrun007.hs
testsuite/tests/simplCore/should_run/simplrun007.hs
+1
-1
testsuite/tests/typecheck/should_compile/T12427a.hs
testsuite/tests/typecheck/should_compile/T12427a.hs
+1
-1
testsuite/tests/typecheck/should_compile/T2357.hs
testsuite/tests/typecheck/should_compile/T2357.hs
+1
-1
No files found.
compiler/coreSyn/MkCore.hs
View file @
0f37550c
...
...
@@ -750,7 +750,7 @@ mkRuntimeErrorId name
'error' and 'undefined' have types
error :: forall (v :: RuntimeRep) (a :: TYPE v). String -> a
undefined :: forall (v :: RuntimeRep) (a :: TYPE v). a
Notice the runtime-representation polymophism. This ensures that
Notice the runtime-representation polymo
r
phism. This ensures that
"error" can be instantiated at unboxed as well as boxed types.
This is OK because it never returns, so the return type is irrelevant.
-}
...
...
compiler/main/DynFlags.hs
View file @
0f37550c
...
...
@@ -893,7 +893,7 @@ data DynFlags = DynFlags {
nextWrapperNum
::
IORef
(
ModuleEnv
Int
),
-- | Machine depend
a
nt flags (-m<blah> stuff)
-- | Machine depend
e
nt flags (-m<blah> stuff)
sseVersion
::
Maybe
SseVersion
,
avx
::
Bool
,
avx2
::
Bool
,
...
...
@@ -2969,7 +2969,7 @@ dynamic_flags_deps = [
(
NoArg
(
setGeneralFlag
Opt_NoLlvmMangler
))
-- hidden flag
,
make_ord_flag
defGhcFlag
"ddump-debug"
(
setDumpFlag
Opt_D_dump_debug
)
------ Machine depend
a
nt (-m<blah>) stuff ---------------------------
------ Machine depend
e
nt (-m<blah>) stuff ---------------------------
,
make_ord_flag
defGhcFlag
"msse"
(
noArg
(
\
d
->
d
{
sseVersion
=
Just
SSE1
}))
...
...
compiler/main/HeaderInfo.hs
View file @
0f37550c
...
...
@@ -97,7 +97,7 @@ mkPrelImports :: ModuleName
->
SrcSpan
-- Attribute the "import Prelude" to this location
->
Bool
->
[
LImportDecl
RdrName
]
->
[
LImportDecl
RdrName
]
-- Consruct the implicit declaration "import Prelude" (or not)
-- Cons
t
ruct the implicit declaration "import Prelude" (or not)
--
-- NB: opt_NoImplicitPrelude is slightly different to import Prelude ();
-- because the former doesn't even look at Prelude.hi for instance
...
...
compiler/typecheck/TcDeriv.hs
View file @
0f37550c
...
...
@@ -368,7 +368,7 @@ Consider this (see Trac #1954):
newtype P a = MkP (IO a) deriving Monad
If you compile with -Wunused-binds you do not expect the warning
"Defined but not used: data consructor MkP". Yet the newtype deriving
"Defined but not used: data cons
t
ructor MkP". Yet the newtype deriving
code does not explicitly mention MkP, but it should behave as if you
had written
instance Monad P where
...
...
compiler/typecheck/TcFlatten.hs
View file @
0f37550c
...
...
@@ -1322,7 +1322,7 @@ It is easy to implement, in TcInteract.kick_out, by only kicking out an inert
only if (a) the work item can rewrite the inert AND
(b) the inert cannot rewrite the work item
This is signifcantly harder to think about. It can save a LOT of work
This is signif
i
cantly harder to think about. It can save a LOT of work
in occurs-check cases, but we don't care about them much. Trac #5837
is an example; all the constraints here are Givens
...
...
compiler/typecheck/TcSMonad.hs
View file @
0f37550c
...
...
@@ -1155,7 +1155,7 @@ Note [Do not do improvement for WOnly]
We do improvement between two constraints (e.g. for injectivity
or functional dependencies) only if both are "improvable". And
we improve a constraint wrt the top-level instances only if
it is improv
e
able.
it is improvable.
Improvable: [G] [WD] [D}
Not improvable: [W]
...
...
libraries/base/Control/Exception.hs
View file @
0f37550c
...
...
@@ -305,7 +305,7 @@ exceptions is that they normally can occur anywhere, but within a
interruptible (or call other interruptible operations). In many cases
these operations may themselves raise exceptions, such as I\/O errors,
so the caller will usually be prepared to handle exceptions arising from the
operation anyway. To perfom an explicit poll for asynchronous exceptions
operation anyway. To perfo
r
m an explicit poll for asynchronous exceptions
inside 'mask', use 'allowInterrupt'.
Sometimes it is too onerous to handle exceptions in the middle of a
...
...
libraries/base/tests/unicode001.hs
View file @
0f37550c
-- !!! Tests the various character classifi
ac
tions for a selection of Unicode
-- !!! Tests the various character classifi
ca
tions for a selection of Unicode
-- characters.
module
Main
where
...
...
libraries/integer-gmp/src/GHC/Integer/Type.hs
View file @
0f37550c
...
...
@@ -1793,7 +1793,7 @@ byteArrayToBigNat# ba# n0#
n
#
=
fmssl
(
n0
#
-#
1
#
)
-- find most signifcant set limb, return normalized size
-- find most signif
i
cant set limb, return normalized size
fmssl
i
#
|
isTrue
#
(
i
#
<#
0
#
)
=
0
#
|
isTrue
#
(
neWord
#
(
indexWordArray
#
ba
#
i
#
)
0
##
)
=
i
#
+#
1
#
...
...
testsuite/tests/simplCore/should_run/simplrun007.hs
View file @
0f37550c
...
...
@@ -15,7 +15,7 @@ main = do phex (I# (uncheckedIShiftL# (negateInt# 5#) 2#))
phex
x
=
putStrLn
(
showSigned
(
\
x
->
(
"0x"
++
)
.
showHex
x
)
0
x
""
)
{- Too wordsize-depend
a
nt
{- Too wordsize-depend
e
nt
phex x = putStrLn (hex x)
hex x = "0x" ++ [onedigit (fromIntegral ((x `shiftR` (i*4)) .&. 0xF))
| i <- [digits-1,digits-2..0]]
...
...
testsuite/tests/typecheck/should_compile/T12427a.hs
View file @
0f37550c
...
...
@@ -20,7 +20,7 @@ h11 y = case y of T1 _ v -> v
-- Failed in 8.0.1
-- Succeeds in 8.2 because the pattern match has
-- no existentials, so it doesn't matter than
-- v is polymo
pr
hic
-- v is polymo
rp
hic
h12
y
=
case
y
of
T2
v
->
v
-- Inference
...
...
testsuite/tests/typecheck/should_compile/T2357.hs
View file @
0f37550c
...
...
@@ -4,7 +4,7 @@ module Foo where
f
::
Read
a
=>
a
-- This one needs NoMonomorphismRestriction else f could
-- not get a polymo
pr
hic type
-- not get a polymo
rp
hic type
(
f
,
_
)
=
(
read
"3"
,
True
)
g
::
Read
a
=>
a
...
...
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