forked from purescript/purescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.hs
More file actions
42 lines (39 loc) · 1.01 KB
/
Options.hs
File metadata and controls
42 lines (39 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-- |
-- The data type of compiler options
--
module Language.PureScript.Options where
import Prelude.Compat
-- |
-- The data type of compiler options
--
data Options = Options {
-- |
-- Disable tail-call elimination
optionsNoTco :: Bool
-- |
-- Disable inlining of calls to return and bind for the Eff monad
, optionsNoMagicDo :: Bool
-- |
-- When specified, checks the type of `main` in the module, and generate a call to run main
-- after the module definitions.
, optionsMain :: Maybe String
-- |
-- Skip all optimizations
, optionsNoOptimizations :: Bool
-- |
-- Verbose error message
, optionsVerboseErrors :: Bool
-- |
-- Remove the comments from the generated js
, optionsNoComments :: Bool
-- |
-- Generate soure maps
, optionsSourceMaps :: Bool
-- |
-- Dump CoreFn
, optionsDumpCoreFn :: Bool
} deriving Show
-- |
-- Default make options
defaultOptions :: Options
defaultOptions = Options False False Nothing False False False False False