<div dir="ltr">Hi Glasgow-haskell-users,<div><br></div><div>I am wondering if there is a declaration of a default setting value for DynFlags.Settings:</div><div><br></div><div>Settings<br>  :: GhcNameVersion<br>     -> FileSettings<br>     -> Platform<br>     -> ToolSettings<br>     -> PlatformMisc<br>     -> PlatformConstants<br>     -> [(String, String)]<br>     -> Settings<br></div><div><br></div><div>in DynFlags</div><div><br></div><div> - <a href="https://www.stackage.org/haddock/nightly-2019-09-04/ghc-lib-parser-8.8.0.20190424/DynFlags.html">https://www.stackage.org/haddock/nightly-2019-09-04/ghc-lib-parser-8.8.0.20190424/DynFlags.html</a>.</div><div><br></div><div>I am attempting to use Lexer.lexer, which is provided by the ghc-parser-lib package.</div><div>To make Lexer.lexer run, I seem to have such a setting value.</div><div><br></div><div>I managed to fill it by myself as defaultSettings (Line 82) in the following source code:</div><div><br></div><div> - <a href="https://github.com/kwanghoon/hslexer/blob/master/app/Main.hs">https://github.com/kwanghoon/hslexer/blob/master/app/Main.hs</a></div><div><br></div><div>with a sequence of meaningless 0, False, "", and [], which are not relevant to</div><div>the usage of Lexer.lexer, I think.</div><div><br></div><div>Are there any better ways to make a setting value just for the usage of Lexer.lexer?</div><div><br></div><div><br></div><div>Anyway, it is great to see that it is quite easy to make use of the Haskell lexer</div><div>by using GHC and the ghc-parser-lib package!  </div><div><br></div><div>Kinds regards</div><div><br></div><div>Kwanghoon</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>