jgm / skylighting

A Haskell syntax highlighting library with tokenizers derived from KDE syntax highlighting descriptions
190 stars 61 forks source link

Export WordSet constructors #62

Closed chris-martin closed 5 years ago

chris-martin commented 5 years ago

There is presently, as far as I can tell, no way to access the list of words contained in a WordSet; so I'd like to have the constructors exported so I can pull a word set apart.

The use case is that I'm trying to write a function to modify the Haskell Syntax to add some keywords introduced by GHC extensions (forall, via), so I'd like to be able to write a WordSet -> WordSet function that adds keywords to a set.

jgm commented 5 years ago

Sure, no objections!