Skip to content
Snippets Groups Projects
Commit 3c1e70b8 authored by sof's avatar sof
Browse files

[project @ 1999-01-21 19:59:20 by sof]

Removed unused args from Id.mkIdVisible and Name.mkNameVisible.
Perpetuated Name.mkTopName hack in Name.mkNameVisible.
parent 62485293
No related branches found
No related tags found
No related merge requests found
...@@ -174,9 +174,8 @@ omitIfaceSigForId id ...@@ -174,9 +174,8 @@ omitIfaceSigForId id
\end{code} \end{code}
\begin{code} \begin{code}
mkIdVisible :: Module -> Unique -> Id -> Id mkIdVisible :: Module -> Id -> Id
mkIdVisible mod u id mkIdVisible mod id = setIdName id (mkNameVisible mod (idName id))
= setIdName id (mkNameVisible mod u (idName id))
\end{code} \end{code}
%************************************************************************ %************************************************************************
......
...@@ -231,10 +231,12 @@ getNameProvenance (Local _ _ _) = LocalDef noSrcLoc NotExported ...@@ -231,10 +231,12 @@ getNameProvenance (Local _ _ _) = LocalDef noSrcLoc NotExported
\begin{code} \begin{code}
-- make the Name globally visible regardless. -- make the Name globally visible regardless.
mkNameVisible :: Module -> Unique -> Name -> Name mkNameVisible :: Module -> Name -> Name
mkNameVisible mod occ_uniq nm@(Global _ _ _ _) = nm mkNameVisible mod nm@(Global _ _ _ _) = nm
mkNameVisible mod occ_uniq nm@(Local uniq occ _) mkNameVisible mod nm@(Local uniq occ _) = Global uniq mod g_occ (LocalDef noSrcLoc Exported)
= Global uniq mod occ (LocalDef noSrcLoc Exported) where
-- See mkTopName comment. A hack.
g_occ = varOcc (_PK_ (occNameString occ ++ show uniq))
\end{code} \end{code}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment