haskell-tools-ast-fromghc-0.2.0.0: Creating the Haskell-Tools AST from GHC's representations

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.AST.FromGHC.Base

Description

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

Synopsis

Documentation

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 Name 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 (AnnList UnqualName (Dom r) RangeStage) Source #

Creates a qualified name from a name string