modulo-1.5: Modular C code generator

PortabilityGHC
Stabilityexperimental
Maintainerhans@hanshoglund.se
Safe HaskellNone

Language.Modulo.Util.Unmangle

Description

Unmanglers for various kinds of identifiers.

Synopsis

Documentation

unmangle :: String -> [String]Source

Unmangle an indentifier in mixed or separarated case.

uncase :: String -> [String]Source

Unmangle an indentifier in mixed case, i.e. fooBar becomes [foo, bar].

unsep :: String -> [String]Source

Unmangle an indentifier using the underscore as separator, i.e. foo_bar becomes [foo, bar].

 unsep (sep a) = a, iff a /= []