|
|
# The `Name` type
|
|
|
|
|
|
|
|
|
Every entity (type constructor, class, identifier, type variable) has a `Name`. The Name type is pervasive in GHC, and is defined in [compiler/basicTypes/Name.hs](https://gitlab.haskell.org/ghc/ghc/blob/master/compiler/basicTypes/Name.hs). Here is what a `Name` looks like, though it is private to the Name module:
|
|
|
Every entity (type constructor, class, identifier, type variable) has a `Name`. The Name type is pervasive in GHC, and is defined in [compiler/GHC/Types/Name.hs](https://gitlab.haskell.org/ghc/ghc/blob/master/compiler/GHC/Types/Name.hs). Here is what a `Name` looks like, though it is private to the Name module:
|
|
|
|
|
|
```wiki
|
|
|
data Name = Name {
|
... | ... | |