Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utility functions defined on the GHC AST representation.
- class OutputableBndr name => GHCName name where
- occName :: GHCName n => n -> OccName
- getFieldOccName :: GHCName n => Located (FieldOcc n) -> Located n
- getFieldOccName' :: GHCName n => FieldOcc n -> n
- getTopLevelId :: Name -> Ghc (Maybe Id)
- class HsHasName a where
- rdrNameStr :: RdrName -> String
- cleanHsType :: OutputableBndr n => HsType n -> HsType n
- mergeFixityDefs :: [Located (FixitySig n)] -> [Located (FixitySig n)]
Documentation
class OutputableBndr name => GHCName name where Source #
rdrName :: name -> RdrName Source #
getFromNameUsing :: Applicative f => (Name -> Ghc (f Id)) -> Name -> Ghc (f name) Source #
getBindsAndSigs :: HsValBinds name -> ([LSig name], LHsBinds name) Source #
nameFromId :: Id -> name Source #
unpackPostRn :: RdrName -> PostRn name name -> name Source #
gunpackPostRn :: a -> (name -> a) -> PostRn name name -> a Source #
getFieldOccName' :: GHCName n => FieldOcc n -> n Source #
class HsHasName a where Source #
Get names from the GHC AST
hsGetNames :: a -> [Name] Source #
rdrNameStr :: RdrName -> String Source #
Get the original form of a name
cleanHsType :: OutputableBndr n => HsType n -> HsType n Source #
Tries to simplify the type that has HsAppsTy before renaming. Does not always provide the correct form. Treats each operator as if they are of equivalent precedence and always left-associative.