ghc-source-gen-0.1.0.0: Constructs Haskell syntax trees for the GHC API.

Safe HaskellNone
LanguageHaskell2010

GHC.SourceGen.Name

Description

This module defines custom types for defining names of various syntax terms.

These types are all instances of IsString. For easier use, we recommend enabling the OverloadedStrings extension.

Synopsis

Documentation

data RdrNameStr Source #

A string identifier which may be qualified to a particular module.

For example:

fromString "A.b.c" == RawQual (fromString "A.b") (fromString "c")
fromString "c" == RawUnqual (fromString "c")

This definition is simililar to RdrName, but independent of whether it's in the type or value namespace. Functions in this package that take a RdrName as input will internally convert it to the proper namespace.

Instances
IsString RdrNameStr Source # 
Instance details

Defined in GHC.SourceGen.Name.Internal

data OccNameStr Source #

A string identifier. This definition is simililar to RdrName, but independent of whether it's in the type or value namespace.

Instances
IsString OccNameStr Source # 
Instance details

Defined in GHC.SourceGen.Name.Internal

newtype ModuleNameStr Source #

A newtype wrapper around ModuleName which is an instance of IsString.

Constructors

ModuleNameStr 
Instances
IsString ModuleNameStr Source # 
Instance details

Defined in GHC.SourceGen.Name.Internal