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.
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 aWordSet -> WordSet
function that adds keywords to a set.