Hi Glasgow-haskell-users,
I am wondering if there is a declaration of a default setting value for DynFlags.Settings:
Settings
:: GhcNameVersion
-> FileSettings
-> Platform
-> ToolSettings
-> PlatformMisc
-> PlatformConstants
-> [(String, String)]
-> Settings
in DynFlags
I am attempting to use Lexer.lexer, which is provided by the ghc-parser-lib package.
To make Lexer.lexer run, I seem to have such a setting value.
I managed to fill it by myself as defaultSettings (Line 82) in the following source code:
with a sequence of meaningless 0, False, "", and [], which are not relevant to
the usage of Lexer.lexer, I think.
Are there any better ways to make a setting value just for the usage of Lexer.lexer?
Anyway, it is great to see that it is quite easy to make use of the Haskell lexer
by using GHC and the ghc-parser-lib package!
Kinds regards
Kwanghoon