1-----------------------------------------------------------------------------
3-- Module : Language.PureScript.Options
4-- Copyright : (c) Phil Freeman 2013
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
12-- The data type of compiler options
14-----------------------------------------------------------------------------
16module Language.PureScript.Options where
19-- The data type of compiler options
21data Options = Options {
23 -- Disable inclusion of the built in Prelude
25 optionsNoPrelude :: Bool
27 -- Disable tail-call elimination
29 , optionsNoTco :: Bool
31 -- Perform type checks at runtime
33 , optionsPerformRuntimeTypeChecks :: Bool
35 -- Disable inlining of calls to return and bind for the Eff monad
37 , optionsNoMagicDo :: Bool
39 -- When specified, checks the type of `main` in the module, and generate a call to run main
40 -- after the module definitions.
42 , optionsMain :: Maybe String
44 -- Skip all optimizations
46 , optionsNoOptimizations :: Bool
48 -- Specify the namespace that PureScript modules will be exported to when running in the
51 , optionsBrowserNamespace :: Maybe String
53 -- The modules to keep while enabling dead code elimination
55 , optionsModules :: [String]
57 -- The modules to code gen
59 , optionsCodeGenModules :: [String]
61 -- Verbose error message
63 , optionsVerboseErrors :: Bool
67-- Default compiler options
69defaultOptions :: Options
70defaultOptions = Options False False False False Nothing False Nothing [] [] False
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list