git.iko.soy/rowtype-yoga/purescript-native
on 469b5ae help sign in
49 lines 1.4 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 -- Disable tail-call elimination
24 optionsNoTco :: Bool
25 -- |
26 -- Disable inlining of calls to return and bind for the Eff monad
27 , optionsNoMagicDo :: Bool
28 -- |
29 -- When specified, checks the type of `main` in the module, and generate a call to run main
30 -- after the module definitions.
31 , optionsMain :: Maybe String
32 -- |
33 -- Skip all optimizations
34 , optionsNoOptimizations :: Bool
35 -- |
36 -- Verbose error message
37 , optionsVerboseErrors :: Bool
38 -- |
39 -- Remove the comments from the generated js
40 , optionsNoComments :: Bool
41 -- |
42 -- The path to prepend to require statements
43 , optionsRequirePath :: Maybe FilePath
44 } deriving Show
46-- |
47-- Default make options
48defaultOptions :: Options
49defaultOptions = Options False False Nothing False False False Nothing