Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Iavor S. Diatchki's avatar
    5851f847
    Add support for type-level "strings". · 5851f847
    Iavor S. Diatchki authored
    These are types that look like "this" and "that".
    They are of kind `Symbol`, defined in module `GHC.TypeLits`.
    
    For each type-level symbol `X`, we have a singleton type, `TSymbol X`.
    
    The value of the singleton type can be named with the overloaded
    constant `tSymbol`.  Here is an example:
    
    tSymbol :: TSymbol "Hello"
    5851f847
    History
    Add support for type-level "strings".
    Iavor S. Diatchki authored
    These are types that look like "this" and "that".
    They are of kind `Symbol`, defined in module `GHC.TypeLits`.
    
    For each type-level symbol `X`, we have a singleton type, `TSymbol X`.
    
    The value of the singleton type can be named with the overloaded
    constant `tSymbol`.  Here is an example:
    
    tSymbol :: TSymbol "Hello"
Code owners
Assign users and groups as approvers for specific file changes. Learn more.