haskell-tools-backend-ghc-0.5.0.0: Creating the Haskell-Tools AST from GHC's representations

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.AST.FromGHC.Names

Description

Functions that convert the basic elements of the GHC AST to corresponding elements in the Haskell-tools AST representation

Synopsis

Documentation

trfName' :: TransformName n r => n -> Trf (UName (Dom r) RangeStage) Source #

class (TransformableName name, HsHasName name, TransformableName res, HsHasName res, GHCName res) => TransformName name res where Source #

This class allows us to use the same transformation code for multiple variants of the GHC AST. GHC UName annotated with name can be transformed to our representation with semantic annotations of res.

Minimal complete definition

transformName

Methods

transformName :: name -> res Source #

Demote a given name

Instances

((~) * n r, TransformableName n, HsHasName n) => TransformName n r Source # 

Methods

transformName :: n -> r Source #

(TransformableName res, GHCName res, HsHasName res) => TransformName Name res Source # 

Methods

transformName :: Name -> res Source #

trfNameStr :: String -> Trf (AnnListG UNamePart (Dom r) RangeStage) Source #

Creates a qualified name from a name string