Safe Haskell | None |
---|
Language.PureScript.Scope
Description
Utility functions for working with names in scope
- usedNamesDecl :: Declaration -> [Ident]
- usedNamesValue :: Value -> [Ident]
- usedNamesBinder :: Binder -> [Ident]
- usedNamesCaseAlternative :: CaseAlternative -> [Ident]
- usedNamesDoNotationElement :: DoNotationElement -> [Ident]
- unusedNames :: [Ident] -> [Ident]
Documentation
usedNamesDecl :: Declaration -> [Ident]Source
Gather all used names appearing inside a declaration
usedNamesValue :: Value -> [Ident]Source
Gather all used names appearing inside a value
usedNamesBinder :: Binder -> [Ident]Source
Gather all used names appearing inside a binder
usedNamesCaseAlternative :: CaseAlternative -> [Ident]Source
Gather all used names appearing inside a case alternative
usedNamesDoNotationElement :: DoNotationElement -> [Ident]Source
Gather all used names appearing inside a do notation element
unusedNames :: [Ident] -> [Ident]Source
Generate a set of names which are unused inside a value, of the form _{n}
for an integer n