cases-0.1.4.2: A converter for spinal, snake and camel cases
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cases

Synopsis

Processor

process :: CaseTransformer -> Delimiter -> Text -> Text Source #

Extract separate words from an arbitrary text using a smart parser and produce a new text using case transformation and delimiter functions.

Note: to skip case transformation use the id function.

Case Transformers

type CaseTransformer = Part -> Part Source #

Delimiters

type Delimiter = Folder (Maybe Text) Source #

Default Processors

spinalize :: Text -> Text Source #

Transform an arbitrary text into a lower spinal case.

Same as (process lower spinal).

snakify :: Text -> Text Source #

Transform an arbitrary text into a lower snake case.

Same as (process lower snake).

camelize :: Text -> Text Source #

Transform an arbitrary text into a camel case, while preserving the case of the first character.

Same as (process id camel).