purescript-0.13.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.Externs

Description

This module generates code for "externs" files, i.e. files containing only foreign import declarations.

Synopsis

Documentation

data ExternsFile Source #

The data which will be serialized to an externs file

Constructors

ExternsFile 

Fields

data ExternsImport Source #

A module import in an externs file

Constructors

ExternsImport 

Fields

data ExternsFixity Source #

A fixity declaration in an externs file

Constructors

ExternsFixity 

Fields

data ExternsTypeFixity Source #

A type fixity declaration in an externs file

Constructors

ExternsTypeFixity 

Fields

data ExternsDeclaration Source #

A type or value declaration appearing in an externs file

moduleToExternsFile :: Module -> Environment -> ExternsFile Source #

Generate an externs file for all declarations in a module

applyExternsFileToEnvironment :: ExternsFile -> Environment -> Environment Source #

Convert an externs file back into a module