Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.PureScript.CST.Convert
Description
This module contains functions for converting the CST into the core AST. It is mostly boilerplate, and does the job of resolving ranges for all the nodes and attaching comments.
Documentation
convertKind :: String -> Kind a -> SourceKind Source #
convertType :: String -> Type a -> SourceType Source #
convertDeclaration :: String -> Declaration a -> [Declaration] Source #
convertImportDecl :: String -> ImportDecl a -> (SourceAnn, ModuleName, ImportDeclarationType, Maybe ModuleName) Source #
sourceSpan :: String -> SourceRange -> SourceSpan Source #