ddc-driver-0.4.3.1: Disciplined Disciple Compiler top-level driver.

Safe HaskellNone
LanguageHaskell98

DDC.Driver.Config

Synopsis

Documentation

data Config Source #

Configuration for main compiler stages.

Constructors

Config 

Fields

defaultConfigPretty :: ConfigPretty Source #

Default pretty printer configuration.

prettyModeOfConfig :: ConfigPretty -> PrettyMode (Module a n) Source #

Convert a the pretty configuration into the mode to use to print a module. We keep the ConfigPretty type separate from PrettyMode because the former can be non-recursive with other types, and does not need to be parameterised by the annotation or name types.

objectPathsOfConfig Source #

Arguments

:: Config

Compiler config.

-> FilePath

Path to module source.

-> (FilePath, [FilePath]) 

Given the name of a source file, determine the where the object files should go.

The first component of the result is where we should put produced object files, The second are paths of where we might find pre-existing objects, in preference order.

exePathOfConfig Source #

Arguments

:: Config

Compiler config.

-> FilePath

Path to module source.

-> FilePath 

Given the name of a source file, determine where we should put an executable built from it.

data ViaBackend Source #

Constructors

ViaC

Compile via the C backend.

ViaLLVM

Compile via the LLVM backend.