haskell-src-meta
haskell-src-meta copied to clipboard
ParseMode
Since myDefaultParseMode should not be used it's probably better to crate new functions which replace parseExp and the others and take a ParseMode as an parameter.
How about a parseWithExts that takes a list of known extensions and enables them? (almost always the only part of the ParseMode anyone edits?)
Arguably, the default mode for parseExp and friends should enable all extensions that HSM is known to support properly (and none that it is known not to support).