module-management-0.20.3: Clean up module imports, split and merge modules

Safe HaskellSafe-Inferred
LanguageHaskell98

Language.Haskell.Modules.Util.Symbols

Synopsis

Documentation

class FoldDeclared a where Source

Do a fold over the names that are declared in a declaration (not every name that appears, just the ones that the declaration is causing to exist - what's the word for that? Reify!)

Methods

foldDeclared :: forall r. (Maybe Name -> r -> r) -> r -> a -> r Source

class FoldMembers a where Source

Fold over the declared members - e.g. the method names of a class declaration, the constructors of a data declaration.

Methods

foldMembers :: forall r. (Maybe Name -> r -> r) -> r -> a -> r Source

Instances