git.iko.soy/rowtype-yoga/purescript-native
on fca3655 help sign in
42 lines 1.0 kB history raw
1-- |
2-- The data type of compiler options
3--
4module Language.PureScript.Options where
6import Prelude.Compat
8-- |
9-- The data type of compiler options
10--
11data Options = Options {
12 -- |
13 -- Disable tail-call elimination
14 optionsNoTco :: Bool
15 -- |
16 -- Disable inlining of calls to return and bind for the Eff monad
17 , optionsNoMagicDo :: Bool
18 -- |
19 -- When specified, checks the type of `main` in the module, and generate a call to run main
20 -- after the module definitions.
21 , optionsMain :: Maybe String
22 -- |
23 -- Skip all optimizations
24 , optionsNoOptimizations :: Bool
25 -- |
26 -- Verbose error message
27 , optionsVerboseErrors :: Bool
28 -- |
29 -- Remove the comments from the generated js
30 , optionsNoComments :: Bool
31 -- |
32 -- Generate soure maps
33 , optionsSourceMaps :: Bool
34 -- |
35 -- Dump CoreFn
36 , optionsDumpCoreFn :: Bool
37 } deriving Show
39-- |
40-- Default make options
41defaultOptions :: Options
42defaultOptions = Options False False Nothing False False False False False