Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module contains the definition of type variable declarations of our intermediate language.
Synopsis
- data TypeVarDecl = TypeVarDecl {}
- typeVarDeclToType :: TypeVarDecl -> Type
- typeVarDeclName :: TypeVarDecl -> Name
- typeVarDeclQName :: TypeVarDecl -> QName
Documentation
data TypeVarDecl Source #
The name of a type variable declaration in the head of a data type or type synonym declaration including location information.
Instances
Eq TypeVarDecl Source # | |
Defined in FreeC.IR.Syntax.TypeVarDecl (==) :: TypeVarDecl -> TypeVarDecl -> Bool Source # (/=) :: TypeVarDecl -> TypeVarDecl -> Bool Source # | |
Show TypeVarDecl Source # | |
Defined in FreeC.IR.Syntax.TypeVarDecl | |
Pretty TypeVarDecl Source # | Pretty instance for type variable declaration. |
Defined in FreeC.IR.Syntax.TypeVarDecl pretty :: TypeVarDecl -> Doc # prettyList :: [TypeVarDecl] -> Doc # |
typeVarDeclToType :: TypeVarDecl -> Type Source #
Converts the declaration of a type variable to a type.
typeVarDeclName :: TypeVarDecl -> Name Source #
Gets the name of the type variable declared by the given type variable declaration.
typeVarDeclQName :: TypeVarDecl -> QName Source #
Gets the unqualified name of the type variable declared by the given type variable declaration.