kowainik / extensions

👅 Parse Haskell Language Extensions
Mozilla Public License 2.0
48 stars 9 forks source link

Add boolean functions to check whether the extension is enabled or disabled #64

Open chshersh opened 4 years ago

chshersh commented 4 years ago

Sometimes it's helpful to have a function:

isEnabled :: Extension -> Set OnOffExtension -> Bool

That checks whether there's On for the particular given extension.

Does it sound useful? For now, I propose not to think about the fact that some extensions can imply other extensions, this is another whole story..