Minor clean up, taking hlint suggestions
[ghc.git] / src / Settings / Flavours / Profiled.hs
1 module Settings.Flavours.Profiled (profiledFlavour) where
2
3 import Flavour
4 import Expression
5 import {-# SOURCE #-} Settings.Default
6
7 profiledFlavour :: Flavour
8 profiledFlavour = defaultFlavour
9 { name = "prof"
10 , args = defaultBuilderArgs <> profiledArgs <> defaultPackageArgs
11 , ghcProfiled = True }
12
13 profiledArgs :: Args
14 profiledArgs = sourceArgs SourceArgs
15 { hsDefault = pure ["-O0", "-H64m"]
16 , hsLibrary = notStage0 ? arg "-O"
17 , hsCompiler = arg "-O"
18 , hsGhc = arg "-O" }