purescript-0.15.7: PureScript Programming Language Compiler
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.PureScript.Bundle

Description

Bundles compiled PureScript modules for the browser.

This module takes as input the individual generated modules from Make and performs dead code elimination, filters empty modules, and generates the final JavaScript bundle.

Synopsis

Documentation

data ModuleType Source #

Modules are either "regular modules" (i.e. those generated by the PureScript compiler) or foreign modules.

Constructors

Regular 
Foreign 

data ErrorMessage Source #

The type of error messages. We separate generation and rendering of errors using a data type, in case we need to match on error types later.

Instances

Instances details
Show ErrorMessage Source # 
Instance details

Defined in Language.PureScript.Bundle

printErrorMessage :: ErrorMessage -> [String] Source #

Prepare an error message for consumption by humans.

data Module Source #

A module is just a list of elements of the types listed above.

Instances

Instances details
ToJSON Module Source # 
Instance details

Defined in Language.PureScript.Bundle

Show Module Source # 
Instance details

Defined in Language.PureScript.Bundle