on master help sign in
Add location information to DAML-LF produced by damlc (#390)
fffd3ddMartin Huschenbett
src/Development/IDE/UtilGHC.hs+2
@@ -77,6 +77,7 @@ xExtensionsUnset = [ ]
77xFlagsSet :: [ GeneralFlag ]
77xFlagsSet :: [ GeneralFlag ]
78xFlagsSet = [
78xFlagsSet = [
79 Opt_Haddock
79 Opt_Haddock
80+ , Opt_Ticky
80 ]
81 ]
81
82
82-- | Warning options set for DAML compilation. Note that these can be modified
83-- | Warning options set for DAML compilation. Note that these can be modified
@@ -121,6 +122,7 @@ adjustDynFlags paths packageState mbPackageName dflags
121 $ apply gopt_set xFlagsSet
122 $ apply gopt_set xFlagsSet
122 dflags{
123 dflags{
123 mainModIs = mkModule primUnitId (mkModuleName "NotAnExistingName"), -- avoid DEL-6770
124 mainModIs = mkModule primUnitId (mkModuleName "NotAnExistingName"), -- avoid DEL-6770
125+ debugLevel = 1,
124 ghcLink = NoLink, hscTarget = HscNothing -- avoid generating .o or .hi files
126 ghcLink = NoLink, hscTarget = HscNothing -- avoid generating .o or .hi files
125 {-, dumpFlags = Opt_D_ppr_debug `EnumSet.insert` dumpFlags dflags -- turn on debug output from GHC-}
127 {-, dumpFlags = Opt_D_ppr_debug `EnumSet.insert` dumpFlags dflags -- turn on debug output from GHC-}
126 }
128 }