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
4455bfc7
Commit
4455bfc7
authored
Feb 25, 2010
by
simonpj@microsoft.com
Browse files
Comments only
parent
f6a79344
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/prelude/TysPrim.lhs
View file @
4455bfc7
...
...
@@ -233,8 +233,14 @@ Note [Uniques of Any]
Although Any(*->*), say, doesn't have a binding site, it still needs
to have a Unique. Unlike tuples (which are also an infinite family)
there is no convenient way to index them, so we use the Unique from
their OccName instead. That should be unique! (But in principle we
must take care: it does not include the module/package.)
their OccName instead. That should be unique,
- both wrt each other, because their strings differ
- and wrt any other Name, because Names get uniques with
various 'char' tags, but the OccName of Any will
get a Unique built with mkTcOccUnique, which has a particular 'char'
tag; see Unique.mkTcOccUnique!
Note [Strangely-kinded void TyCons]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
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