ddc-base-0.4.2.1: Disciplined Disciple Compiler common utilities.

Safe HaskellSafe
LanguageHaskell98

DDC.Base.Name

Synopsis

Documentation

class StringName n where Source

Methods

stringName :: n -> String Source

Produce a flat string from a name. The resulting string should be re-lexable as a bindable name.

class CompoundName n where Source

Compound names can be extended to create new names. This is useful when generating fresh names during program transformation.

Methods

extendName :: n -> String -> n Source

Build a new name based on the given one.

splitName :: n -> Maybe (n, String) Source

Split the extension string from a name.