ajhc-0.8.0.7: Haskell compiler that produce binary through C language

Safe HaskellNone

Options

Synopsis

Documentation

processOptions :: IO OptSource

Parse commandline options.

data Opt Source

Constructors

Opt 

Fields

optMode :: Mode

Mode of interaction

optColumns :: !Int

Width of terminal.

optDump :: [String]

Dump options (raw).

optStmts :: [String]

statements to execute

optFOpts :: [String]

Flag options (raw).

optIncdirs :: [String]

Include directories.

optCCargs :: [String]

Optional arguments to the C compiler.

optHls :: [String]

Load the specified hl-files (haskell libraries).

optAutoLoads :: [String]

AutoLoaded haskell libraries.

optHlPath :: [String]

Path to look for libraries.

optIncs :: [String]
 
optDefs :: [String]
 
optExtensions :: [String]
 
optStop :: StopCondition
 
optWorkDir :: Maybe FilePath
 
optAnnotate :: Maybe FilePath
 
optDeps :: Maybe FilePath
 
optHoDir :: Maybe FilePath
 
optHoCache :: Maybe FilePath
 
optArgs :: [String]
 
optStale :: [String]

treat these modules as stale

optKeepGoing :: !Bool

Keep going when encountering errors.

optMainFunc :: Maybe (Bool, String)

Entry point name for the main function.

optArch :: [String]

target architecture

optCross :: Bool
 
optOutName :: Maybe String

Name of output file.

optIgnoreHo :: !Bool

Ignore ho-files.

optNoWriteHo :: !Bool

Don't write ho-files.

optNoAuto :: !Bool

Don't autoload packages

optVerbose :: !Int

Verbosity

optStatLevel :: !Int

Level to print statistics

optInis :: Map String String

options read from ini files

optDumpSet :: Set Flag

Dump flags.

optFOptsSet :: Set Flag

Flag options (-f<opt>).

options :: OptSource

The global options currently used.

data Mode Source

Constructors

BuildHl FilePath

Build the specified hl-file given a description file.

Interactive

Run interactively.

Version

Print version and die.

VersionCtx

Print version context and die.

ShowHelp

Show help message and die.

ShowConfig

Show configuration info.

CompileExe

Compile executable

ShowHo String

Show ho-file.

ListLibraries

List libraries

PrintHscOptions

Print options for hsc2hs

PurgeCache

Purge the cache

Preprocess

Filter through preprocessor

Instances

data StopCondition Source

Constructors

StopError String

error

StopParse

Just parse and rename modules then exit

StopTypeCheck

Stop after type checking

StopC

Stop after producing C code.

CompileHo

Compile ho

StopNot

Don't stop believing.

Instances

putVerbose :: String -> IO ()Source

Put a string to stderr when running verbose.

putVerboseLn :: String -> IO ()Source

Put a line to stderr when running verbose.

putProgressLn :: String -> IO ()Source

Put a line to stderr when running verbose.

verbose :: BoolSource

Is verbose > 0?

verbose2 :: BoolSource

Is verbose > 1?

progress :: BoolSource

Is verbose > 0?

dump :: Flag -> BoolSource

Test whether a dump flag is set.

wdump :: Monad m => Flag -> m () -> m ()Source

Do the action when the suplied dump flag is set.

fopts :: Flag -> BoolSource

Test whether an option flag is set.

flint :: BoolSource

Is the "lint" option flag set?

withOptionsT :: Opt -> OptT m a -> m aSource

data OptT m a Source

Instances