Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alfredo Di Napoli
GHC
Commits
e839ee2f
Commit
e839ee2f
authored
Jun 20, 2018
by
Gabor Greif
💬
Browse files
A few more typofixes in docs/comments [ci skip]
parent
7363ba45
Changes
6
Hide whitespace changes
Inline
Side-by-side
compiler/basicTypes/MkId.hs
View file @
e839ee2f
...
...
@@ -124,7 +124,7 @@ Note [magicIds]
~~~~~~~~~~~~~~~
The magicIds
* Are exported from GHC.Maic
* Are exported from GHC.Ma
g
ic
* Can be defined in Haskell (and are, in ghc-prim:GHC/Magic.hs).
This definition at least generates Haddock documentation for them.
...
...
compiler/main/SysTools/BaseDir.hs
View file @
e839ee2f
...
...
@@ -201,7 +201,7 @@ foreign import WINDOWS_CCONV unsafe "dynamic"
makeGetFinalPathNameByHandle
::
FunPtr
GetFinalPath
->
GetFinalPath
#
elif
defined
(
darwin_HOST_OS
)
||
defined
(
linux_HOST_OS
)
-- on unix, this is a bit more confusing.
-- The layout right now is some
h
ting like
-- The layout right now is somet
h
ing like
--
-- /bin/ghc-X.Y.Z <- wrapper script (1)
-- /bin/ghc <- symlink to wrapper script (2)
...
...
compiler/typecheck/TcMatches.hs
View file @
e839ee2f
...
...
@@ -986,7 +986,7 @@ When typechecking
we want to typecheck 'bar' in the knowledge that it should be an IO thing,
pushing info from the context into the RHS. To do this, we check the
rebindable syntax first, and push that information into (tcMonoExprNC rhs).
Otherwise the error shows up when cheking the rebindable syntax, and
Otherwise the error shows up when che
c
king the rebindable syntax, and
the expected/inferred stuff is back to front (see Trac #3613).
Note [typechecking ApplicativeStmt]
...
...
compiler/utils/Pair.hs
View file @
e839ee2f
...
...
@@ -18,7 +18,7 @@ data Pair a = Pair { pFst :: a, pSnd :: a }
-- Note that Pair is a *unary* type constructor
-- whereas (,) is binary
-- The important thing about Pair is that it has a *homogenous*
-- The important thing about Pair is that it has a *homogen
e
ous*
-- Functor instance, so you can easily apply the same function
-- to both components
instance
Functor
Pair
where
...
...
docs/users_guide/glasgow_exts.rst
View file @
e839ee2f
...
...
@@ -540,7 +540,7 @@ corresponds closely to the underlying bit-encoding of the number.
In this notation floating point numbers are written using hexadecimal digits,
and so the digits are interpreted using base 16, rather then the usual 10.
This means that digits left of the decimal point correspond to positive
powers of 16, while the ones to the right correspond to nega
i
tve ones.
powers of 16, while the ones to the right correspond to negat
i
ve ones.
You may also write an explicit exponent, which is similar to the exponent
in decimal notation with the following differences:
...
...
libraries/template-haskell/Language/Haskell/TH/Syntax.hs
View file @
e839ee2f
...
...
@@ -494,7 +494,7 @@ addForeignSource lang src = do
runIO
$
writeFile
path
src
addForeignFilePath
lang
path
-- | Same as 'addForeignSource', but expects to rec
i
eve a path pointing to the
-- | Same as 'addForeignSource', but expects to rece
i
ve a path pointing to the
-- foreign file instead of a 'String' of its contents. Consider using this in
-- conjunction with 'addTempFile'.
--
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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