Minor clean up, taking hlint suggestions
[ghc.git] / src / Settings / Flavours / Quick.hs
1 module Settings.Flavours.Quick (quickFlavour) where
2
3 import Flavour
4 import Expression
5 import Oracles.Flag
6 import {-# SOURCE #-} Settings.Default
7
8 quickFlavour :: Flavour
9 quickFlavour = defaultFlavour
10 { name = "quick"
11 , args = defaultBuilderArgs <> quickArgs <> defaultPackageArgs
12 , libraryWays = mconcat
13 [ pure [vanilla]
14 , notStage0 ? platformSupportsSharedLibs ? pure [dynamic] ] }
15
16 quickArgs :: Args
17 quickArgs = sourceArgs SourceArgs
18 { hsDefault = pure ["-O0", "-H64m"]
19 , hsLibrary = notStage0 ? arg "-O"
20 , hsCompiler = stage0 ? arg "-O"
21 , hsGhc = stage0 ? arg "-O" }