on master help sign in
Add location information to DAML-LF produced by damlc (#390)

* Add location information to DAML-LF produced by damlc This is required to get error locations in the scenario view. Rigth now, the location information for `create`/`exercise` still points to the template/choice. I'll fix that in a separate PR. * Fix test expectations * Fix more tests

commitfffd3ddedfe2823cec9ca0a7e2a0e26bce20a7ac authorMartin Huschenbett <31696042+martin-drhu-da@users.noreply.github.com> dateThu 11 Apr 2019, 21:44 (8 years ago) parent33b276c
1 file changed+2
src/Development/IDE/UtilGHC.hs+2
src/Development/IDE/UtilGHC.hs+2
@@ -77,6 +77,7 @@ xExtensionsUnset = [ ]
7777xFlagsSet :: [ GeneralFlag ]
7878xFlagsSet = [
7979 Opt_Haddock
80+ , Opt_Ticky
8081 ]
8182
8283-- | Warning options set for DAML compilation. Note that these can be modified
@@ -121,6 +122,7 @@ adjustDynFlags paths packageState mbPackageName dflags
121122 $ apply gopt_set xFlagsSet
122123 dflags{
123124 mainModIs = mkModule primUnitId (mkModuleName "NotAnExistingName"), -- avoid DEL-6770
125+ debugLevel = 1,
124126 ghcLink = NoLink, hscTarget = HscNothing -- avoid generating .o or .hi files
125127 {-, dumpFlags = Opt_D_ppr_debug `EnumSet.insert` dumpFlags dflags -- turn on debug output from GHC-}
126128 }