forked from purescript/purescript
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOptions.hs
More file actions
49 lines (46 loc) · 1.33 KB
/
Options.hs
File metadata and controls
49 lines (46 loc) · 1.33 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
43
44
45
46
47
48
49
-----------------------------------------------------------------------------
--
-- Module : Language.PureScript.Options
-- Copyright : (c) Phil Freeman 2013
-- License : MIT
--
-- Maintainer : Phil Freeman <paf31@cantab.net>
-- Stability : experimental
-- Portability :
--
-- |
-- The data type of compiler options
--
-----------------------------------------------------------------------------
module Language.PureScript.Options where
-- |
-- 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
-- |
-- The path to prepend to require statements
, optionsRequirePath :: Maybe FilePath
} deriving Show
-- |
-- Default make options
defaultOptions :: Options
defaultOptions = Options False False Nothing False False False Nothing