purescript-0.15.15: PureScript Programming Language Compiler

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

convertType :: String -> Type a -> SourceType #

convertExpr :: String -> Expr a -> Expr #

convertBinder :: String -> Binder a -> Binder #

convertDeclaration :: String -> Declaration a -> [Declaration] #

convertImportDecl :: String -> ImportDecl a -> (SourceAnn, ModuleName, ImportDeclarationType, Maybe ModuleName) #

convertModule :: String -> Module a -> Module #

sourcePos :: SourcePos -> SourcePos #

sourceSpan :: String -> SourceRange -> SourceSpan #

comment :: Comment a -> Maybe Comment #

comments :: [Comment a] -> [Comment] #