git.iko.soy/rowtype-yoga/purescript-native
on 5ce8345 help sign in
44 lines 1.0 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 } deriving Show
40-- |
41-- Default compiler options
42--
43defaultOptions :: Options
44defaultOptions = Options False False False False