purescript-0.5.0: PureScript Programming Language Compiler

Safe HaskellNone

Language.PureScript.Scope

Description

Utility functions for working with names in scope

Synopsis

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