Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
25f01db0
Commit
25f01db0
authored
May 25, 2018
by
Gabor Greif
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typofixes [ci skip]
parent
f8048112
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
compiler/basicTypes/Name.hs
compiler/basicTypes/Name.hs
+2
-2
compiler/main/HscMain.hs
compiler/main/HscMain.hs
+1
-1
utils/genprimopcode/Main.hs
utils/genprimopcode/Main.hs
+1
-1
No files found.
compiler/basicTypes/Name.hs
View file @
25f01db0
...
...
@@ -262,7 +262,7 @@ nameIsLocalOrFrom :: Module -> Name -> Bool
-- you can find details (type, fixity, instances) in the
-- TcGblEnv or TcLclEnv
--
-- The isInteractiveModule part is because successive interactions of a G
C
Hi session
-- The isInteractiveModule part is because successive interactions of a GH
C
i session
-- each give rise to a fresh module (Ghci1, Ghci2, etc), but they all come
-- from the magic 'interactive' package; and all the details are kept in the
-- TcLclEnv, TcGblEnv, NOT in the HPT or EPT.
...
...
@@ -295,7 +295,7 @@ nameIsHomePackageImport this_mod
this_pkg
=
moduleUnitId
this_mod
-- | Returns True if the Name comes from some other package: neither this
-- pac
a
kge nor the interactive package.
-- pack
a
ge nor the interactive package.
nameIsFromExternalPackage
::
UnitId
->
Name
->
Bool
nameIsFromExternalPackage
this_pkg
name
|
Just
mod
<-
nameModule_maybe
name
...
...
compiler/main/HscMain.hs
View file @
25f01db0
...
...
@@ -918,7 +918,7 @@ hscCheckSafeImports tcg_env = do
-- | Validate that safe imported modules are actually safe. For modules in the
-- HomePackage (the package the module we are compiling in resides) this just
-- involves checking its trust type is 'Safe' or 'Trustworthy'. For modules
-- that reside in another package we also must check that the external pac
a
kge
-- that reside in another package we also must check that the external pack
a
ge
-- is trusted. See the Note [Safe Haskell Trust Check] above for more
-- information.
--
...
...
utils/genprimopcode/Main.hs
View file @
25f01db0
...
...
@@ -263,7 +263,7 @@ gen_hs_source (Info defaults entries) =
++
"default ()"
-- If we don't say this then the default type include Integer
-- so that runs off and loads modules that are not part of
-- pac
a
kge ghc-prim at all. And that in turn somehow ends up
-- pack
a
ge ghc-prim at all. And that in turn somehow ends up
-- with Declaration for $fEqMaybe:
-- attempting to use module ‘GHC.Classes’
-- (libraries/ghc-prim/./GHC/Classes.hs) which is not loaded
...
...
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