git.iko.soy/rowtype-yoga/purescript-native
on 3c22697 help sign in
53 lines 1.3 kB history raw
1-----------------------------------------------------------------------------
2--
3-- Module : Language.PureScript.Options
4-- Copyright : (c) Phil Freeman 2013
5-- License : MIT
6--
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
9-- Portability :
10--
11-- |
12-- The data type of compiler options
13--
14-----------------------------------------------------------------------------
16module Language.PureScript.Options where
18-- |
19-- The data type of compiler options
20--
21data Options = Options {
22 -- |
23 -- Perform tail-call elimination
24 --
25 optionsTco :: Bool
26 -- |
27 -- Perform type checks at runtime
28 --
29 , optionsPerformRuntimeTypeChecks :: Bool
30 -- |
31 -- Inline calls to ret and bind for the Eff monad
32 --
33 , optionsMagicDo :: Bool
34 -- |
35 -- Check the type of Main.main and generate its code
36 --
37 , optionsRunMain :: Bool
38 -- |
39 -- Skip all optimizations
40 --
41 , optionsNoOptimizations :: Bool
42 -- |
43 -- Specify the namespace that PureScript modules will be exported to when running in the
44 -- browser.
45 --
46 , optionsBrowserNamespace :: String
47 } deriving Show
49-- |
50-- Default compiler options
51--
52defaultOptions :: Options
53defaultOptions = Options False False False False False "PS"