git.iko.soy/rowtype-yoga/purescript-native
on a628008 help sign in
39 lines 975 B 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 } deriving Show
36-- |
37-- Default make options
38defaultOptions :: Options
39defaultOptions = Options False False Nothing False False False False