Safe Haskell | None |
---|
Documentation
class (Ord v, IsString v, Data v, Pretty v) => Variable v whereSource
variant :: v -> Set v -> vSource
Return a variable based on v but different from any set element. The result may be v itself if v is not a member of the set.
prefix :: String -> v -> vSource
Modify a variable by adding a prefix. This unfortunately assumes that v is string-like but at least one algorithm in Harrison currently requires this.
prettyVariable :: v -> DocSource
Pretty print a variable
showVariable :: Variable v => v -> StringSource