Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data ModuleProcessingError Source #
type ModuleImportMap = Map ModuleName ModuleImport Source #
type ModuleWriter = RWST () Builder ModuleImportMap (ExceptT ModuleProcessingError IO) Source #
readExternsForModule :: FilePath -> ModuleName -> ExceptT ModuleProcessingError IO ExternsFile Source #
recursivelyLoadExterns :: FilePath -> ModuleName -> StateT (Environment, Map ModuleName (Maybe ExternsFile)) (ExceptT ModuleProcessingError IO) () Source #
emitComment :: Text -> ModuleWriter () Source #
emitInterface :: Text -> [Text] -> [Field] -> ModuleWriter () Source #
emitTypeDeclaration :: Maybe Text -> Text -> [Text] -> TSType -> ModuleWriter () Source #
emitValueDeclaration :: Maybe Text -> Text -> TSType -> ModuleWriter () Source #
emitNamespaceImport :: Monad m => Text -> ModuleName -> WriterT Builder m () Source #
emitImport :: Monad m => ModuleName -> WriterT Builder m () Source #