cases-0.1.1: A converter for spinal, snake and camel cases

Safe HaskellNone

Cases

Contents

Synopsis

Processor

process :: CaseTransformer -> Delimiter -> Text -> TextSource

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 -> PartSource

Delimiters

type Delimiter = Folder (Maybe Text)Source

Default Processors

spinalize :: Text -> TextSource

Transform an arbitrary text into a lower spinal case.

Same as (process lower spinal).

snakify :: Text -> TextSource

Transform an arbitrary text into a lower snake case.

Same as (process lower snake).

camelize :: Text -> TextSource

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

Same as (process id camel).