Convert

ghc-7.0.4: The GHC API

Convert

# Documentation

convertToHsExpr :: SrcSpan -> Exp -> Either Message (LHsExpr RdrName)

convertToPat :: SrcSpan -> Pat -> Either Message (LPat RdrName)

convertToHsDecls :: SrcSpan -> [Dec] -> Either Message [LHsDecl RdrName]

convertToHsType :: SrcSpan -> Type -> Either Message (LHsType RdrName)

convertToHsPred :: SrcSpan -> Pred -> Either Message (LHsPred RdrName)

thRdrNameGuesses :: Name -> [RdrName]